CVE-2026-50631

published 12 Jun 2026 · updated 5 Nov 2026

Apache CXF: OAuth2: TOCTOU Race Condition in Refresh Token Processing

7.4HighCVSS 7.4EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in CXF 3.6.12, CXF 4.1.7, CXF 4.2.2 and 3 more.

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 or 3.6.12, which fixes this issue.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
ApacheCXF<3.6.12, >=4.0.0 <4.1.7, >=4.2.0 <4.2.23.6.12, 4.1.7, 4.2.2
Apache Software Foundation<3.6.12, >=4.0.0 <4.1.7, >=4.2.0 <4.2.23.6.12, 4.1.7, 4.2.2

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Apache, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-50631 severity on Zeptric[![CVE-2026-50631](https://zeptric.io/badge/cve/CVE-2026-50631.svg)](https://zeptric.io/cve/CVE-2026-50631)