Spring Security vulnerabilities, page 2

35 vulnerabilities

Known vulnerabilities in Spring Security, newest first, with CVSS severity, EPSS, KEV listings, ransomware use and the affected versions.

PrioritiseCVE-2026-22754spring · spring security +7 moreervlet Path Not Correctly Included in Path Matching of XML Authorization RulesVulnerability 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 authorization rules are not exercised. This can lead to an authorization bypass.This issue affects Spring Security: from 7.0.0 through 7.0.4.CVSS7.5HighEPSS0.27%PrioritiseCVE-2026-22753spring · spring security +7 moreServlet Path Not Correctly Included in Path Matching of HttpSecurity#securityMatchersVulnerability 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 be exercised as intended by the application. This can lead to the authentication, authorization, and other security controls being rendered inactive on intended requests.This issue affects Spring Security: from 7.0.0 through 7.0.4.CVSS7.5HighEPSS0.25%RoutineCVE-2026-22748spring · spring security +13 morePotential Security Misconfiguration when Using withIssuerLocationVulnerability 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 Spring Security: from 6.3.0 through 6.3.14, from 6.4.0 through 6.4.14, from 6.5.0 through 6.5.9, from 7.0.0 through 7.0.4.CVSS6.5MediumEPSS0.21%RoutineCVE-2026-22747spring · spring security +7 moreUnauthorized User Impersonation when Using X.509 Client CertificatesVulnerability 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.CVSS8.1HighEPSS0.25%RoutineCVE-2026-22746spring · spring security +35 moreUser Attribute Enumeration when Using DaoAuthenticationProviderVulnerability 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 bypassed for users who are disabled, expired, or locked.This issue affects Spring Security: from 5.7.0 through 5.7.22, from 5.8.0 through 5.8.24, from 6.3.0 through 6.3.15, from 6.5.0 through 6.5.9, from 7.0.0 through 7.0.4.CVSS3.7LowEPSS0.22%RoutineCVE-2026-22751spring · spring security +29 moreSpring Security JdbcOneTimeTokenService allows a one-time token to authenticate multiple sessionsVulnerability 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.15, from 6.5.0 through 6.5.9, from 7.0.0 through 7.0.4.CVSS4.8MediumEPSS0.13%PrioritiseCVE-2026-22733spring · spring security +22 moreAuthentication Bypass under Actuator CloudFoundry endpointsSpring 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 Security: from 4.0.0 through 4.0.3, from 3.5.0 through 3.5.11, from 3.4.0 through 3.4.14, from 3.3.0 through 3.3.17, from 2.7.0 through 2.7.31.CVSS8.2HighEPSS0.43%RoutineCVE-2025-22234spring · spring security +1 moreSpring Security - BCrypt Password Encoder maximum password length breaks timing attack mitigationThe 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 configurations.CVSS5.3MediumEPSS0.39%PrioritiseCVE-2025-41232spring · spring security +2 moreCVE-2025-41232: Spring Security authorization bypass for method security annotations on private methodsSpring 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) and spring-security-aspects, and * You have Spring Security method annotations on a private method In that case, the target method may be able to be invoked without proper authorization. You are not affected if: * You are not using @EnableMethodSecurity(mode=ASPECTJ) or spring-security-aspects, or * You have no Spring Security-annotated private methodsCVSS9.1CriticalEPSS0.64%RoutineCVE-2025-22223spring · spring security +1 morespring spring securitySpring 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 annotations on parameterized types or methods, or all method security annotations are attached to target methodsCVSS5.3MediumEPSS0.51%PrioritiseCVE-2025-22228spring · spring security +34 moreCVE-2025-22228: Spring Security BCryptPasswordEncoder does not enforce maximum password lengthBCryptPasswordEncoder.matches(CharSequence,String) will incorrectly return true for passwords larger than 72 characters as long as the first 72 characters are the same.CVSS7.4HighEPSS0.61%RoutineCVE-2024-38810spring · spring security +2 moreMissing Authorization When Using @AuthorizeReturnObjectMissing Authorization When Using @AuthorizeReturnObject in Spring Security 6.3.0 and 6.3.1 allows attacker to render security annotations inaffective.CVSS7.5HighEPSS0.46%PrioritiseCVE-2024-22234spring · spring security +2 moreCVE-2024-22234: Broken Access Control in Spring Security With Direct Use of isFullyAuthenticatedIn 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 application is vulnerable if: * The application uses AuthenticationTrustResolver.isFullyAuthenticated(Authentication) directly and a null authentication parameter is passed to it resulting in an erroneous true return value. An application is not vulnerable if any of the following is true: * The application does not use AuthenticationTrustResolver.isFullyAuthenticated(Authentication) directly. * The application does not pass null to AuthenticationTrustResolver.isFullyAuthenticated * The application only uses isFullyAuthenticated via Method Security https://docs.spring.io/spring-security/reference/servlet/authorization/method-security.html  or HTTP Request Security https://docs.spring.io/spring-security/reference/servlet/authorization/authorize-http-requests.htmlCVSS7.4HighEPSS0.68%PrioritiseCVE-2019-11272spring · spring security +5 morePlaintextPasswordEncoder authenticates encoded passwords that are nullSpring 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 null encoded password, a malicious user (or attacker) can authenticate using a password of "null".CVSS7.5HighEPSS1.41%RoutineCVE-2019-3795spring · spring security +4 moreInsecure Randomness When Using a SecureRandom Instance Constructed by Spring SecuritySpring 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 application must provide a seed and make the resulting random material available to an attacker for inspection.CVSS5.3MediumEPSS1.92%