CVE-2026-50631: Apache CXF OAuth2 TOCTOU Race Condition in Refresh Token Processing
A race condition in AbstractOAuthDataProvider allows concurrent requests using the same Refresh Token to bypass single-use semantics and generate multiple valid Access Tokens, when 'recycleRefreshTokens' is set to false. A leaked refresh token can be replayed concurrently by multiple attackers or threads. Users are recommended to upgrade to versions 4.2.2 or 4.1.7, which fixes this issue.
Published Jun 12, 2026 · Updated Aug 20, 2026
Affected packages
org.apache.cxf:cxf-rt-rs-security-oauth2
- Ecosystem
- Maven
- Affected
- >= 4.2.0, < 4.2.2
- Fixed in
- 4.2.2
- Check
mvn dependency:tree -Dincludes=org.apache.cxf:cxf-rt-rs-security-oauth2
org.apache.cxf:cxf-rt-rs-security-oauth2
- Ecosystem
- Maven
- Affected
- < 4.1.7
- Fixed in
- 4.1.7
- Check
mvn dependency:tree -Dincludes=org.apache.cxf:cxf-rt-rs-security-oauth2
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
A race condition in AbstractOAuthDataProvider allows concurrent requests using the same Refresh Token to bypass single-use semantics and generate multiple valid Access Tokens, when 'recycleRefreshTokens' is set to false. A leaked refresh token can be replayed concurrently by multiple attackers or threads. Users are recommended to upgrade to versions 4.2.2 or 4.1.7, which fixes this issue.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-50623
Apache CXF has Authentication Bypass in OAuth2 TokenIntrospectionService
medium6.5Jun 12, 2026CVE-2026-50627
Apache CXF OAuth2 Missing JWT Audience and Issuer Validation in Access Token Validator
critical9.1Jun 12, 2026CVE-2026-50628
Apache CXF OAuth2 has Inverted IP Binding Check that Defeats Security Control
critical9.8Jun 12, 2026CVE-2026-50629
Apache CXF OAuth2 Log Injection via Unsanitized Client Identifier
high8.2Jun 12, 2026CVE-2026-50630
Apache CXF OAuth2 HTTP Response Splitting via WWW-Authenticate Realm Injection
medium6.5Jun 12, 2026
