LOW

CVE-2026-41698

Spring Vault Path Traversal via unsanitized secret path parameter

Description

Spring Vault's Key/Value accessors perform no validation or normalization of the entity identifier argument before incorporating it into a Vault API URL. A caller-supplied value containing path traversal sequences is not rejected or sanitized and can cause Spring Vault to access or overwrite secrets outside the intended keyspace or mount, if those secrets are reachable by the application's Vault token.

Your application may be affected by this if all of the following are true:

The application uses one of the affected repository or KeyValue accessor abstractions. The id value is derived from user-controlled input. The application's Vault token holds permissions beyond a single, tightly scoped keyspace path. Applications whose path values are determined entirely at build time are not affected. The application uses Vault 1.x. Vault 2.0 and later reject non-canonical or relative paths, so deployments using Vault 2.0 or later are not affected.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.vault » spring-vault-core
>= 2.3.0, <= 2.3.4>= 3.0.0, <= 3.1.3>= 3.2.0, <= 3.2.1>= 4.0.0, < 4.0.5>= 4.1.0, < 4.1.2
4.0.5, 4.1.2

Blast radius

1affected artifacts
25affected versions
388dependent artifacts (est.)
36,768dependent versions

34% of the dependent artifacts (135) still pull an affected version in their latest release.

DepthDependent versions
Direct
994
2 hops
6,647
3 hops
9,797
4 hops
11,417
5 hops
5,890
6 hops
2,023

Most used dependents

Computed from the dependency graph of build 20261201.0702 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.