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

- Severity: Medium 5.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 21% of CVEs (2026-12-01)
- Published: 2026-09-02T17:58:55.520Z
- Modified: 2026-09-10T12:25:28.219Z
- Also known as: GHSA-pf96-p4fj-6566, PYSEC-2026-3849
- Weaknesses: CWE-444
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- pydantic httpx2: < 2.11.0
- httpx2 (PyPI): before 2.11.0

## Every score

- GitHub_M: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- PyPA Advisory Database: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`

## References

- <https://github.com/pydantic/httpx2/security/advisories/GHSA-pf96-p4fj-6566> (web)
- <https://github.com/pydantic/httpx2/pull/1137> (web)
- <https://github.com/pydantic/httpx2/commit/829b93a2393212996f613e635261f777d9ec6eab> (web)
- <https://github.com/pydantic/httpx2/releases/tag/v2.11.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-84380> (advisory)
- <https://github.com/pydantic/httpx2> (package)
- <https://pypi.org/project/httpx2> (package)
- <https://github.com/advisories/GHSA-pf96-p4fj-6566> (advisory)

## Sources

- CVE List: [CVE-2026-84380](https://www.cve.org/CVERecord?id=CVE-2026-84380), CVE Terms of Use, modified 2026-09-02
- GitHub Advisory Database: [GHSA-pf96-p4fj-6566](https://github.com/advisories/GHSA-pf96-p4fj-6566), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-84380](https://nvd.nist.gov/vuln/detail/CVE-2026-84380), Public domain, modified 2026-09-09
- PyPA Advisory Database: [PYSEC-2026-3849](https://osv.dev/vulnerability/PYSEC-2026-3849), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-84380 · Whole record: https://cve.day/CVE-2026-84380.json · Rebuilt by cve.day 2026-11-25T22:59:36.140Z
