Spring Framework Denial of Service via AntPathMatcher
Published 9 Jun 2026 · 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
- >=7.0.0 <7.0.8
- Fixed in
- 7.0.8
mvn versions:use-dep-version -Dincludes=org.springframework:spring-core -DdepVersion=7.0.8 -DforceVersion=true- Affected
- >=6.2.0 <6.2.19
- Fixed in
- 6.2.19
mvn versions:use-dep-version -Dincludes=org.springframework:spring-core -DdepVersion=6.2.19 -DforceVersion=true- Affected
- >=6.1.0 <=6.1.21
- Fixed in
- No fix released
- Affected
- <=5.3.39
- Fixed in
- No fix released
Details
Applications may be vulnerable to a Regular Expression Denial of Service (ReDoS) attack if an attacker is able to provide a pattern which is then directly or indirectly supplied to one of the following methods in AntPathMatcher: match(String pattern, String path), matchStart(String pattern, String path), extractUriTemplateVariables(String pattern, String path).
Affected versions: Spring Framework 7.0.0 through 7.0.7; 6.2.0 through 6.2.18; 6.1.0 through 6.1.27; 5.3.0 through 5.3.48.
Is GHSA-659m-px2c-25wj 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
- HighCVE-2025-41249Spring Framework annotation detection mechanism may result in improper authorization · 16 Sept 2025
- 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-2026-41848
- Linkgithub.com/spring-projects/spring-framework/commit/12b44f2545a1bec6150c7a05e66092c732597a94
- Packagegithub.com/spring-projects/spring-framework
- Linkgithub.com/spring-projects/spring-framework/releases/tag/v6.2.19
- Linkgithub.com/spring-projects/spring-framework/releases/tag/v7.0.8
- Linkspring.io/security/cve-2026-41848
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.