AIOHTTP's C parser (llhttp) accepts null bytes and control characters in response header values - header injection/security bypass
Published 1 Apr 2026 · Updated 10 Sept 2026
Is your project on an affected aiohttp?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <3.13.4
- Fixed in
- 3.13.4
pip install 'aiohttp>=3.13.4'Details
Summary
The C parser (the default for most installs) accepted null bytes and control characters in request headers.
Impact
An attacker could send header values that are interpreted differently than expected due to the presence of control characters. For example, request.url.origin() may return a different value than the raw Host header, or what a reverse proxy interpreted it as., potentially resulting in some kind of security bypass.
-----
Patch: https://github.com/aio-libs/aiohttp/commit/9370b9714a7a56003cacd31a9b4ae16eab109ba4
Is GHSA-63hf-3vf5-4wqf in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected aiohttp, and gives you the command that fixes it.
More advisories for aiohttp
- HighCVE-2026-128124AIOHTTP: Event loop stall in add_domain() wildcard matching · 16 Nov 2026
- MediumCVE-2026-128125AIOHTTP: Unbounded cookie storage in client CookieJar · 16 Nov 2026
- HighCVE-2026-128126AIOHTTP: Too many URL-encoded form fields block the event loop · 16 Nov 2026
- HighCVE-2026-128127AIOHTTP: Base64 multipart parts bypass client_max_size · 16 Nov 2026
- HighCVE-2026-128128AIOHTTP: WebSocket max_msg_size bypass via integer overflow · 16 Nov 2026
- HighCVE-2026-128129AIOHTTP: Unbounded buffering of data received during an upgrade request · 16 Nov 2026
References
- Linkgithub.com/aio-libs/aiohttp/security/advisories/GHSA-63hf-3vf5-4wqf
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-34520
- Linkgithub.com/aio-libs/aiohttp/commit/9370b9714a7a56003cacd31a9b4ae16eab109ba4
- Packagegithub.com/aio-libs/aiohttp
- Linkgithub.com/aio-libs/aiohttp/releases/tag/v3.13.4
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/aiohttp/PYSEC-2026-2102.yaml
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.