Introduction
Many Spring Boot applications rely on EndpointRequest and PathRequest to lock down Actuator endpoints and the H2 console, and CVE-2026-59414 shows how a single trailing slash in configuration can silently cancel that protection. VMware rates the issue 9.1 (Critical) under CVSS v3.1, and Spring describes it as a possible authorization bypass caused by mismatched path normalization between the security matcher and the path the application actually serves.
Technical information
Root cause
Spring's advisory states that request matchers created by EndpointRequest and PathRequest may not correctly handle paths with trailing slashes. As a result, security matching rules may not have their intended effect, and a path can be left unintentionally unsecured. Spring maps the issue to CWE-647, Use of Noncanonical URL Paths for Authorization Decisions (the NVD record itself does not carry a CWE assignment).
The defect is in how matcher patterns were assembled. EndpointRequest (both the servlet and reactive variants) and PathRequest.toH2Console() built their Spring Security matchers by gluing a configured path onto a /** wildcard suffix. That configured path could come from three places:
- the Actuator base path
- an endpoint path mapping
spring.h2.console.path
None of these values were normalized before concatenation. HeroDevs gives a clear illustration: a configured path of /custom/ produces the pattern /custom//**. That pattern matches neither /custom nor /custom/x, yet the endpoint is still served at those paths. The security rule exists in the configuration, but it never fires for real requests.
The vulnerable construction is visible in the code the patch replaced. The reactive EndpointRequest.getDelegateMatcher(...) did this:
new PathPatternParserServerWebExchangeMatcher(path + "/**", httpMethod)
The H2 console matcher in PathRequest.toH2Console() did this:
PathPatternRequestMatcher.withDefaults().matcher(path + "/**")
The servlet EndpointRequest.getDelegateMatchers(...) passed the raw configured path and the "/**" suffix to requestMatcherFactory.antPath(...), with the same outcome.
In short, the routing layer and the security layer disagreed about what the path was. The router treated /custom/ and /custom as the same prefix, and the matcher did not.
Attack flow
Based on the vendor advisory and the published technical analysis, exploitation looks like this:
- An operator configures an Actuator endpoint path mapping, the Actuator base path, or the H2 console path with a trailing slash (for example
spring.h2.console.path=/custom/). - The application protects that endpoint in its security configuration using a matcher from
EndpointRequestorPathRequest. - Spring Boot generates a pattern with a doubled slash, such as
/custom//**. - A remote, unauthenticated attacker sends a request to the path where the endpoint is actually served, such as
/customor/custom/x, or the mapped Actuator endpoint path without the trailing slash. - The generated matcher does not match, so the access rule intended for that endpoint is never applied, and the request can reach the endpoint.
The consequences depend entirely on which endpoint is left unprotected. The advisory does not enumerate endpoint-specific outcomes, does not publish an exploit payload, and does not list every configuration prerequisite. The evidence supports an authorization bypass. It does not describe remote code execution or denial of service.
Severity
The CNA vector is CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N:
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality / Integrity: High / High
- Availability: None
These metrics describe the worst case for an affected configuration. They do not mean every Spring Boot deployment, or every Actuator endpoint, is exposed.
Exploitation status
CERT Santé's November 20, 2026 advisory reports no active exploitation and no public proof of concept. A NotCVE record last updated November 26, 2026 also marks exploitation in the wild as absent. We found no named threat actor, campaign, or indicator of compromise in the reviewed material, and the reviewed CISA catalog content does not establish a KEV listing. Treat these as dated observations rather than proof that exploitation cannot happen.
Timeline:
- November 19, 2026: Spring publishes its advisory.
- November 20, 2026: CERT Santé publishes its advisory (fix available, no workaround, no known exploitation).
- November 26, 2026: Spring updates the advisory with affected artifact information for 3.5.18, 3.4.19 and 2.7.36. A HAPI FHIR dependency scanner issue is opened the same day.
- December 2, 2026: NVD publishes its record with the VMware CNA score.
Patch information
Spring fixed this in Spring Boot 4.1.3 and 4.0.10, the free open-source releases. Enterprise Support customers can also obtain 4.1.2.1, 4.0.9.1, 3.5.18, 3.4.19 and 2.7.36. The 3.5, 3.4 and 2.7 builds are not available as free releases. The official advisory states that upgrading to the matching fixed version is sufficient and that no further mitigation steps are necessary. Neither Spring nor CERT Santé documents a separate workaround.
The public source change is commit 7681ebe, with an identical commit a540daf. Both are titled "Normalize paths when creating request matchers" and add 310 lines while removing 25.
A single normalization step
Rather than patching each call site independently, the commit introduces a small utility class, org.springframework.boot.security.autoconfigure.web.PathPattern. Its @since 4.0.9.1 tag indicates it was first written for the Enterprise branch. PathPattern.of(String path) rejects null or empty input via Assert.hasText and then strips every trailing slash in a loop, so /custom/// becomes /custom.
Every location that builds a matcher from configured input now passes the path through this utility before appending the wildcard:
PathPattern.of(path).withoutTrailingSlash() + "/**"
The normalized pattern is then handed to the matcher factory. The updated call sites are:
- Servlet
EndpointRequest:getDelegateMatchers(...)for endpoint paths andgetLinksPath(...)for the Actuator base path and links page. - Reactive
EndpointRequest:getDelegateMatcher(...),getLinksPath(...), and the stream that builds matchers for an endpoint's additional paths. PathRequest.toH2Console(): the H2 console matcher now normalizes the configured path before building the pattern.
Keeping routing and security in agreement
The fix also normalizes the routing side. H2ConsoleAutoConfiguration.h2Console() now runs the configured path through a new removeTrailingSlashes(...) helper before creating the servlet URL mapping. With spring.h2.console.path=/custom///, the servlet is registered at /custom/*, the same prefix the security matcher protects. Normalizing only one side would have left a gap.
Regression tests
The commit's tests document the intended behavior:
PathPatternTestsconfirms thata/test,a/test/anda/test//all normalize toa/test, and that null or empty input is rejected.- New servlet and reactive integration tests (
toEndpointWhenPathMappedWithTrailingSlashShouldMatch,toAllEndpointsWhenPathMappedWithTrailingSlashShouldMatch) configure an endpoint path mapping with a trailing slash, then verify that an unauthenticated request to the mapped path returns 401 Unauthorized and only succeeds with credentials. toLinksWhenBasePathIsSlashShouldNotMatchverifies that a base path of/does not turn the links matcher into a catch-all.- A parameterized
PathRequestTestscase verifies that/customand/custom/yield the same H2 console matcher.
Because the change only removes slashes at the end of configured paths, deployments whose paths never had a trailing slash get exactly the same matchers as before. For most applications, the upgrade should not change behavior.
Affected systems and versions
Per Spring's advisory (corroborated by CERT Santé):
- Spring Boot 4.1.0 through 4.1.2: fixed in 4.1.3 (open source) and 4.1.2.1 (Enterprise)
- Spring Boot 4.0.0 through 4.0.9: fixed in 4.0.10 (open source) and 4.0.9.1 (Enterprise)
- Spring Boot 3.5.0 through 3.5.17: fixed in 3.5.18 (Enterprise only)
- Spring Boot 3.0.0 through 3.4.18: fixed in 3.4.19 (Enterprise only)
- Spring Boot 2.7.35 and earlier: fixed in 2.7.36 (Enterprise only)
Vulnerable configuration: an application that secures Actuator endpoints with EndpointRequest or the H2 console with PathRequest.toH2Console(), where the Actuator base path, an endpoint path mapping, or spring.h2.console.path is configured with a trailing slash.
Dependency detection alone does not confirm exposure. A public HAPI FHIR issue opened by an automated scanner on November 26, 2026 flagged the Spring Boot autoconfigure artifact at versions 3.4.11 and 3.3.0 and the Spring Boot Actuator autoconfigure artifact at 3.4.11 across sample applications and other modules. That is a component finding, not evidence of a bypass. Confirming exposure requires checking whether a protected path is actually configured with a trailing slash.
Vendor security history
This is not the first configuration-dependent matcher generation problem in EndpointRequest. CVE-2025-22235, published April 24, 2025, caused EndpointRequest.to() to create a null/** matcher when the referenced Actuator endpoint was disabled or not exposed. Under the conditions described in that advisory, requests to /null might not receive their intended protection. Spring published affected versions, fixed releases, and alternatives for teams unable to upgrade at the time. The two issues are distinct, and teams should not substitute the earlier advisory's workaround for the fix to CVE-2026-59414.
Spring accepts vulnerability reports through private GitHub security reporting and publishes advisories centrally. Its commercial Tanzu Spring offering provides security patches, in some cases before their open-source counterparts, which is why several fixed versions for this CVE are Enterprise only. Spring credits Li Bingzhuo and LiZhiyao of BUPT with independently identifying and responsibly reporting this vulnerability.
References
- NVD: CVE-2026-59414
- CVE Record: CVE-2026-59414
- Spring Security Advisory: CVE-2026-59414
- Spring Boot commit 7681ebe: Normalize paths when creating request matchers
- Spring Boot commit a540daf: Normalize paths when creating request matchers
- NVD CVSS v3.1 Calculator for this vector
- CERT Santé advisory for CVE-2026-59414
- HeroDevs vulnerability directory entry
- NotCVE record for CVE-2026-59414
- HAPI FHIR issue #8926: scanner detection
- Spring Security Advisory: CVE-2025-22235
- Spring Boot issue #31563: trailing slash matching changes
- Spring Security Policy
- Spring Enterprise
- Why Spring
- Broadcom: Expanded investment in Spring and Java ecosystem security
- CISA Known Exploited Vulnerabilities Catalog
- Feedly CVE entry
- CIRCL Vulnerability Lookup entry



