Spring Security vulnerabilities
31 known CVE vulnerabilities in Spring Security, translated and rated.
- CVE-2026-59414Critical
Request matchers created by EndpointRequest and PathRequest may not correctly handle paths with trailing slashes. This may prevent security matching rules from having the intended effect and leave a path unintentionally unsecured.
- CVE-2026-59270Critical
Spring Security's embedded UnboundID LDAP server (UnboundIdContainer) unconditionally registers an administrative credential and binds its listener to all available network interfaces. Affected versions include Spring Security 7.1.0, 7.0.0-7.0.6, 6.5.0-6.5.11, 6.4.0-6.4.18, 5.8.0-5.8.27, and 5.7.0-5.7.25.
- CVE-2026-59400Medium
ClientRegistration, Spring Security's representation of an OAuth2/OpenID Connect client registration, includes the confidential client secret in the plaintext output of its toString() method. Since toString() is invoked implicitly by common behaviors, the secret may be disclosed to unintended destinations.
- CVE-2026-59333High
Spring Security's IP address matching support, including IpAddressMatcher, IpAddressServerWebExchangeMatcher, and the InetAddressMatchers factory introduced in 7.1, compared only the leading bytes of remote and configured addresses without first confirming they belong to the same address family. Because IPv4 and IPv6 addresses have different byte lengths, a remote address in one family could be reported as matching a CIDR range in the other family. This may allow an attacker to bypass IP-based access-control rules.
- CVE-2026-59331High
Spring Security's RSocket support includes BasicAuthenticationPayloadExchangeConverter, which decodes username and password metadata from a non-standard RSocket Basic Authentication frame. The decoder read a length field and used it directly to size a memory allocation without validating it was a reasonable, non-negative size relative to available data. A single crafted authentication frame could cause an extremely large allocation.
- CVE-2026-59330High
Spring Security's WebAuthn relying-party support, Webauthn4JRelyingPartyOperations, does not effectively enforce its authenticator signature-counter check. An internal defect in supplying the previously stored counter to the verification library means the check does not detect a non-incrementing counter, so this defense-in-depth control against cloned authenticators is ineffective. An attacker with a cloned authenticator can continue to authenticate as the victim.
- CVE-2026-59329Low
Spring Security's reactive authentication support (AbstractUserDetailsReactiveAuthenticationManager and UserDetailsRepositoryReactiveAuthenticationManager) does not invoke the configured PasswordEncoder when the submitted username does not exist. This makes response times measurably shorter for nonexistent usernames than for valid usernames with an incorrect password.
- CVE-2026-59277Low
Spring Security's InetAddressMatchers utility provides matchInternal() and matchExternal() builders for constructing an InetAddressMatcher that classifies a given IP address as internal (private) or external (public). Affects Spring Security 7.1.0.
- CVE-2026-59276Medium
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 reject an incorrect value is proportional to the number of leading characters that match the expected value.
- CVE-2026-47877High
Spring Security Authorization Server versions 7.1.0 and 7.0.0-7.0.6 are vulnerable because the default consent page renders user-controlled values without HTML entity encoding.
- CVE-2026-47842Medium
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. Affected versions include Spring Security 5.7.0 through 7.1.0.
- CVE-2026-47841High
An application using Spring Security's WebAuthn support may be vulnerable to user verification bypass when using a distributed HTTP session store. Affected versions: Spring Security 7.1.0, 7.0.0-7.0.6, 6.5.0-6.5.11, 6.4.0-6.4.18.
- CVE-2026-41707High
Authentication Bypass by Capture-replay vulnerability in Spring Security allows Spring Security's DPoPProofJwtDecoderFactory to contain a cache-based replay attack vulnerability. The internal cache storing JWT ID claims has a strict size limit, allowing attackers to evict legitimate entries by flooding the server with dummy requests, then replay intercepted valid DPoP proofs.
- CVE-2026-47838Medium
The SubjectDnX509PrincipalExtractor in Spring Security does not correctly handle certain malformed X.509 certificate CN values, potentially reading the wrong username. A crafted certificate could allow an attacker to impersonate another user. Affected versions: 5.7.0-5.7.24, 5.8.0-5.8.26, 6.3.0-6.3.17, 6.4.0-6.4.17, 6.5.0-6.5.10.
- CVE-2026-41706Medium
A vulnerability in Spring Security's CookieRequestCache and CookieServerRequestCache stores the full absolute pre-authentication URL in a browser cookie. After login, the user is redirected to this URL without validation, enabling an open redirect attack.
- CVE-2026-41694Low
Vulnerability in Spring Security SAML allows attackers to decrypt SAML Responses and LogoutRequest/LogoutResponse elements without a valid signature, enabling the Service Provider to be used as a decryption oracle. Affects versions 5.7.0-5.7.23, 5.8.0-5.8.25, 6.3.0-6.3.16, 6.4.0-6.4.16, 6.5.0-6.5.10, 7.0.0-7.0.5.
- CVE-2026-41003High
In Spring Security, an attacker able to influence values in RelyingPartyRegistration can execute arbitrary code on HTML forms generated by Spring Security filters. Affected versions: 5.7.0-5.7.23, 5.8.0-5.8.25, 6.3.0-6.3.16, 6.4.0-6.4.16, 6.5.0-6.5.10, and 7.0.0-7.0.5.
- CVE-2026-40993High
An attacker with write permissions to the database table managed by JdbcAssertingPartyMetadataRepository can store malicious serialized payloads in columns containing verification or encryption credentials. Affects Spring Security versions 7.0.0 through 7.0.5.
- CVE-2026-40988High
An application using spring-security-saml2-service-provider with 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: 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.
- CVE-2026-22754High
A vulnerability in Spring Security allows authorization rules to be bypassed when an application uses <sec:intercept-url servlet-path="..."/> to define the servlet path. The servlet path is not included in path matching, leading to authorization bypass.
- CVE-2026-22748Medium
A vulnerability in Spring Security affects applications that configure JWT decoding with NimbusJwtDecoder or NimbusReactiveJwtDecoder and must separately configure an OAuth2TokenValidator<Jwt>, for example by calling setJwtValidator. The issue affects Spring Security versions 6.3.0 through 6.3.14, 6.4.0 through 6.4.14, 6.5.0 through 6.5.9, and 7.0.0 through 7.0.4.
- CVE-2026-22747Medium
A vulnerability in Spring Security's SubjectX500PrincipalExtractor incorrectly handles malformed CN values in X.509 certificates, potentially reading the wrong username. A crafted certificate could allow an attacker to impersonate another user.
- CVE-2026-22746Low
In Spring Security, if an application uses the UserDetails#isEnabled, #isAccountNonExpired, or #isAccountNonLocked user attributes to enable, expire, or lock users, DaoAuthenticationProvider's timing attack defense can be bypassed for disabled, expired, or locked users. This affects Spring Security 5.7.0 through 5.7.22, 5.8.0 through 5.8.24, 6.3.0 through 6.3.15, 6.5.0 through 6.5.9, and 7.0.0 through 7.0.4.
- CVE-2026-22751Medium
Vulnerability in Spring Security affects applications that explicitly configure One-Time Token login with JdbcOneTimeTokenService. A Time-of-check Time-of-use (TOCTOU) race condition may lead to improper functioning of the one-time token mechanism.
- CVE-2025-22234Medium
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 configurations.
- CVE-2025-22223Medium
Spring Security 6.4.0 - 6.4.3 may not correctly locate method security annotations on parameterized types or methods, potentially causing an authorization bypass. You are not affected if you do not use @EnableMethodSecurity, do not have method security annotations on parameterized types or methods, or all method security annotations are attached to target methods.
- CVE-2024-22257High
A vulnerability in Spring Security allows bypassing access control when the application directly calls the AuthenticatedVoter#vote method with a null Authentication parameter. Affected versions are 5.7.x up to 5.7.11, 5.8.x up to 5.8.10, 6.0.x up to 6.0.8, 6.1.x up to 6.1.7, and 6.2.x up to 6.2.2.
- CVE-2023-34035High
Spring Security versions 5.8 prior to 5.8.5, 6.0 prior to 6.0.5, and 6.1 prior to 6.1.2 could be susceptible to authorization rule misconfiguration if the application uses requestMatchers(String) and multiple servlets, one of them being Spring MVC’s DispatcherServlet.
- CVE-2017-4995High
In Pivotal Spring Security 4.2.0.RELEASE through 4.2.2.RELEASE and 5.0.0.M1, with default typing enabled, Jackson contained a deserialization vulnerability that could lead to arbitrary code execution. Spring Security configures Jackson with global default typing enabled, which, combined with an unknown deserialization gadget on the classpath, enables exploitation.
- CVE-2014-0097High
The ActiveDirectoryLdapAuthenticator in Spring Security versions 3.2.0 to 3.2.1 and 3.1.0 to 3.1.5 does not check the password length. If the directory allows anonymous binds, it may incorrectly authenticate a user who supplies an empty password.
- CVE-2016-9879High
An issue in Pivotal Spring Security before 3.2.10, 4.1.4, and 4.2.1 does not consider URL path parameters when processing security constraints. By adding a URL path parameter with an encoded "/" to a request, an attacker may bypass a security constraint, rooted in the lack of clarity regarding path parameter handling in the Servlet Specification.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

