Skip to content

← Public intelligence

Maven package

org.springframework.security:spring-security-web

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

7 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Medium, CVSS 6.8MavenPublished

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

    CVE-2026-47838 · GHSA-293q-567p-wmwq

    Affected
    • Maven org.springframework.security:spring-security-web >= 6.5.0, <= 6.5.10; >= 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· Partial vendor fix
    Issue
    In Spring Security Web, SubjectDnX509PrincipalExtractor does not correctly handle certain malformed X.509 certificate CN values, which can lead to reading the wrong value for the username. In a carefully crafted certificate, this can lead to an attacker impersonating another user. SubjectDnX509PrincipalExtractor is deprecated by this CVE and replaced with SubjectX500PrincipalExtractor. As part of updating, you should also migrate to SubjectX500PrincipalExtractor. Affected versions: Spring Security Enterprise 5.7.0 through 5.7.24; 5.8.0 through 5.8.26; 6.3.0 through 6.3.17; 6.4.0 through 6.4.17; 6.5.0 through 6.5.10. OSS 6.5.0 through 6.5.10.

    Recommended action: Upgrade to 6.5.11; some affected versions have no fix yet, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  2. Medium, CVSS 6.1MavenPublished

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

    CVE-2026-41706 · GHSA-x2r2-rvhq-2mqv

    Affected
    • Maven org.springframework.security:spring-security-web >= 7.0.0, <= 7.0.5; >= 6.5.0, <= 6.5.10; >= 6.3.0, <= 6.3.16; >= 5.8.0, <= 5.8.25; <= 5.7.23
    Fixed in
    6.5.117.0.6· Partial vendor fix
    Issue
    Spring Security's CookieRequestCache and CookieServerRequestCache store the pre-authentication request URL in a browser cookie so that users can be redirected back to their intended destination after a successful login. In affected versions, the full absolute URL is stored in the cookie and is used without validation as the post-login redirect target. Affected versions: Spring Security 5.7.0 through 5.7.23; 5.8.0 through 5.8.25; 6.3.0 through 6.3.16; 6.4.0 through 6.4.16; 6.5.0 through 6.5.10; 7.0.0 through 7.0.5.

    Recommended action: Upgrade to 7.0.6 or 6.5.11 by release line; some affected versions have no fix yet, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  3. Medium, CVSS 6.8MavenPublished

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

    CVE-2026-22747 · GHSA-2jrg-rf5x-568g

    Affected
    • Maven org.springframework.security:spring-security-web >= 7.0.0, <= 7.0.4
    Fixed in
    7.0.5· Vendor fix available
    Issue
    Vulnerability in Spring Spring Security. SubjectX500PrincipalExtractor does not correctly handle certain malformed X.509 certificate CN values, which can lead to reading the wrong value for the username. In a carefully crafted certificate, this can lead to an attacker impersonating another user. This issue affects Spring Security: from 7.0.0 through 7.0.4.

    Recommended action: Upgrade to 7.0.5 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  4. Critical, CVSS 9.1MavenPublished

    Spring Security HTTP Headers Are not Written Under Some Conditions

    CVE-2026-22732 · GHSA-mf92-479x-3373

    Affected
    • Maven org.springframework.security:spring-security-web <= 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.97.0.4· Partial vendor fix
    Issue
    When applications specify HTTP response headers for servlet applications using Spring Security, there is the possibility that the HTTP Headers will not be written. This issue affects Spring Security: from 5.7.0 through 5.7.21, from 5.8.0 through 5.8.23, from 6.3.0 through 6.3.14, from 6.4.0 through 6.4.14, from 6.5.0 through 6.5.8, from 7.0.0 through 7.0.3.

    Recommended action: Upgrade to 7.0.4 or 6.5.9 by release line; some affected versions have no fix yet, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  5. Critical, CVSS 9.3MavenPublished

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

    CVE-2024-38821 · GHSA-c4q5-6c82-3qpw

    Affected
    • Maven org.springframework.security:spring-security-web >= 5.8.0, < 5.8.15; >= 6.2.0, < 6.2.7; >= 6.0.0, < 6.0.13; >= 6.1.0, < 6.1.11; >= 6.3.0, < 6.3.4; >= 5.0.0, < 5.7.13
    Fixed in
    5.8.155.7.136.0.136.3.46.2.76.1.11· Vendor fix available
    Issue
    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

    Recommended action: Upgrade to 6.3.4, 6.2.7, 6.1.11 or 3 more by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  6. Critical, CVSS 9.8MavenPublished

    Authorization bypass in Spring Security

    CVE-2022-22978 · GHSA-hh32-7344-cg2f

    Affected
    • Maven org.springframework.security:spring-security-web >= 5.5.0, < 5.5.7; >= 5.6.0, < 5.6.4; < 5.4.11
    Fixed in
    5.4.115.5.75.6.4· Vendor fix available
    Issue
    In Spring Security versions 5.5.6 and 5.5.7 and older unsupported versions, RegexRequestMatcher can easily be misconfigured to be bypassed on some servlet containers. Applications using RegexRequestMatcher with . in the regular expression are possibly vulnerable to an authorization bypass.

    Recommended action: Upgrade to 5.6.4, 5.5.7 or 5.4.11 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  7. High, CVSS 8.8MavenPublished

    Privilege escalation in spring security

    CVE-2021-22112 · GHSA-gq28-h5vg-8prx

    Affected
    • Maven org.springframework.security:spring-security-web < 5.2.9; >= 5.4.0, < 5.4.4; >= 5.3.0, < 5.3.8
    Fixed in
    5.3.85.2.95.4.4· Vendor fix available
    Issue
    Spring Security 5.4.x prior to 5.4.4, 5.3.x prior to 5.3.8.RELEASE, 5.2.x prior to 5.2.9.RELEASE, and older unsupported versions can fail to save the SecurityContext if it is changed more than once in a single request.A malicious user cannot cause the bug to happen (it must be programmed in). However, if the application's intent is to only allow the user to run with elevated privileges in a small portion of the application, the bug can be leveraged to extend those privileges to the rest of the application.

    Recommended action: Upgrade to 5.4.4, 5.3.8 or 5.2.9 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →