python-httpx2 — security advisory
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
- python-httpx2
- Affected versions
- 2.5.0-1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-84379
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 03:22 UTC · Revision 1
Source evidence
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:UBUNTU-CVE-2026-84379
python-httpx2
Fixed versions: Not specified
Complete source record
{
"id": "9f7233856865ea247ced769a3d89b733b48e124e0c91a3ca96af703cf5d80918",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-84379",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-84379",
"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:UBUNTU-CVE-2026-84379",
"products": [
{
"name": {
"value": "python-httpx2",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.5.0-1",
"evidence": "/affected/0/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2026-84379",
"aliases": [
"UBUNTU-CVE-2026-84379"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-httpx2",
"purl": "pkg:deb/ubuntu/python-httpx2?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.5.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-84379.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-httpcore2",
"binary_version": "2.5.0-1"
},
{
"binary_name": "python3-httpx2",
"binary_version": "2.5.0-1"
}
]
}
}
],
"modified": "2026-10-17T13:01:12.541527579Z",
"provider": "osv",
"upstream": [
"CVE-2026-84379"
],
"references": [
"https://ubuntu.com/security/CVE-2026-84379",
"https://www.cve.org/CVERecord?id=CVE-2026-84379",
"https://github.com/pydantic/httpx2/security/advisories/GHSA-h4x7-gw46-3wm6",
"https://github.com/pydantic/httpx2/pull/1142",
"https://github.com/pydantic/httpx2/commit/de96d810ee4e309d118982fe7084a46a2bcd600d",
"https://github.com/pydantic/httpx2/releases/tag/v2.11.0"
]
},
"related_cves": [
{
"value": "CVE-2026-84379",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 361242,
"published_at": "2026-09-02T18:21:00+00:00"
}