GHSA-ccgv-vj62-xf9h
Spring Web vulnerable to Open Redirect or Server Side Request Forgery
Quick fix
GHSA-ccgv-vj62-xf9h — org.springframework:spring-web: upgrade to the fixed version with the command below.
# pom.xml: bump <version>6.1.4</version> for org.springframework:spring-webDetails
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 attack or to a SSRF attack if the URL is used after passing validation checks.
Are you affected?
Enter the version of the package you're using.
Affected packages
6.1.0Fixed in: 6.1.4# pom.xml: bump <version>6.1.4</version> for org.springframework:spring-web6.0.0Fixed in: 6.0.17# pom.xml: bump <version>6.0.17</version> for org.springframework:spring-web5.3.0Fixed in: 5.3.32# pom.xml: bump <version>5.3.32</version> for org.springframework:spring-web0No fixed version published yet for org.springframework:spring-web (maven). Pin to a known-safe version or switch to an alternative.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-22243[ADVISORY]
- https://github.com/spring-projects/spring-framework[PACKAGE]
- https://github.com/spring-projects/spring-framework/blob/main/spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java[WEB]
- https://security.netapp.com/advisory/ntap-20240524-0001[WEB]
- https://spring.io/security/cve-2024-22243[WEB]
- http://seclists.org/fulldisclosure/2024/Sep/24[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:maven/org.springframework/spring-web"]}'