The Spring team has released Spring Vault 4.1.2 and 4.0.5, and both versions close a newly disclosed security hole tracked as CVE-2026-41698. The advisory and the release post were both published on November 19, 2026, by the Spring project at Broadcom.
The flaw lets a crafted secret identifier step outside the folder an application is meant to use inside HashiCorp Vault. Spring rates it as low severity, but any Java service that builds Vault paths from user input and holds a broad Vault token should check its exposure and plan an upgrade.
What the vulnerability is
Spring Vault offers Key/Value accessors and repository abstractions that turn an entity ID into a Vault API address. According to the advisory, the library did not check or normalize that ID before placing it in the URL.
As a result, an ID that contains traversal sequences such as dot-dot segments was passed through as is. That could make Spring Vault read or overwrite secrets in another keyspace or even another mount, as long as the application's Vault token was allowed to reach them.
The issue is classed under CWE-23, relative path traversal. The scoring vector in the advisory points to network access with high attack complexity and low privileges, with a limited effect on integrity and no direct effect on confidentiality or availability in the base score.
Who is affected
Spring lists several conditions that must all be true for an application to be at risk:
- The code relies on the vulnerable Spring Vault repository support or KeyValue accessor classes.
- The secret ID is built from data that a user can supply.
- The Vault token has permissions wider than one tightly scoped keyspace path.
- The application talks to a Vault 1.x server.
If every path is hardcoded when the app is compiled, there is no exposure. Deployments on Vault 2.0 or newer are also safe, because those server versions refuse relative and non-canonical paths on their own.
Affected and fixed versions
The advisory covers a wide range of releases:
- 4.1.0 to 4.1.1: fixed in open source 4.1.2.
- 4.0.0 to 4.0.4: fixed in open source 4.0.5.
- 3.2.0 to 3.2.1: fixed in 3.2.2, available only through Enterprise Support.
- 3.0.0 to 3.1.3: fixed in 3.1.4, Enterprise Support only.
- 2.3.0 to 2.3.4: fixed in 2.3.5, Enterprise Support only.
Commercial builds 4.1.1.1 and 4.0.4.1 are also offered to Enterprise Support customers. Spring says no other mitigation steps are needed once the fixed version is in place. Besides the security fix, both open source releases also bring bug fixes, some improvements and dependency upgrades.
What it means for developers
For most teams the real risk depends on design, not just the library version. If your service lets a request parameter decide which secret to load, this bug could turn a narrow lookup into access to unrelated secrets, so review those code paths first.
Upgrade even if you think you are not exposed. Moving from 4.1.x to 4.1.2 or from 4.0.x to 4.0.5 is a patch-level change, and it removes the need to prove that no user value ever reaches a Vault path.
Teams stuck on 3.x or 2.3.x without a support contract have no open source fix. They should validate IDs themselves, rejecting anything with slashes or dot segments, and plan a move to a supported line.
This bug is also a reminder about token scope. A Vault policy that only grants access to the exact path an application needs would have blocked the cross-path reads even without the patch, and moving the server to Vault 2.0 adds another layer.
How to upgrade
Bump the spring-vault-core dependency in Maven or Gradle to 4.1.2 or 4.0.5, matching your current minor line, and run your integration tests against Vault. If you use Spring Cloud Vault or Spring Boot dependency management, check which Spring Vault version your build actually resolves after the change.
The release post links to the full changelog for each version on GitHub. Developers following other Spring and Java security work may find our report on low-privilege database roles leading to code execution useful for thinking about least privilege.
Conclusion
CVE-2026-41698 is a low severity bug, but it targets the part of an application that guards its secrets. Upgrading to Spring Vault 4.1.2 or 4.0.5, keeping Vault tokens tightly scoped and avoiding user-built secret paths together remove the risk.
Sources
- Spring Security Advisory: CVE-2026-41698 Spring Vault path traversal via unsanitized secret path parameter
- Spring Blog: Spring Vault 4.0.5 and 4.1.2 available
See my articles more often when you search Google.
