Intel

AIKIDO-2026-701147

httpx2 is vulnerable to HTTP Header Injection

HTTP Header InjectionGHSA-h4x7-gw46-3wm6 Published Yesterday

53

Medium Risk

This Affects:

PYTHONhttpx2
0.0.1 - 2.10.0
Fixed in 2.11.0
Are you affected? Scan for Free

TL;DR

When serializing multipart form data, user-controlled content_type values and custom part headers passed through the file upload API are interpolated between CRLF delimiters without validation. Carriage return and line feed characters in that metadata inject additional part headers into the multipart body. The forged lines may be interpreted as legitimate headers, altering part semantics or bypassing checks. The fix rejects forbidden control characters and raises an error before serialization.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you pass user-controlled values into the content_type or custom headers of multipart file uploads.

Background info

httpx2 is vulnerable to HTTP Header Injection in versions 0.0.1 - 2.10.0.

How to fix this

Upgrade the httpx2 library to the patch version.