Is org.springframework.security:spring-security-web 4.2 vulnerable?

Maven · 21 releases from 4.2.0 to 4.2.20 · latest org.springframework.security:spring-security-web is 7.1.2 · checked 18 Nov 2026

Yes: 5 known advisories

Yes. org.springframework.security:spring-security-web 4.2.20, the last 4.2 release, is affected by 5 known security advisories (2 critical, 1 high, 2 medium), including CVE-2026-22732, CVE-2022-22978, CVE-2021-22112. Upgrade to 6.5.11 or later to fix all of them.

Upgrade with:mvn versions:use-dep-version -Dincludes=org.springframework.security:spring-security-web -DdepVersion=6.5.11 -DforceVersion=true

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

Advisories affecting org.springframework.security:spring-security-web 4.2.20

  • MediumCVE-2026-47838GHSA-293q-567p-wmwq10 Jun 2026

    Spring Security Vulnerable to Unauthorized User Impersonation when Using X.509 Client Certificates

    Affected
    >=6.5.0 <6.5.11 · >=6.4.0 <=6.4.13 · >=6.0.0 <=6.3.10 · >=5.8.0 <=5.8.16 · <=5.7.14
    Fixed in
    6.5.11
  • MediumCVE-2026-41706GHSA-x2r2-rvhq-2mqv10 Jun 2026

    Spring Security: Open Redirect via Unvalidated Post-Login Redirect URL Stored in CookieRequestCache

    Affected
    >=7.0.0 <7.0.6 · >=6.5.0 <6.5.11 · >=6.3.0 <=6.3.16 · >=5.8.0 <=5.8.25 · <=5.7.23
    Fixed in
    6.5.11, 7.0.6
  • CriticalCVE-2026-22732GHSA-mf92-479x-337320 Mar 2026

    Spring Security HTTP Headers Are not Written Under Some Conditions

    Affected
    <=5.7.14 · >=5.8.0 <=5.8.16 · >=6.0.0 <=6.3.10 · >=6.4.0 <=6.4.13 · >=6.5.0 <6.5.9 · >=7.0.0 <7.0.4
    Fixed in
    6.5.9, 7.0.4
  • CriticalCVE-2022-22978GHSA-hh32-7344-cg2f20 May 2022

    Authorization bypass in Spring Security

    Affected
    >=5.5.0 <5.5.7 · >=5.6.0 <5.6.4 · <5.4.11
    Fixed in
    5.4.11, 5.5.7, 5.6.4
  • HighCVE-2021-22112GHSA-gq28-h5vg-8prx10 May 2021

    Privilege escalation in spring security

    Affected
    >=5.4.0 <5.4.4 · >=5.3.0 <5.3.8 · <5.2.9
    Fixed in
    5.2.9, 5.3.8, 5.4.4

Every org.springframework.security:spring-security-web 4.2.x release

Affected: 4.2.0 to 4.2.20. Latest org.springframework.security:spring-security-web: 7.1.2.

VersionKnown advisories
org.springframework.security:spring-security-web 4.2.20CVE-2026-47838, CVE-2026-41706, CVE-2026-22732, CVE-2022-22978, CVE-2021-22112
org.springframework.security:spring-security-web 4.2.19CVE-2026-47838, CVE-2026-41706, CVE-2026-22732, CVE-2022-22978, CVE-2021-22112
org.springframework.security:spring-security-web 4.2.18CVE-2026-47838, CVE-2026-41706, CVE-2026-22732, CVE-2022-22978, CVE-2021-22112
org.springframework.security:spring-security-web 4.2.17CVE-2026-47838, CVE-2026-41706, CVE-2026-22732, CVE-2022-22978, CVE-2021-22112
org.springframework.security:spring-security-web 4.2.16CVE-2026-47838, CVE-2026-41706, CVE-2026-22732, CVE-2022-22978, CVE-2021-22112
org.springframework.security:spring-security-web 4.2.15CVE-2026-47838, CVE-2026-41706, CVE-2026-22732, CVE-2022-22978, CVE-2021-22112
org.springframework.security:spring-security-web 4.2.14CVE-2026-47838, CVE-2026-41706, CVE-2026-22732, CVE-2022-22978, CVE-2021-22112
org.springframework.security:spring-security-web 4.2.13CVE-2026-47838, CVE-2026-41706, CVE-2026-22732, CVE-2022-22978, CVE-2021-22112
org.springframework.security:spring-security-web 4.2.12CVE-2026-47838, CVE-2026-41706, CVE-2026-22732, CVE-2022-22978, CVE-2021-22112
org.springframework.security:spring-security-web 4.2.11CVE-2026-47838, CVE-2026-41706, CVE-2026-22732, CVE-2022-22978, CVE-2021-22112
org.springframework.security:spring-security-web 4.2.10CVE-2026-47838, CVE-2026-41706, CVE-2026-22732, CVE-2022-22978, CVE-2021-22112
org.springframework.security:spring-security-web 4.2.9CVE-2026-47838, CVE-2026-41706, CVE-2026-22732, CVE-2022-22978, CVE-2021-22112
org.springframework.security:spring-security-web 4.2.8CVE-2026-47838, CVE-2026-41706, CVE-2026-22732, CVE-2022-22978, CVE-2021-22112
org.springframework.security:spring-security-web 4.2.7CVE-2026-47838, CVE-2026-41706, CVE-2026-22732, CVE-2022-22978, CVE-2021-22112
org.springframework.security:spring-security-web 4.2.6CVE-2026-47838, CVE-2026-41706, CVE-2026-22732, CVE-2022-22978, CVE-2021-22112
org.springframework.security:spring-security-web 4.2.5CVE-2026-47838, CVE-2026-41706, CVE-2026-22732, CVE-2022-22978, CVE-2021-22112
org.springframework.security:spring-security-web 4.2.4CVE-2026-47838, CVE-2026-41706, CVE-2026-22732, CVE-2022-22978, CVE-2021-22112
org.springframework.security:spring-security-web 4.2.3CVE-2026-47838, CVE-2026-41706, CVE-2026-22732, CVE-2022-22978, CVE-2021-22112
org.springframework.security:spring-security-web 4.2.2CVE-2026-47838, CVE-2026-41706, CVE-2026-22732, CVE-2022-22978, CVE-2021-22112
org.springframework.security:spring-security-web 4.2.1CVE-2026-47838, CVE-2026-41706, CVE-2026-22732, CVE-2022-22978, CVE-2021-22112
org.springframework.security:spring-security-web 4.2.0CVE-2026-47838, CVE-2026-41706, CVE-2026-22732, CVE-2022-22978, CVE-2021-22112

Which of your client projects are still on org.springframework.security:spring-security-web 4.2?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact org.springframework.security:spring-security-web version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other org.springframework.security:spring-security-web versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the Maven registry. Refreshed daily.