CVE-2026-59329
Spring Security Reactive Authentication Timing Attack Enables Username Enumeration
Description
Spring 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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.security » spring-security-core | >= 5.7.0, <= 5.7.26>= 5.8.0, <= 5.8.28>= 6.4.0, <= 6.4.19>= 6.5.0, <= 6.5.12>= 7.0.0, < 7.0.9>= 7.1.0, < 7.1.3 | 7.0.9, 7.1.3 |
Blast radius
74% of the dependent artifacts (5,606) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 54,181 |
| 2 hops | 223,274 |
| 3 hops | 143,215 |
| 4 hops | 43,667 |
| 5 hops | 25,941 |
| 6 hops | 5,478 |
Most used dependents
- org.springframework.boot » spring-boot-starter-security3,609 usages
- org.springframework.security » spring-security-web2,136 usages
- org.springframework.security » spring-security-config2,066 usages
- org.springframework.security » spring-security-test1,310 usages
- org.jenkins-ci.main » jenkins-core1,191 usages
- com.atlassian.confluence » confluence724 usages
- com.vaadin » vaadin-maven-plugin600 usages
- com.atlassian.jira » jira-core554 usages
- org.springframework.security » spring-security-cas550 usages
- org.springframework.security » spring-security-oauth2-jose508 usages
- org.apereo.cas » cas-server-core-util-api492 usages
- org.springframework.security » spring-security-oauth2-client481 usages
- org.springframework.boot » spring-boot-security479 usages
- org.springframework.boot » spring-boot-starter-oauth2-resource-server465 usages
- org.springframework.security » spring-security-ldap457 usages
Computed from the dependency graph of build 20261125.0317 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
