Skip to main content
← All vulnerabilities
CVE-2026-84380PYSEC-2026-3849GHSA-PF96-P4FJ-6566

HTTPX2: Conflicting Content-Length and Transfer-Encoding headers can be auto-generated

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.11.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

HTTPX2 is a next generation HTTP client for Python. Prior to 2.11.0, Request._prepare() in src/httpx2/httpx2/_models.py can add a body-derived Content-Length header to a request that already contains a caller-supplied Transfer-Encoding header because its setdefault() processing checks each default header independently rather than treating the two framing headers as mutually exclusive. Fixed-size byte, JSON, form, and known-length multipart bodies can therefore be serialized over HTTP/1.1 with both headers, allowing request smuggling or connection desynchronization when downstream intermediaries disagree about which framing header takes precedence. This issue is fixed in version 2.11.0.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • pydantic httpx2

    fixed in 2.11.0

  • httpx2PyPI

    fixed in 2.11.0

References 4

GitHub · pydantic/httpx2