XSS in Aiohttp
CVE-2024-27306
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.007, 52.4th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Aiohttp
- Aio-Libs Aiohttp — versions < 3.9.4
- Fedoraproject Fedora — versions 38, 39, 40
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (fkie-cad/nvd-json-data-feeds, rsys-fchaliss/hebe, w4zu/Debian_security). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/aio-libs/aiohttp/security/advisories/GHSA-7gpw-8wmc-pm8g (Vendor Advisory)
- https://github.com/aio-libs/aiohttp/pull/8319 (Issue Tracking)
- https://github.com/aio-libs/aiohttp/commit/28335525d1eac015a7e7584137678cbb6ff19397 (Patch)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (Mailing List)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (Mailing List)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (Mailing List)
- lists.debian.org/debian-lts-announce/2025/02/msg00002.html