Skip to content
OpenAdvisories

Product · Spring

Spring Security

29 known vulnerabilities.

Spring Security at a glance

Last 12 months
22
Critical · all time
2
Exploited · all time
0
Public exploit · all time
2
New vulnerabilities per month · last 12 months
0 5 10 December 2025: 0 vulnerabilities Dec 2025 January 2026: 1 vulnerability February 2026: 0 vulnerabilities March 2026: 1 vulnerability Mar April 2026: 6 vulnerabilities May 2026: 0 vulnerabilities June 2026: 7 vulnerabilities Jun July 2026: 0 vulnerabilities August 2026: 7 vulnerabilities, 1 critical September 2026: 0 vulnerabilities Sep October 2026: 0 vulnerabilities November 2026: 0 vulnerabilities
Show as table
MonthVulnerabilitiesCritical
Nov 202600
Oct 202600
Sep 202600
Aug 202671
Jul 202600
Jun 202670
May 202600
Apr 202660
Mar 202610
Feb 202600
Jan 202610
Dec 202500
Nov 202500
Oct 202500
Sep 202500
Aug 202500
Jul 202500
Jun 202500
May 202511
Apr 202500
Mar 202520
Feb 202500
Jan 202500
Dec 202400

29 results · Feed

  • Low 3.7

    Spring Security InetAddressMatchers Incomplete Internal Network Classification

    Spring Security's InetAddressMatchers utility provides matchInternal() and matchExternal() builders for constructing an InetAddressMatcher that classifies a given IP address as belonging to an internal (private) or external (public) network. Spring Security 7…

  • Medium 5.9

    Timing Attack via Non-Constant-Time Comparison of Sensitive Values

    Several components in Spring Security compare security-sensitive values using standard string equality (String.equals()) rather than a constant-time comparison. Because String.equals() returns as soon as it finds a differing character, the time taken to rejec…

  • Critical 9.4

    Spring Security embedded UnboundID LDAP server exposes well-known administrative bind DN on all network interfaces

    Spring Security's embedded UnboundID LDAP server (UnboundIdContainer) unconditionally registers an administrative credential and binds its listener to all available network interfaces. Spring Security 7.1.0 Spring Security 7.0.0 - 7.0.6 Spring Security 6.5.0 …

  • High 8.2

    Spring Security Authorization Server Default Consent Page is vulnerable to Cross-Site Scripting (XSS)

    Spring Security Authorization Server's default consent page renders user-controlled values without HTML entity encoding. Spring Security 7.1.0 Spring Security 7.0.0 - 7.0.6

  • Medium 6.5

    Deterministic AES/CBC Encryption in Spring Security AesBytesEncryptor Allows Ciphertext Correlation

    Applications using AesBytesEncryptor with the two-argument constructor or when passing a null IV generator and CBC as the encryption mode encrypt data with AES/CBC using a null (all-zero) initialization vector. Spring Security 7.1.0 Spring Security 7.0.0 - 7.…

  • High 7.4

    WebAuthn User Verification Bypass via Session Serialization

    An application using Spring Security's WebAuthn support may be vulnerable to user verification bypass when using a distributed HTTP session store. Spring Security 7.1.0 Spring Security 7.0.0 - 7.0.6 Spring Security 6.5.0 - 6.5.11 Spring Security 6.4.0 - 6.4.18

  • High 7.4

    Spring Security DPoPProofJwtDecoderFactory vulnerable to DPoP Proof Replay

    Authentication Bypass by Capture-replay vulnerability in Spring Spring Security allows Spring Security's DPoPProofJwtDecoderFactory contains a cache-based replay attack vulnerability. The internal cache storing JWT ID claims has a strict size limit, allowing …

  • Medium 6.8

    Unauthorized User Impersonation when Using X.509 Client Certificates

    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. A…

  • Medium 6.1

    Open Redirect When Using CookieRequestCache

    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…

  • Low 3.7

    SAML Payloads Decrypted Without Valid Signature

    Since Spring Security SAML decrypts SAML Responses as well as elements of SAML LogoutRequests and LogoutResponses without requiring a valid signature, attackers may be able to craft these SAML payloads and use the Service Provider as a decryption oracle. Affe…

  • Medium 6.1

    Spring Security Authorization Server Open Redirect via request_uri

    Spring Security Authorization Server's authorization endpoint performs insufficient validation of the request_uri parameter. An attacker can craft a malicious authorization request containing an invalid request_uri and an arbitrary, unvalidated redirect_uri, …

  • High 7.6

    Unencoded HTML Outputs in Spring Security May Allow Cross-Site Scripting

    An attacker able to influence values in RelyingPartyRegistration may be able to run arbitrary code on HTML forms generated by Spring Security filters. 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 t…

  • High 7.3

    Unfiltered Java Native Deserialization of SAML 2.0 Asserting Party Credentials BLOB Database Entry

    An attacker with write permissions to the database table managed by JdbcAssertingPartyMetadataRepository (saml2_asserting_party_metadata) may be able to store malicious serialized payloads in the columns containing the collection of verification or encryption…

  • High 7.5

    Unbounded DEFLATE Inflation in SAML 2.0 Service Provider

    An application using spring-security-saml2-service-provider and the REDIRECT binding for SAML 2.0 Login or Logout may be vulnerable to a denial of service by way of an unbounded writer that inflates the compressed SAML payload into memory. Affected versions: …

  • High 7.5

    ervlet Path Not Correctly Included in Path Matching of XML Authorization Rules

    Vulnerability in Spring Spring Security. If an application uses <sec:intercept-url servlet-path="/servlet-path" pattern="/endpoint/**"/> to define the servlet path for computing a path matcher, then the servlet path is not included and the related authorizati…

  • High 7.5

    Servlet Path Not Correctly Included in Path Matching of HttpSecurity#securityMatchers

    Vulnerability in Spring Spring Security. If an application is using securityMatchers(String) and a PathPatternRequestMatcher.Builder bean to prepend a servlet path, matching requests to that filter chain may fail and its related security components will not b…

  • Medium 5.3

    Potential Security Misconfiguration when Using withIssuerLocation

    Vulnerability in Spring Spring Security. When an application configures JWT decoding with NimbusJwtDecoder  or NimbusReactiveJwtDecoder, it must configure an OAuth2TokenValidator<Jwt> separately, for example by calling setJwtValidator.This issue affects Sprin…

  • Medium 6.8
    CVE-2026-22747 Public exploit

    Unauthorized User Impersonation when Using X.509 Client Certificates

    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…

  • Low 3.7

    User Attribute Enumeration when Using DaoAuthenticationProvider

    Vulnerability in Spring Spring Security. If an application is using the UserDetails#isEnabled, #isAccountNonExpired, or #isAccountNonLocked user attributes, to enable, expire, or lock users, then DaoAuthenticationProvider's timing attack defense can be bypass…

  • Medium 4.8

    Spring Security JdbcOneTimeTokenService allows a one-time token to authenticate multiple sessions

    Vulnerability in Spring Spring Security. Applications that explicitly configure One-Time Token login with JdbcOneTimeTokenService are vulnerable to a Time-of-check Time-of-use (TOCTOU) race condition. This issue affects Spring Security: from 6.4.0 through 6.4…

  • High 8.2

    Authentication Bypass under Actuator CloudFoundry endpoints

    Spring Boot applications with Actuator can be vulnerable to an "Authentication Bypass" vulnerability when an application endpoint that requires authentication is declared under the path used by the CloudFoundry Actuator endpoints. This issue affects Spring Se…

  • Medium 5.3

    Spring Security - BCrypt Password Encoder maximum password length breaks timing attack mitigation

    The fix applied in CVE-2025-22228 inadvertently broke the timing attack mitigation implemented in DaoAuthenticationProvider. This can allow attackers to infer valid usernames or other authentication behavior via response-time differences under certain configu…

  • Critical 9.1

    CVE-2025-41232: Spring Security authorization bypass for method security annotations on private methods

    Spring Security Aspects may not correctly locate method security annotations on private methods. This can cause an authorization bypass. Your application may be affected by this if the following are true: * You are using @EnableMethodSecurity(mode=ASPECTJ) an…

  • Medium 5.3
    CVE-2025-22223 Public exploit

    Spring Security Vulnerable to Authorization Bypass via Security Annotations

    Spring Security 6.4.0 - 6.4.3 may not correctly locate method security annotations on parameterized types or methods. This may cause an authorization bypass.  You are not affected if you are not using @EnableMethodSecurity, or you do not have method security …

  • High 7.4

    CVE-2025-22228: Spring Security BCryptPasswordEncoder does not enforce maximum password length

    BCryptPasswordEncoder.matches(CharSequence,String) will incorrectly return true for passwords larger than 72 characters as long as the first 72 characters are the same.

  • Medium 6.5

    Missing Authorization When Using @AuthorizeReturnObject

    Missing Authorization When Using @AuthorizeReturnObject in Spring Security 6.3.0 and 6.3.1 allows attacker to render security annotations inaffective.

  • High 7.4

    CVE-2024-22234: Broken Access Control in Spring Security With Direct Use of isFullyAuthenticated

    In Spring Security, versions 6.1.x prior to 6.1.7 and versions 6.2.x prior to 6.2.2, an application is vulnerable to broken access control when it directly uses the AuthenticationTrustResolver.isFullyAuthenticated(Authentication) method. Specifically, an appl…

  • High 7.3

    PlaintextPasswordEncoder authenticates encoded passwords that are null

    Spring Security, versions 4.2.x up to 4.2.12, and older unsupported versions support plain text passwords using PlaintextPasswordEncoder. If an application using an affected version of Spring Security is leveraging PlaintextPasswordEncoder and a user has a nu…

  • Low 3.8

    Insecure Randomness When Using a SecureRandom Instance Constructed by Spring Security

    Spring Security versions 4.2.x prior to 4.2.12, 5.0.x prior to 5.0.12, and 5.1.x prior to 5.1.5 contain an insecure randomness vulnerability when using SecureRandomFactoryBean#setSeed to configure a SecureRandom instance. In order to be impacted, an honest ap…