Spring Boot EndpointRequest.to() creates wrong matcher if actuator endpoint is not exposed
Published 28 Apr 2025 · Updated 10 Sept 2026
Is your project on an affected org.springframework.boot:spring-boot?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- <=2.7.24.2
- Fixed in
- No fix released
- Affected
- >=3.1.0 <=3.1.15.2
- Fixed in
- No fix released
- Affected
- >=3.2.0 <=3.2.13.2
- Fixed in
- No fix released
- Affected
- >=3.3.0 <3.3.11
- Fixed in
- 3.3.11
mvn versions:use-dep-version -Dincludes=org.springframework.boot:spring-boot -DdepVersion=3.3.11 -DforceVersion=true- Affected
- >=3.4.0 <3.4.5
- Fixed in
- 3.4.5
mvn versions:use-dep-version -Dincludes=org.springframework.boot:spring-boot -DdepVersion=3.4.5 -DforceVersion=trueDetails
EndpointRequest.to() creates a matcher for null/ if the actuator endpoint, for which the EndpointRequest has been created, is disabled or not exposed.
Your application may be affected by this if all the following conditions are met:
- You use Spring Security
- EndpointRequest.to() has been used in a Spring Security chain configuration
- The endpoint which EndpointRequest references is disabled or not exposed via web
- Your application handles requests to /null and this path needs protection
You are not affected if any of the following is true:
- You don't use Spring Security
- You don't use EndpointRequest.to()
- The endpoint which EndpointRequest.to() refers to is enabled and is exposed
- Your application does not handle requests to /null or this path does not need protection
Is GHSA-rc42-6c7j-7h5r in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.springframework.boot:spring-boot, and gives you the command that fixes it.
More advisories for org.springframework.boot:spring-boot
- CriticalCVE-2026-40976Spring Boot's default security filter chain has no authorization rule with Actuator but without Health · 28 Apr 2026
- HighCVE-2026-40973Spring Boot accepts predictable temp directory without ownership verification · 28 Apr 2026
- HighCVE-2022-27772Temporary Directory Hijacking to Local Privilege Escalation Vulnerability in org.springframework.boot:spring-boot · 11 Jul 2022
- MediumCVE-2018-1196Moderate severity vulnerability that affects org.springframework.boot:spring-boot · 18 Oct 2018
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.