Spring Security Core has a TOCTOU race condition when One-Time Token login with JdbcOneTimeTokenService is configured
Moderate severity
GitHub Reviewed
Published
Apr 21, 2026
to the GitHub Advisory Database
•
Updated Apr 25, 2026
Package
Affected versions
>= 6.5.0, < 6.5.10
>= 7.0.3, < 7.0.5
>= 6.4.0, <= 6.4.13
Patched versions
6.5.10
7.0.5
Description
Published by the National Vulnerability Database
Apr 21, 2026
Published to the GitHub Advisory Database
Apr 21, 2026
Reviewed
Apr 25, 2026
Last updated
Apr 25, 2026
Vulnerability 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.
References