CVE-2024-27306Aiohttp
Medium 6.1 No auth needed
Follow: this CVE · Aiohttp · Aiohttp We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 57
- Auth required
- No
- Published
- Apr 18, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. A XSS vulnerability exists on index pages for static file handling. This vulnerability is fixed in 3.9.4. We have always recommended using a reverse proxy server (e.g. nginx) for serving static files. Users following the recommendation are unaffected. Other users can disable `show_index` if unable to upgrade.
What to do
- Apply the vendor's security update for Aiohttp.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | aiohttp |
< 3.9.4 |
3.9.4 |
pip install "aiohttp>=3.9.4" |
| PyPI | aiohttp |
< 3.9.4 |
3.9.4 |
pip install "aiohttp>=3.9.4" |
Per OSV / GitHub Advisories (GHSA-7gpw-8wmc-pm8g, PYSEC-2026-1102). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| aiohttp | aiohttp | < 3.9.4 |
| fedoraproject | fedora | 38 |
| fedoraproject | fedora | 39 |
| fedoraproject | fedora | 40 |
Official advisories
- python313-aiohttp-3.14.3-1.1 on GA media · SUSE · openSUSE-SU-2026:11467-1 · Aug 6, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Issue Tracking
- github.com Vendor Advisory
- lists.fedoraproject.org Mailing List
- lists.fedoraproject.org Mailing List
- lists.fedoraproject.org Mailing List
- lists.debian.org