GitHub Advisoryadvisory · Maven

GHSA-xf62-wr5p-5p95 Apache CXF OAuth2 HTTP Response Splitting via WWW-Authenticate Realm Injection

MEDIUM Published 2026-06-12 Modified 2026-08-20 Official page ↗
Aliases
CVE-2026-50630
Ecosystem
Maven
Packages
org.apache.cxf:cxf-rt-rs-security-oauth2
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Weaknesses
CWE-113
Reviewed
2026-08-20

Affected packages

• Maven org.apache.cxf:cxf-rt-rs-security-oauth2: >= 4.2.0, < 4.2.2 → fixed in 4.2.2 • Maven org.apache.cxf:cxf-rt-rs-security-oauth2: < 4.1.7 → fixed in 4.1.7

Description

A CRLF injection vulnerability exists in the OAuth2 AuthorizationUtils class. When constructing the WWW-Authenticate response header, the 'realm' parameter is concatenated without sanitizing Carriage Return (CR) and Line Feed (LF) characters. If an attacker can control the realm value, they can inject arbitrary HTTP headers or split the HTTP response entirely. Users are recommended to upgrade to versions 4.2.2 or 4.1.7, which fixes this issue.

Related

Alias · CVE (1)

  • CVE-2026-50630 A CRLF injection vulnerability exists in the OAuth2 AuthorizationUtils class. vulnerability

Weakness · CWE (1)

  • CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers weakness

References