CVE-2026-84379
MEDIUM 5.3CVSS 3.1HTTPX2: Multipart part header injection via unvalidated file Content-Type and custom headers
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.
- Published
- 2 Sep 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-93
- Also known as
- GHSA-h4x7-gw46-3wm6PYSEC-2026-3848
- Sources
- NVDJSONOSV GHSA-h4x7-gw46-3wm6JSONOSV PYSEC-2026-3848JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | httpx2 | < 2.11.0 | 2.11.0 |
References
- https://github.com/pydantic/httpx2/commit/de96d810ee4e309d118982fe7084a46a2bcd600d · WEB
- https://github.com/pydantic/httpx2/pull/1142 · WEB
- https://github.com/pydantic/httpx2/releases/tag/v2.11.0 · WEB
- https://github.com/pydantic/httpx2/security/advisories/GHSA-h4x7-gw46-3wm6 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-84379 · ADVISORY
- https://github.com/pydantic/httpx2 · PACKAGE
- https://pypi.org/project/httpx2 · PACKAGE
- https://github.com/advisories/GHSA-h4x7-gw46-3wm6 · ADVISORY
History
- 25 Nov 2026 21:05 UTC · NVD: first stored (published 2 Sep 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Sep 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 Sep 2026)