CVE-2026-50627: Cxf rt rs security oauth2 Apache CXF OAuth2 Missing JWT Vulnerability

CRITICAL
Advisory Identifier: GHSA-9mrv-8pvf-hf4m
CVSS 9.1
CWE-303 CWE-289
Published
Advisory Summary

CVE-2026-50627 is a CRITICAL (CVSS 9.1) apache cxf oauth2 missing jwt vulnerability (CWE-303: Incorrect Implementation of Authentication Algorithm) affecting Cxf rt rs security oauth2 libraries in the Maven ecosystem. The issue involves apache cxf oauth2 missing jwt audience and issuer validation in access token validator. Remediation is available by upgrading affected packages to version 4.2.2, 4.1.7.

CVE-2026-50627 at a Glance

CVE Identifier CVE-2026-50627
GHSA Identifier GHSA-9mrv-8pvf-hf4m
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-303: Incorrect Implementation of Authentication Algorithm
Affected Product Cxf rt rs security oauth2
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 9.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-50627

To remediate this vulnerability, upgrade all affected Cxf rt rs security oauth2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.cxf:cxf-rt-rs-security-oauth2 fixed: 4.2.2
<dependency>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-rt-rs-security-oauth2</artifactId>
    <version>4.2.2</version>
</dependency>
org.apache.cxf:cxf-rt-rs-security-oauth2 fixed: 4.1.7
<dependency>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-rt-rs-security-oauth2</artifactId>
    <version>4.1.7</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.cxf

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-50627, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.cxf

Analyze the terminal output to locate any version of Cxf rt rs security oauth2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.2.2), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.cxf command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-303: Incorrect Implementation of Authentication Algorithm, where the requirements for the product dictate the use of an established authentication algorithm, but the implementation of the algorithm is incorrect. In Cxf rt rs security oauth2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

The JwtAccessTokenValidator class in Apache CXF fails to validate the 'aud' (Audience) claims of incoming JWT access tokens. This allows a JWT issued for one Resource Server to be successfully replayed against a completely different Resource Server, leading to Token Confusion/Routing attacks. Users are recommended to upgrade to versions 4.2.2 or 4.1.7, which fixes this issue.

CVE-2026-50627 Affected Cxf rt rs security oauth2 Versions

2 component(s)
Fixed Versions:
4.2.24.1.7
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.cxf:cxf-rt-rs-security-oauth2
Maven
≥ 4.2.0
< 4.2.2
4.2.2
org.apache.cxf:cxf-rt-rs-security-oauth2
Maven
< 4.1.7
4.1.7

References

Frequently Asked Questions

What is CVE-2026-50627?
CVE-2026-50627 is a security vulnerability in Cxf rt rs security oauth2 involving Apache CXF OAuth2 Missing JWT Audience and Issuer Validation in Access Token Validator under CWE-303: Incorrect Implementation of Authentication Algorithm.
Which Cxf rt rs security oauth2 versions are affected?
Affected versions include releases prior to 4.2.2, 4.1.7 across affected packages: org.apache.cxf:cxf-rt-rs-security-oauth2.
What version fixes CVE-2026-50627?
Upgrading to 4.2.2, 4.1.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cxf-rt-rs-security-oauth2 affected?
Yes, org.apache.cxf:cxf-rt-rs-security-oauth2 is affected in releases prior to 4.2.2, 4.1.7. Upgrade your dependency to 4.2.2, 4.1.7 or later.
What is the CVSS score of CVE-2026-50627?
CVE-2026-50627 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2026-50627?
CVE-2026-50627 is classified under CWE-303: Incorrect Implementation of Authentication Algorithm (The requirements for the product dictate the use of an established authentication algorithm, but the implementation of the algorithm is incorrect.).
How can I check Maven dependencies for CVE-2026-50627?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.cxf'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-9mrv-8pvf-hf4m",
  "modified" : "2026-08-20T18:32:05Z",
  "published" : "2026-06-12T12:31:33Z",
  "aliases" : [ "CVE-2026-50627" ],
  "summary" : "Apache CXF OAuth2 Missing JWT Audience and Issuer Validation in Access Token Validator",
  "details" : "The JwtAccessTokenValidator class in Apache CXF fails to validate the 'aud' (Audience) claims of incoming JWT access tokens. This allows a JWT issued for one Resource Server to be successfully replayed against a completely different Resource Server, leading to Token Confusion/Routing attacks. Users are recommended to upgrade to versions 4.2.2 or 4.1.7, which fixes this issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.cxf:cxf-rt-rs-security-oauth2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.2.0"
      }, {
        "fixed" : "4.2.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.cxf:cxf-rt-rs-security-oauth2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.1.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-50627"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:37390"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2026-50627"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2488298"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/cxf"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/0jfzz9q992957b99tw7hodcqjfyxwb1m"
  }, {
    "type" : "WEB",
    "url" : "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-50627.json"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2026/06/11/4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-289", "CWE-303" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-20T18:32:04Z",
    "nvd_published_at" : "2026-06-12T10:16:22Z"
  }
}