CriticalGHSA-7phw-cxx7-q9vqCVE-2023-20860

Spring Framework is vulnerable to security bypass via mvcRequestMatcher pattern mismatch

Published 28 Mar 2023 · Updated 23 Sept 2025

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

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.0.0 <6.0.7
Fixed in
6.0.7
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.springframework:spring -DdepVersion=6.0.7 -DforceVersion=true
Affected
>=5.3.0 <5.3.26
Fixed in
5.3.26
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.springframework:spring -DdepVersion=5.3.26 -DforceVersion=true
Affected
>=6.0.0 <6.0.7
Fixed in
6.0.7
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.springframework:spring-webmvc -DdepVersion=6.0.7 -DforceVersion=true
Affected
>=5.3.0 <5.3.26
Fixed in
5.3.26
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.springframework:spring-webmvc -DdepVersion=5.3.26 -DforceVersion=true

Details

Spring Framework running version 6.0.0 - 6.0.6 or 5.3.0 - 5.3.25 using "" as a pattern in Spring Security configuration with the mvcRequestMatcher creates a mismatch in pattern matching between Spring Security and Spring MVC, and the potential for a security bypass.

Is GHSA-7phw-cxx7-q9vq 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, and gives you the command that fixes it.

More advisories for org.springframework:spring

  • MediumCVE-2021-22096Improper Output Neutralization for Logs in Spring Framework · 24 May 2022
  • MediumCVE-2010-1622Improper Control of Generation of Code ('Code Injection') in Spring Framework · 17 May 2022
org.springframework:spring security overview

References

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