Spring Security vulnerabilities

35 vulnerabilities

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

RoutineCVE-2026-59400spring · spring security +1 moreSpring Security ClientRegistration discloses OAuth2 Client SecretClientRegistration , Spring Security's representation of an OAuth2/OpenID Connect client registration, includes the confidential client secret in the plaintext output of its toString() method. Because toString() is invoked implicitly by common application and framework behaviors (parameterized logging, string concatenation, exception message construction, and similar), any code path that produces such output for a ClientRegistration instance may inadvertently disclose the client secret to a destination not intended to hold client credential material.CVSS6.5MediumEPSS0.49%PrioritiseCVE-2026-59333spring · spring securitySpring Security IP Address CIDR Matching Ignores Address FamilySpring Security's IP address matching support, including IpAddressMatcher , IpAddressServerWebExchangeMatcher , and the InetAddressMatchers factory introduced in 7.1, matches a remote address against a configured IP address or CIDR range. When comparing addresses, the matcher compared only the leading bytes of the remote and configured addresses without first confirming that the two addresses belong to the same address family. Because IPv4 and IPv6 addresses have different byte lengths, a remote address in one family whose leading bytes happened to coincide with a configured CIDR range in the other family could be reported as a match even though the families differ. Preconditions : The application uses IpAddressMatcher , IpAddressServerWebExchangeMatcher , or InetAddressMatchers (for example via hasIpAddress() , an internal/external network check, or an include/exclude address list) to restrict access based on the remote IP address, and the application's network stack can present a remote address in an address family other than the one used in the matcher's configured address or CIDR range (for example through IPv4-mapped IPv6 addresses, a dual-stack listener, or a proxy that translates between families). An attacker connecting from an address family the application administrator did not intend to permit may be able to satisfy an IP-based access-control rule and bypass the restriction.CVSS7.4HighEPSS0.32%PrioritiseCVE-2026-59331spring · spring securitySpring Security RSocket Basic Authentication Decoder Enables Denial of Service via Unbounded AllocationSpring 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 from the incoming metadata and used it directly to size a memory allocation, without validating that the value was a reasonable, non-negative size relative to the data actually available. A single crafted authentication frame could therefore cause the server to attempt an extremely large allocation. Preconditions : The application uses Spring Security's RSocket support with an AuthenticationPayloadInterceptor that has not had its authentication converter overridden, leaving BasicAuthenticationPayloadExchangeConverter in effect as its default — as is the case, for example, with the deprecated RSocketSecurity#basicAuthentication configuration. The RSocket endpoint is reachable by the attacker. An unauthenticated attacker who can open a connection to the RSocket endpoint can exhaust available memory on the server, resulting in a denial of service.CVSS7.5HighEPSS0.54%PrioritiseCVE-2026-59330spring · spring securityWebAuthn Signature Counter Check Fails to Detect Cloned AuthenticatorsSpring Security's WebAuthn relying-party support, Webauthn4JRelyingPartyOperations , does not effectively enforce its authenticator signature-counter check. WebAuthn authenticators are expected to increment a per-credential signature counter on every use, and a relying party is expected to reject an assertion whose counter fails to increase, since a counter that repeats or regresses is a strong signal that the authenticator has been cloned. An internal defect in how Webauthn4JRelyingPartyOperations supplies the previously stored counter to the underlying verification library means this check does not actually detect a non-incrementing counter, so this defense-in-depth control against cloned authenticators is not effective. Preconditions : The application uses Webauthn4JRelyingPartyOperations (Spring Security's default WebAuthn RelyingPartyOperations implementation) to authenticate users. An attacker has obtained a cloned or otherwise duplicated WebAuthn authenticator capable of producing valid assertions for a credential already registered to a victim. An attacker who already possesses such a cloned authenticator can continue to authenticate as the victim without Spring Security detecting or rejecting the clone.CVSS7.4HighEPSS0.30%RoutineCVE-2026-59329spring · spring security +1 moreSpring Security Reactive Authentication Timing Attack Enables Username EnumerationSpring Security's reactive authentication support, AbstractUserDetailsReactiveAuthenticationManager and UserDetailsRepositoryReactiveAuthenticationManager , do not invoke the configured PasswordEncoder when a submitted username cannot be found, unlike its blocking counterpart DaoAuthenticationProvider . Because password encoding is deliberately CPU-intensive, the response time for a nonexistent username is measurably shorter than for a valid username with an incorrect password. Preconditions : The application authenticates using AbstractUserDetailsReactiveAuthenticationManager or a subclass, such as UserDetailsRepositoryReactiveAuthenticationManager (used by reactive .formLogin()). The authentication endpoint is reachable by the attacker. An unauthenticated attacker who can measure authentication response times can use this difference to enumerate valid usernames.CVSS3.7LowEPSS0.47%RoutineCVE-2026-59273spring · spring security +1 moreSpring Security ELRequestMatcher allows Remote Code Execution via unrestricted SpEL evaluationELRequestMatcher evaluates a provided SpEL expression against an unrestricted evaluation context that grants full reflection, type references, and arbitrary method invocation, rather than a context limited to its documented request-matching operations. Because Spring Framework's data binding auto-discovers a property editor for this type by naming convention, an application that binds untrusted input to a bean property of this matcher type can have that input evaluated as a SpEL expression under this permissive context, if invoked by the application. This can allow an attacker who controls such bound input to achieve remote code execution in the application's process.CVSS6.6MediumEPSS1.34%RoutineCVE-2026-59277spring · spring security +1 moreSpring Security InetAddressMatchers Incomplete Internal Network ClassificationSpring 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.1.0CVSS5.3MediumEPSS0.21%RoutineCVE-2026-59276spring · spring security +2 moreTiming Attack via Non-Constant-Time Comparison of Sensitive ValuesSeveral 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. 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 Spring Security 5.8.0 - 5.8.27 Spring Security 5.7.0 - 5.7.25CVSS5.9MediumEPSS0.26%PrioritiseCVE-2026-59270spring · spring security +4 moreSpring Security embedded UnboundID LDAP server exposes well-known administrative bind DN on all network interfacesSpring 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 - 6.5.11 Spring Security 6.4.0 - 6.4.18 Spring Security 5.8.0 - 5.8.27 Spring Security 5.7.0 - 5.7.25CVSS9.4CriticalEPSS0.29%RoutineCVE-2026-47877spring · spring security +1 moreSpring 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.6CVSS8.2HighEPSS0.17%RoutineCVE-2026-47842spring · spring security +2 moreDeterministic AES/CBC Encryption in Spring Security AesBytesEncryptor Allows Ciphertext CorrelationApplications 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.0.6 Spring Security 6.5.0 - 6.5.11 Spring Security 6.4.0 - 6.4.18 Spring Security 5.8.0 - 5.8.27 Spring Security 5.7.0 - 5.7.25CVSS6.5MediumEPSS0.10%PrioritiseCVE-2026-47841spring · spring security +1 moreWebAuthn User Verification Bypass via Session SerializationAn 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.18CVSS7.4HighEPSS0.30%PrioritiseCVE-2026-41707spring · spring security +2 moreSpring Security DPoPProofJwtDecoderFactory vulnerable to DPoP Proof ReplayAuthentication 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 attackers to evict legitimate entries by flooding the server with dummy requests, then replay intercepted valid DPoP proofs. This issue affects Spring Security: 7.1.0, from 7.0.0 through 7.0.6, and from 6.5.0 through 6.5.11.CVSS7.4HighEPSS0.26%RoutineCVE-2026-47838spring · spring security +27 moreUnauthorized User Impersonation when Using X.509 Client CertificatesSubjectDnX509PrincipalExtractor 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. Affected versions: Spring Security 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.CVSS8.1HighEPSS0.13%RoutineCVE-2026-41706spring · spring security +14 moreOpen Redirect When Using CookieRequestCacheSpring 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.CVSS6.1MediumEPSS0.21%RoutineCVE-2026-41694spring · spring security +2 moreSAML Payloads Decrypted Without Valid SignatureSince 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. 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.CVSS5.3MediumEPSS0.15%RoutineCVE-2026-41008spring · spring authorization server +4 moreSpring Security Authorization Server Open Redirect via request_uriSpring 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, which can lead to an Open Redirect vulnerability. Affected versions: Spring Security 7.0.0 through 7.0.5. Spring Authorization Server 1.5.0 through 1.5.7.CVSS6.1MediumEPSS0.18%RoutineCVE-2026-41003spring · spring security +2 moreUnencoded HTML Outputs in Spring Security May Allow Cross-Site ScriptingAn 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 through 6.4.16; 6.5.0 through 6.5.10; 7.0.0 through 7.0.5.CVSS7.6HighEPSS0.20%RoutineCVE-2026-40993spring · spring security +2 moreUnfiltered Java Native Deserialization of SAML 2.0 Asserting Party Credentials BLOB Database EntryAn 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 credentials (verification_credentials and encryption_credentials, respectively). Affected versions: Spring Security 7.0.0 through 7.0.5.CVSS7.3HighEPSS0.20%PrioritiseCVE-2026-40988spring · spring security +2 moreUnbounded DEFLATE Inflation in SAML 2.0 Service ProviderAn 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: 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.CVSS7.5HighEPSS0.33%