CVE-2026-50627 Apache CXF: OAuth2: Missing JWT Audience and Issuer Validation in Access Token Validator

Critical 9.1 Published Updated

Attackers can replay JWTs across different resource servers due to missing audience validation, bypassing authentication controls in Apache CXF.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-50627?

CVE-2026-50627 is a critical authentication bypass vulnerability in Apache Cxf, published on 12 Jun 2026. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

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

Weakness: CWE-303, CWE-289

Which versions are affected by CVE-2026-50627?

4 open source packages ship an affected version, including org.apache.cxf:cxf-rt-rs-security-oauth2. It affects 1 product.

PackageAffectedFixed in
org.apache.cxf:cxf-rt-rs-security-oauth2 MavenAll versions4.1.7
org.apache.cxf:cxf-rt-rs-security-oauth2 MavenAll versions4.1.7
org.apache.cxf:cxf-rt-rs-security-oauth2 MavenFrom 4.2.04.2.2
org.apache.cxf:cxf-rt-rs-security-oauth2 MavenFrom 4.2.04.2.2

Products include Apache Cxf.

How do I fix CVE-2026-50627?

Upgrade org.apache.cxf:cxf-rt-rs-security-oauth2 to a fixed version for your release line: 4.1.7 or 4.2.2.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2026-50627 being exploited?

There is no known exploitation of CVE-2026-50627 in the wild and no public exploit code.

All Apache Cxf vulnerabilities

Sources

Also known as GHSA-9mrv-8pvf-hf4m.

Is CVE-2026-50627 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free