CriticalGHSA-c4q5-6c82-3qpwCVE-2024-38821

Spring Security vulnerable to Authorization Bypass of Static Resources in WebFlux Applications

Published 28 Oct 2024 · Updated 10 Sept 2026

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

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
>=5.0.0 <5.7.13
Fixed in
5.7.13
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.springframework.security:spring-security-web -DdepVersion=5.7.13 -DforceVersion=true
Affected
>=5.8.0 <5.8.15
Fixed in
5.8.15
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.springframework.security:spring-security-web -DdepVersion=5.8.15 -DforceVersion=true
Affected
>=6.2.0 <6.2.7
Fixed in
6.2.7
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.springframework.security:spring-security-web -DdepVersion=6.2.7 -DforceVersion=true
Affected
>=6.0.0 <6.0.13
Fixed in
6.0.13
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.springframework.security:spring-security-web -DdepVersion=6.0.13 -DforceVersion=true
Affected
>=6.1.0 <6.1.11
Fixed in
6.1.11
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.springframework.security:spring-security-web -DdepVersion=6.1.11 -DforceVersion=true
Affected
>=6.3.0 <6.3.4
Fixed in
6.3.4
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.springframework.security:spring-security-web -DdepVersion=6.3.4 -DforceVersion=true

Details

Spring WebFlux applications that have Spring Security authorization rules on static resources can be bypassed under certain circumstances.

For this to impact an application, all of the following must be true:

  • It must be a WebFlux application
  • It must be using Spring's static resources support
  • It must have a non-permitAll authorization rule applied to the static resources support

Is GHSA-c4q5-6c82-3qpw 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.security:spring-security-web, and gives you the command that fixes it.

More advisories for org.springframework.security:spring-security-web

  • MediumCVE-2026-47838Spring Security Vulnerable to Unauthorized User Impersonation when Using X.509 Client Certificates · 10 Jun 2026
  • MediumCVE-2026-41706Spring Security: Open Redirect via Unvalidated Post-Login Redirect URL Stored in CookieRequestCache · 10 Jun 2026
  • MediumCVE-2026-22747Spring Security Vulnerable to Unauthorized User Impersonation when Using X.509 Client Certificates · 22 Apr 2026
  • CriticalCVE-2026-22732Spring Security HTTP Headers Are not Written Under Some Conditions · 20 Mar 2026
  • CriticalCVE-2022-22978Authorization bypass in Spring Security · 20 May 2022
  • HighCVE-2021-22112Privilege escalation in spring security · 10 May 2021
org.springframework.security:spring-security-web security overview

References

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