Cross-Site Request Forgery in Spring Framework
Published 13 May 2022 · Updated 4 Dec 2024
Is your project on an affected org.springframework:spring-webmvc?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- <3.2.8
- Fixed in
- 3.2.8
mvn versions:use-dep-version -Dincludes=org.springframework:spring-webmvc -DdepVersion=3.2.8 -DforceVersion=true- Affected
- >=4.0.0 <4.0.2
- Fixed in
- 4.0.2
mvn versions:use-dep-version -Dincludes=org.springframework:spring-webmvc -DdepVersion=4.0.2 -DforceVersion=trueDetails
The Jaxb2RootElementHttpMessageConverter in Spring MVC in Spring Framework before 3.2.8 and 4.0.0 before 4.0.2 does not disable external entity resolution, which allows remote attackers to read arbitrary files, cause a denial of service, and conduct CSRF attacks via crafted XML, aka an XML External Entity (XXE) issue. NOTE: this vulnerability exists because of an incomplete fix for CVE-2013-4152, CVE-2013-7315, and CVE-2013-6429.
Is GHSA-8cmm-qj8g-fcp6 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-webmvc, and gives you the command that fixes it.
More advisories for org.springframework:spring-webmvc
- CriticalCVE-2026-47890Spring Framework Server Sent Event stream corruption while rendering fragments · 27 Aug 2026
- CriticalCVE-2026-47884Spring Framework Improper Path Limitation in XsltView · 27 Aug 2026
- MediumCVE-2026-41846Spring Framework Cross-site Scripting via JSP Form Tags · 9 Jun 2026
- MediumCVE-2026-41853Spring Framework Multipart Request Smuggling in Spring MVC and WebFlux · 9 Jun 2026
- HighCVE-2026-41845Spring Framework Cross-site Scripting via JavaScriptUtils · 9 Jun 2026
- HighCVE-2026-41842Spring Framework Denial of Service via Versioned Resources in Spring MVC and WebFlux · 9 Jun 2026
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2014-0054
- Linkgithub.com/spring-projects/spring-framework/issues/16003
- Linkgithub.com/spring-projects/spring-framework/commit/1a8629d40825c073b6863ae2ab748b647b28506a
- Linkgithub.com/spring-projects/spring-framework/commit/1c5cab2a4069ec3239c531d741aeb07a434f521b
- Linkgithub.com/spring-projects/spring-framework/commit/edba32b3093703d5e9ed42b5b8ec23ecc1998398
- Linkgithub.com/spring-projects/spring-framework/commit/fb0683c066e74e9667d6cd8c5fa01f674c68c3be
- Linkrhn.redhat.com/errata/RHSA-2014-0400.html
- Linkwww.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.