CRLF Injection Affecting httpx2 package, versions [,2.11.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.32% (23rd 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 Learn

Learn about CRLF Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-HTTPX2-20361638
  • published1 Oct 2026
  • disclosed8 Sept 2026
  • creditmaxisbey

Introduced: 8 Sep 2026

NewCVE-2026-84379  (opens in a new tab)
CWE-93  (opens in a new tab)

How to fix?

Upgrade httpx2 to version 2.11.0 or higher.

Overview

httpx2 is a The next generation HTTP client.

Affected versions of this package are vulnerable to CRLF Injection in the FileField.render_headers() method, which writes the per file content_type value and any custom header names and values into the multipart part header block without rejecting CR or LF characters. An attacker can inject additional part headers into the request or terminate the part header block early, altering how the receiving server interprets the part and bypassing checks it makes on part headers, by placing a CRLF sequence in upload metadata that the application passes through to the files= tuple. This requires the application to take the per file content_type or headers arguments from attacker influenced data rather than setting them itself, and the effect lands on whatever the upload is sent to, so the consequence depends on that server's own multipart parsing and validation.

CVSS Base Scores

version 4.0
version 3.1