All reports
Medium

Apache CXF OAuth2 HTTP Response Splitting via WWW-Authenticate Realm Injection

Affected versions

Affected versions
< 4.1.7
Fixed version
4.1.7
Affected versions
>= 4.2.0, < 4.2.2
Fixed version
4.2.2

Exploitation

CVE-2026-50630

Probability of exploitation in the next 30 days: 0.38%

FIRST EPSS · 2026-11-21

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.

Links