CVE-2024-27306: aiohttp vulnerable to XSS on index pages for static file handling
Vulnerability summary
CVE-2024-27306 is a medium (CVSS 6.1) vulnerability in aio-libs aiohttp. EPSS estimates a 0.67% chance of exploitation in the next 30 days, higher than 51.8% of scored vulnerabilities.
Not severe (CVSS 6.1, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 6 · Related 8Timeline
- 18-04-2024PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · PypiEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · UbuntuEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · WolfiEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · ChainguardEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- NVDNIST6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
0.67%
Chance of exploitation in the next 30 days
Percentile
52%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.67% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-79Improper Neutralization of Input During Web Page GenerationThe product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
- CWE-80Improper Neutralization of Script-Related HTML Tags in a Web PageThe product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages.
Affected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard19 products
- checkov< 3.0.34-r1
- dask-gateway< 2024.1.0-r4
- dask-gateway-server< 2024.1.0-r4
- kserve< 0.13.1-r3
- kserve-agent< 0.13.1-r3
Wolfi15 products
- checkov< 3.0.34-r1
- dask-gateway< 2024.1.0-r4
- dask-gateway-server< 2024.1.0-r4
- kserve< 0.13.1-r3
- kserve-agent< 0.13.1-r3
Suse7 products
- python-aiohttp&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP2< 3.6.0-150100.3.24.1
- python-aiohttp&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP3< 3.6.0-150100.3.24.1
- python-aiohttp&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP4< 3.9.3-150400.10.21.1 | < 3.6.0-150100.3.24.1
- python-aiohttp&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP5< 3.6.0-150100.3.24.1
- python-aiohttp&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP6< 3.6.0-150100.3.24.1
Opensuse3 products
- python-aiohttp&distro=openSUSE Leap 15.5< 3.9.3-150400.10.21.1 | < 3.6.0-150100.3.24.1
- python-aiohttp&distro=openSUSE Leap 15.6< 3.9.3-150400.10.21.1
- python-aiohttp&distro=openSUSE Tumbleweed< 3.9.5-2.1
Aio-libs1 product
- aiohttp< 3.9.4
Aiohttp1 product
- aiohttp< 3.9.4
Debian1 product
- python-aiohttpAll versions (No fix recorded) | < 3.9.5-1
Fedoraproject1 product
- fedoraEOL38 | 39 | 40
Mageia1 product
- python-aiohttp< 3.8.3-3.1.mga9
PyPI1 product
- aiohttp< 3.9.4
Ubuntu1 product
- python-aiohttp< 3.0.1-1ubuntu0.1~esm5 | < 3.8.1-4ubuntu0.2+esm1 | < 3.9.1-1ubuntu0.1+esm1
11 vendors · 51 products
References
26 links- github.com/aio-libs/aiohttp/security/advisories/GHSA-7gpw-8wmc-pm8gX Refsource CONFIRMWEBREPORTAdvisoryVendor Advisory
- github.com/aio-libs/aiohttp/commit/28335525d1eac015a7e7584137678cbb6ff19397X Refsource MISCWEBREPORTFIXPatch
Show all 26 references
- github.com/aio-libs/aiohttpPACKAGE
- pypi.org/project/aiohttpPACKAGE