p PatchFirst

CVE-2026-84379

CVE-2026-84379 · HTTPX2: Multipart part header injection via unvalidated file Content-Type and custom headers

This page contains facts from public vulnerability sources. Check the original advisory before updating.

HTTPX2 is a next generation HTTP client for Python. Prior to 2.11.0, FileField.render_headers() in src/httpx2/httpx2/_multipart.py directly interpolates attacker-controlled content_type values and custom headers from the files= three-element (filename, content, content_type) tuple and the files= four-element (filename, content, content_type, headers) tuple into multipart/form-data part headers without validating header names or values. CR or LF characters can terminate a part header, inject additional part headers, or end the part header block early, allowing a downstream multipart parser to treat attacker-supplied lines as genuine headers and potentially alter part semantics or bypass header-based checks. This issue is fixed in version 2.11.0.

CVSS 5.3 · Medium · EPSS 0.3% · Fix available

Published
Updated

Stack: system · python

Affected products and versions

  • httpx2

    Versions
    • < 2.11.0: Affected

    No fix published

  • python-httpx2 Debian:14

    Versions
    • 2.4.0-1
    • 2.5.0-1
    Affected ranges
    • ECOSYSTEM: < 2.12.0-1

    Update to 2.12.0-1

  • httpx2 PyPI

    Versions
    • 0.0.0
    • 2.0.0
    • 2.0.0b1
    • 2.1.0
    • 2.10.0
    • 2.2.0
    • 2.3.0
    • 2.4.0
    • 2.5.0
    • 2.6.0
    • 2.7.0
    • 2.8.0
    • 2.9.0
    • 2.9.1
    Affected ranges
    • ECOSYSTEM: < 2.11.0

    Update to 2.11.0

  • python-httpx2 Ubuntu:26.10

    Versions
    • 2.5.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →