Authentication Bypass by Alternate Name Affecting org.apache.cxf:cxf-rt-rs-security-oauth2 package, versions [,4.1.7)[4.2.0,4.2.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.45% (36th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGAPACHECXF-17339181
  • published15 Jun 2026
  • disclosed12 Jun 2026
  • creditGuanping Zhang

Introduced: 12 Jun 2026

CVE-2026-50627  (opens in a new tab)
CWE-289  (opens in a new tab)

How to fix?

Upgrade org.apache.cxf:cxf-rt-rs-security-oauth2 to version 4.1.7, 4.2.2 or higher.

Overview

org.apache.cxf:cxf-rt-rs-security-oauth2 is a services framework.

Affected versions of this package are vulnerable to Authentication Bypass by Alternate Name via the JwtAccessTokenValidator class. An attacker can gain unauthorized access to protected resources by replaying a JWT access token intended for one resource server against a different resource server.

CVSS Base Scores

version 4.0
version 3.1