HTTPX2: 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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-84379
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 18:03 UTC · Revision 1
Source evidence
HTTPX2: Multipart part header injection via unvalidated file Content-Type and custom headers
core-osv · Original sourcePublished 2 Sept 2026, 17:57 UTC
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.
osv:CVE-2026-84379
Complete source record
{
"id": "1b47cf9864cc32c6c2ce04badcdd65cd32a7e4fa3e93c32f46037f7de75557dd",
"url": "https://osv.dev/vulnerability/CVE-2026-84379",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "HTTPX2: Multipart part header injection via unvalidated file Content-Type and custom headers",
"summary": "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.",
"evidence": "osv:CVE-2026-84379",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-84379",
"aliases": [
"CVE-2026-84379",
"GHSA-h4x7-gw46-3wm6",
"PYSEC-2026-3848"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/pydantic/httpx2",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "2b13fa92e4181d5e0f56772205360b2aa12f109d"
},
{
"fixed": "de96d810ee4e309d118982fe7084a46a2bcd600d"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "2.11.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "de96d810ee4e309d118982fe7084a46a2bcd600d"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "2b13fa92e4181d5e0f56772205360b2aa12f109d"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v2.11.0"
}
]
}
}
],
"versions": [
"v2.10.0",
"v2.9.1",
"v2.9.0",
"v2.8.0",
"v2.7.0",
"v2.6.0",
"v2.5.0",
"v2.4.0",
"v2.3.0",
"v2.2.0",
"v2.1.0",
"v2.0.0",
"v2.0.0b1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-84379.json"
}
}
],
"modified": "2026-10-28T02:30:30.937059726Z",
"provider": "osv",
"references": [
"https://github.com/pydantic/httpx2/releases/tag/v2.11.0",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/84xxx/CVE-2026-84379.json",
"https://github.com/pydantic/httpx2/security/advisories/GHSA-h4x7-gw46-3wm6",
"https://nvd.nist.gov/vuln/detail/CVE-2026-84379",
"https://github.com/pydantic/httpx2/commit/de96d810ee4e309d118982fe7084a46a2bcd600d",
"https://github.com/pydantic/httpx2/pull/1142"
],
"provider_metadata": {
"cwe_ids": [
"CWE-93"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/84xxx/CVE-2026-84379.json"
}
},
"related_cves": [
{
"value": "CVE-2026-84379",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 498141,
"published_at": "2026-09-02T17:57:17.092+00:00"
}