LOW

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)

ArtifactAffected versionsFixed 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

1affected artifacts
79affected versions
7,520dependent artifacts (est.)
495,756dependent versions

74% of the dependent artifacts (5,606) still pull an affected version in their latest release.

DepthDependent 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

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.