Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.springframework.security/spring-security-core
  4. ›
  5. CVE-2026-22751

CVE-2026-22751: Spring Security Core has a TOCTOU race condition when One-Time Token login with JdbcOneTimeTokenService is configured

April 21, 2026 (updated July 17, 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

  • github.com/advisories/GHSA-x2wq-9x2f-fhj7
  • github.com/spring-projects/spring-security/commit/163772775036c4146815a5266874278c6f45f047
  • github.com/spring-projects/spring-security/commit/4187af38b251fc97fdf9949f7869618111e6e261
  • jinyeong.seol.pro/blogs/cve-2026-22751/en
  • nvd.nist.gov/vuln/detail/CVE-2026-22751
  • spring.io/security/cve-2026-22751

Code Behaviors & Features

Detect and mitigate CVE-2026-22751 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 6.4.0 up to 6.4.13, all versions starting from 6.5.0 before 6.5.10, all versions starting from 7.0.3 before 7.0.5

Fixed versions

  • 6.5.10
  • 7.0.5

Solution

Upgrade to versions 6.5.10, 7.0.5 or above.

Impact 4.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition

Source file

maven/org.springframework.security/spring-security-core/CVE-2026-22751.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:10 +0000.