{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:apache:cxf:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "4.1.7"
              },
              {
                "introduced": "4.2.0"
              },
              {
                "fixed": "4.2.2"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "82e9f60f994a7fad2d89f3c94e9090a4a8990c70"
            },
            {
              "introduced": "04ccbfd709eef8f4af53d6237514fbe9db7ea81f"
            },
            {
              "fixed": "d2b2776cd44a8d2f391194d90f50ce7b3d61a1f6"
            }
          ],
          "repo": "https://github.com/apache/cxf",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "apache",
    "cwe_ids": [
      "CWE-367"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50631.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "introduced": "4.2.0"
          },
          {
            "fixed": "4.2.2"
          },
          {
            "fixed": "4.1.7"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "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.",
  "id": "CVE-2026-50631",
  "modified": "2026-07-15T01:49:16.588513783Z",
  "published": "2026-06-12T08:59:40.200Z",
  "references": [
    {
      "type": "WEB",
      "url": "http://www.openwall.com/lists/oss-security/2026/06/11/8"
    },
    {
      "type": "WEB",
      "url": "https://repo.maven.apache.org/maven2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50631.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://lists.apache.org/thread/s83t3x4r626o9h8rt0ryr1w7w53l1vv8"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-50631"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Apache CXF: OAuth2: TOCTOU Race Condition in Refresh Token Processing"
}