Spring Framework URL Parsing with Host Validation
Published 16 Apr 2024 · Updated 10 Sept 2026
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 packages
- Affected
- <5.3.34
- Fixed in
- 5.3.34
mvn versions:use-dep-version -Dincludes=org.springframework:spring-web -DdepVersion=5.3.34 -DforceVersion=true- Affected
- >=6.0.0 <6.0.19
- Fixed in
- 6.0.19
mvn versions:use-dep-version -Dincludes=org.springframework:spring-web -DdepVersion=6.0.19 -DforceVersion=true- Affected
- >=6.1.0 <6.1.6
- Fixed in
- 6.1.6
mvn versions:use-dep-version -Dincludes=org.springframework:spring-web -DdepVersion=6.1.6 -DforceVersion=trueDetails
Applications that use UriComponentsBuilder to parse an externally provided URL (e.g. through a query parameter) AND perform validation checks on the host of the parsed URL may be vulnerable to a open redirect https://cwe.mitre.org/data/definitions/601.html attack or to a SSRF attack if the URL is used after passing validation checks.
This is the same as CVE-2024-22259 https://spring.io/security/cve-2024-22259 and CVE-2024-22243 https://spring.io/security/cve-2024-22243 , but with different input.
Is GHSA-2wrp-6fg6-hmc5 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-22259Spring Framework URL Parsing with Host Validation Vulnerability · 16 Mar 2024
- HighCVE-2024-22243Spring Web vulnerable to Open Redirect or Server Side Request Forgery · 23 Feb 2024
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-22262
- Packagegithub.com/spring-projects/spring-framework
- Linkgithub.com/spring-projects/spring-framework/blob/main/spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java
- Linksecurity.netapp.com/advisory/ntap-20240524-0003
- Linkspring.io/security/cve-2024-22262
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.