Cross-Site Request Forgery in Spring Framework
Published 13 May 2022 · Updated 4 Dec 2024
Is your project on an affected org.springframework:spring-web?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <3.2.5.RELEASE
- Fixed in
- 3.2.5.RELEASE
mvn versions:use-dep-version -Dincludes=org.springframework:spring-web -DdepVersion=3.2.5.RELEASE -DforceVersion=trueDetails
The SourceHttpMessageConverter in Spring MVC in Spring Framework before 3.2.5 and 4.0.0.M1 through 4.0.0.RC1 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, and a different vulnerability than CVE-2013-4152 and CVE-2013-7315.
Is GHSA-g6hf-f9cq-q7w7 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-web, and gives you the command that fixes it.
More advisories for org.springframework:spring-web
- MediumCVE-2026-41854Spring Framework Server-Side Request Forgery via UriComponentsBuilder · 9 Jun 2026
- MediumCVE-2025-41234Spring Framework vulnerable to a reflected file download (RFD) · 13 Jun 2025
- MediumCVE-2024-38820Spring Framework DataBinder Case Sensitive Match Exception · 18 Oct 2024
- MediumCVE-2024-38809Spring Framework DoS via conditional HTTP request · 24 Sept 2024
- HighCVE-2024-22262Spring Framework URL Parsing with Host Validation · 16 Apr 2024
- HighCVE-2024-22259Spring Framework URL Parsing with Host Validation Vulnerability · 16 Mar 2024
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2013-6429
- Linkgithub.com/spring-projects/spring-framework/issues/15704
- Linkgithub.com/spring-projects/spring-framework/commit/2ae6a6a3415eebc57babcb9d3e5505887eda6d8
- Linkgithub.com/spring-projects/spring-framework/commit/7387cb990e35b0f1b573faf29d4f9ae183d7a5e
- Linkh20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05324755
- Linkjira.spring.io/browse/SPR-11078?redirect=false
- Linkrhn.redhat.com/errata/RHSA-2014-0400.html
- Linksecunia.com/advisories/57915
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.