CVE-2026-1502

HTTP client proxy tunnel headers not validated for CR/LF

Published Apr 10, 2026 CVSS 4.0 · 5.7 Medium EPSS < 1% KEV · Not listed
Description
CR/LF bytes were not rejected by HTTP client proxy tunnel headers or host.

Analysis

AI-generated

Technical impact

The vulnerability arises because the CPython HTTP client does not reject CR or LF characters in proxy tunnel headers or host values. This omission allows an attacker to inject arbitrary HTTP headers or to split an HTTP response, leading to response‑splitting attacks. Consequently, the application could unknowingly serve manipulated content, potentially enabling session hijacking, content spoofing, or other attacks linked to header injection weaknesses.

Affected Systems

The issue affects the built‑in HTTP client of CPython. Any CPython installation that uses the default proxy handling code and has not incorporated the patch referenced by the commit 05ed7ce7e… is vulnerable.

Risk and Exploitability

The CVSS score of 5.7 indicates moderate severity, while the EPSS score of less than 1% suggests a low likelihood of exploitation in the wild. The vulnerability is not present in the CISA KEV catalog. Based on the description, it is inferred that an attacker would need to direct a crafted HTTP request containing CR/LF characters through a proxy tunnel to an application using CPython’s HTTP client. Once the header is accepted, the injected line breaks can be used to manipulate the response and potentially achieve further exploitation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade CPython to a version that incorporates the patch referenced in commit 05ed7ce7ae9e17c23a04085b2539fe6d6d3cef69.
  • If an upgrade cannot be performed immediately, configure network devices or application settings to reject or sanitize proxy tunnel headers that contain CR or LF characters before they reach the CPython client.
  • Continuously monitor incoming HTTP traffic for unexpected CR or LF sequences in proxy headers and enable logging or alerting for abnormal patterns.

Generated by OpenCVE AI on April 14, 2026 at 01:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4827-1 python3.11 security update
Ubuntu USN Ubuntu USN USN-8509-1 Python vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-93
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Python
Python cpython
Vendors & Products Python
Python cpython
Type Values Removed Values Added
Description CR/LF bytes were not rejected by HTTP client proxy tunnel headers or host.
Title HTTP client proxy tunnel headers not validated for CR/LF
References
Metrics cvssV4_0

{'score': 5.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-93

    Improper Neutralization of CRLF Sequences ('CRLF Injection')

Sources

Status
PUBLISHED
Assigner
PSF
Published
Updated
Nov 13, 2026, 2:40 PM
Reserved
Jan 27, 2026, 7:10 PM
Status
Awaiting Analysis
Published
Apr 10, 2026, 6:16 PM
Modified
Nov 10, 2026, 1:18 PM
Severity
Moderate
Public date
Apr 10, 2026, 5:54 PM