Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.cxf/cxf-rt-rs-security-oauth2
  4. ›
  5. CVE-2026-50631

CVE-2026-50631: Apache CXF OAuth2 TOCTOU Race Condition in Refresh Token Processing

June 12, 2026 (updated August 20, 2026)

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

  • github.com/advisories/GHSA-83r6-96m8-r52p
  • lists.apache.org/thread/s83t3x4r626o9h8rt0ryr1w7w53l1vv8
  • nvd.nist.gov/vuln/detail/CVE-2026-50631

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 →

Affected versions

All versions before 4.1.7, all versions starting from 4.2.0 before 4.2.2

Fixed versions

  • 4.1.7
  • 4.2.2

Solution

Upgrade to versions 4.1.7, 4.2.2 or above.

Impact 7.4 HIGH

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

Learn more about CVSS

Weakness

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

Source file

maven/org.apache.cxf/cxf-rt-rs-security-oauth2/CVE-2026-50631.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 22 Sep 2026 12:20:09 +0000.