---
id: CVE-2026-50630
title: A CRLF injection vulnerability exists in the OAuth2 AuthorizationUtils class
summary: >-
  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)
  charac…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'
cwe:
  - CWE-113
vendor: apache
product: cxf
affected:
  - cxf < 4.1.7
  - 'cxf >= 4.2.0, < 4.2.2'
patched:
  - cxf 4.2.2
published: '2026-06-12'
updated: '2026-08-07'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-50630'
references:
  - url: 'https://lists.apache.org/thread/bt7vnjzzkpd6vdhkxv103poor1jy5trm'
    label: security@apache.org
  - url: 'http://www.openwall.com/lists/oss-security/2026/06/11/7'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.00637
epssPercentile: 0.4832
ingestedAt: '2026-08-07T14:14:17.447Z'
---

## Overview

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

## Affected

- `cxf < 4.1.7`
- `cxf >= 4.2.0, < 4.2.2`

## Remediation

Upgrade past the affected range:

- `cxf 4.2.2`
