Spring Framework annotation detection mechanism may result in improper authorization
Published 16 Sept 2025 · Updated 10 Sept 2026
Is your project on an affected org.springframework:spring-core?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=5.3.0 <=5.3.44
- Fixed in
- No fix released
- Affected
- >=6.0.0 <=6.1.22
- Fixed in
- No fix released
- Affected
- >=6.2.0 <6.2.11
- Fixed in
- 6.2.11
mvn versions:use-dep-version -Dincludes=org.springframework:spring-core -DdepVersion=6.2.11 -DforceVersion=trueDetails
The Spring Framework annotation detection mechanism may not correctly resolve annotations on methods within type hierarchies with a parameterized super type with unbounded generics. This can be an issue if such annotations are used for authorization decisions.
Your application may be affected by this if you are using Spring Security's @EnableMethodSecurity feature.
You are not affected by this if you are not using @EnableMethodSecurity or if you do not use security annotations on methods in generic superclasses or generic interfaces.
This CVE is published in conjunction with CVE-2025-41248 https://spring.io/security/cve-2025-41248 .
Is GHSA-jmp9-x22r-554x 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:spring-core, and gives you the command that fixes it.
More advisories for org.springframework:spring-core
- LowCVE-2026-41848Spring Framework Denial of Service via AntPathMatcher · 9 Jun 2026
- HighCVE-2024-22233Spring Framework server Web DoS Vulnerability · 22 Jan 2024
- MediumCVE-2021-22096Improper Output Neutralization for Logs in Spring Framework · 24 May 2022
- HighCVE-2011-2730Improper Neutralization of Directives in Dynamically Evaluated Code in Spring Framework · 17 May 2022
- MediumCVE-2011-2894Spring Framework and Spring Security vulnerable to Deserialization of Untrusted Data · 14 May 2022
- MediumCVE-2014-3578Improper Limitation of a Pathname to a Restricted Directory in Spring Framework · 14 May 2022
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2025-41249
- Linkgithub.com/spring-projects/spring-framework/issues/35342
- Linkgithub.com/spring-projects/spring-framework/commit/6d710d482a6785b069e35022e81758953afc21ff
- Packagegithub.com/spring-projects/spring-framework
- Linkgithub.com/spring-projects/spring-framework/releases/tag/v6.2.11
- Linkspring.io/security/cve-2025-41249
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.