CVE-2026-50631: Apache CXF OAuth2 TOCTOU Race Condition in Refresh Token Processing
(updated )
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
Code Behaviors & Features
Detect and mitigate CVE-2026-50631 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →