PyPI: aiohttp
CVE-2026-34519
Safety vulnerability ID: SFTY-20260401-70250
Safety legacy ID: pyup.io-91426
Affected versions of the aiohttp package are vulnerable to HTTP Response Splitting due to improper neutralisation of carriage return characters in the reason phrase of HTTP responses. The Response class does not sanitise the reason parameter, allowing injection of CRLF sequences that can manipulate outgoing HTTP headers. An attacker who controls the reason parameter can inject arbitrary headers into the HTTP response, potentially enabling cache poisoning or response manipulation.
Overview
AIOHTTP has HTTP response splitting via \r in reason phrase
Advisory
Affected versions of the aiohttp package are vulnerable to HTTP Response Splitting due to improper neutralisation of carriage return characters in the reason phrase of HTTP responses. The Response class does not sanitise the reason parameter, allowing injection of CRLF sequences that can manipulate outgoing HTTP headers. An attacker who controls the reason parameter can inject arbitrary headers into the HTTP response, potentially enabling cache poisoning or response manipulation.
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20260401-70250/CVE-2026-34519
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-34519
- https://data.safetycli.com/changelogs/aiohttp/
- https://github.com/advisories/GHSA-mwh4-6h8g-pg8w
- https://pypi.org/project/aiohttp
- https://github.com/aio-libs/aiohttp/security/advisories/GHSA-mwh4-6h8g-pg8w
- https://nvd.nist.gov/vuln/detail/CVE-2026-34519
- https://github.com/aio-libs/aiohttp/commit/53b35a2f8869c37a133e60bf1a82a1c01642ba2b
- https://github.com/aio-libs/aiohttp/releases/tag/v3.13.4
- https://github.com/advisories/GHSA-mwh4-6h8g-pg8w
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
