GHSA-x2wq-9x2f-fhj7

Suggest an improvement
Source
https://github.com/advisories/GHSA-x2wq-9x2f-fhj7
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-x2wq-9x2f-fhj7/GHSA-x2wq-9x2f-fhj7.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-x2wq-9x2f-fhj7
Aliases
  • CVE-2026-22751
Downstream
Related
Published
2026-04-21T21:31:23Z
Modified
2026-05-05T16:12:59.111622Z
Severity
  • 4.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
Summary
Spring Security Core has a TOCTOU race condition when One-Time Token login with JdbcOneTimeTokenService is configured
Details

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.

Database specific
{
    "nvd_published_at": "2026-04-21T19:16:16Z",
    "cwe_ids": [
        "CWE-367"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-04-25T23:38:48Z",
    "severity": "MODERATE"
}
References

Affected packages

Maven
org.springframework.security:spring-security-core

Package

Name
org.springframework.security:spring-security-core
View open source insights on deps.dev
Purl
pkg:maven/org.springframework.security/spring-security-core

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.5.0
Fixed
6.5.10

Affected versions

6.*
6.5.0
6.5.1
6.5.2
6.5.3
6.5.4
6.5.5
6.5.6
6.5.7
6.5.8
6.5.9

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-x2wq-9x2f-fhj7/GHSA-x2wq-9x2f-fhj7.json"
org.springframework.security:spring-security-core

Package

Name
org.springframework.security:spring-security-core
View open source insights on deps.dev
Purl
pkg:maven/org.springframework.security/spring-security-core

Affected ranges

Type
ECOSYSTEM
Events
Introduced
7.0.3
Fixed
7.0.5

Affected versions

7.*
7.0.3
7.0.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-x2wq-9x2f-fhj7/GHSA-x2wq-9x2f-fhj7.json"
org.springframework.security:spring-security-core

Package

Name
org.springframework.security:spring-security-core
View open source insights on deps.dev
Purl
pkg:maven/org.springframework.security/spring-security-core

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.4.0
Last affected
6.4.13

Affected versions

6.*
6.4.0
6.4.1
6.4.2
6.4.3
6.4.4
6.4.5
6.4.6
6.4.7
6.4.8
6.4.9
6.4.10
6.4.11
6.4.12
6.4.13

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-x2wq-9x2f-fhj7/GHSA-x2wq-9x2f-fhj7.json"