HighGHSA-cx7f-g6mp-7hqmCVE-2024-38816

Path traversal vulnerability in functional web frameworks

Published 13 Sept 2024 · Updated 10 Sept 2026

Is your project on an affected org.springframework:spring-webmvc?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
>=6.1.0 <6.1.13
Fixed in
6.1.13
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.springframework:spring-webmvc -DdepVersion=6.1.13 -DforceVersion=true
Affected
>=6.1.0 <6.1.13
Fixed in
6.1.13
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.springframework:spring-webflux -DdepVersion=6.1.13 -DforceVersion=true
Affected
>=6.0.0 <=6.0.23
Fixed in
No fix released
Affected
>=6.0.0 <=6.0.23
Fixed in
No fix released
Affected
>=5.3.0 <=5.3.39
Fixed in
No fix released
Affected
>=5.3.0 <=5.3.39
Fixed in
No fix released

Details

Applications serving static resources through the functional web frameworks WebMvc.fn or WebFlux.fn are vulnerable to path traversal attacks. An attacker can craft malicious HTTP requests and obtain any file on the file system that is also accessible to the process in which the Spring application is running.

Specifically, an application is vulnerable when both of the following are true:

  • the web application uses RouterFunctions to serve static resources
  • resource handling is explicitly configured with a FileSystemResource location

However, malicious requests are blocked and rejected when any of the following is true:

  • the Spring Security HTTP Firewall https://docs.spring.io/spring-security/reference/servlet/exploits/firewall.html  is in use
  • the application runs on Tomcat or Jetty

Is GHSA-cx7f-g6mp-7hqm 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
All 27 advisories for org.springframework:spring-webmvc

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.