{"id":"CVE-2024-27306","summary":"aiohttp vulnerable to XSS on index pages for static file handling","details":"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.","aliases":["GHSA-7gpw-8wmc-pm8g"],"modified":"2026-04-16T04:38:30.544479032Z","published":"2024-04-18T14:23:25.325Z","related":["CGA-f6p3-pww8-6mw8","SUSE-SU-2024:1866-1","SUSE-SU-2024:4396-1","openSUSE-SU-2024:13965-1"],"database_specific":{"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27306.json","cwe_ids":["CWE-79","CWE-80"]},"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/02/msg00002.html"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2EXRGTN2WG7VZLUZ7WOXU5GQJKCPPHKP/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NWEI6NIHZ3G7DURDZVMRK7ZEFC2BTD3U/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZIVBMPEY7WWOFMC3CWXFBRQPFECV4SW3/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27306.json"},{"type":"ADVISORY","url":"https://github.com/aio-libs/aiohttp/security/advisories/GHSA-7gpw-8wmc-pm8g"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27306"},{"type":"FIX","url":"https://github.com/aio-libs/aiohttp/commit/28335525d1eac015a7e7584137678cbb6ff19397"},{"type":"FIX","url":"https://github.com/aio-libs/aiohttp/pull/8319"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/aio-libs/aiohttp","events":[{"introduced":"0"},{"fixed":"b3397c7ac44fc80206d28f1dd0d1f3b10c4ec572"}]}],"versions":["0.15.2","0.8.2","1.3.0","2.0.0","2.0.0rc1","4v0.21.6","v.0.6.5","v0.1","v0.10.0","v0.10.1","v0.11.0","v0.12.0","v0.13.0","v0.13.1","v0.14.0","v0.14.1","v0.14.2","v0.14.3","v0.14.4","v0.15.0","v0.15.1","v0.15.2","v0.15.3","v0.16.0","v0.16.1","v0.16.2","v0.16.3","v0.17.0","v0.18.0","v0.19.0","v0.2","v0.20.0","v0.20.1","v0.21.0","v0.22.0","v0.22.0b0","v0.22.0b1","v0.22.0b2","v0.22.0b3","v0.22.0b4","v0.22.0b5","v0.22.0b6","v0.22.1","v0.3","v0.4","v0.4.1","v0.4.2","v0.5.0","v0.6.1","v0.6.2","v0.6.3","v0.6.4","v0.7.0","v0.7.1","v0.7.2","v0.7.3","v0.8.0","v0.8.1","v0.8.3","v0.8.4","v0.9.0","v0.9.1","v0.9.2","v1.0.0","v1.0.1","v1.1.0","v1.1.1","v1.2.0","v2.1.0","v2.2.0","v2.3.0","v2.3.0a1","v2.3.0a2","v2.3.0a3","v2.3.0a4","v3.0.0b0","v3.0.0b1","v3.0.0b2","v3.0.0b3","v3.0.0b4","v3.1.0","v3.2.0","v3.4.0","v3.4.0a0","v3.4.0a3","v3.4.0b1","v3.4.0b2","v3.5.0","v3.5.0a1","v3.5.0b1","v3.5.0b2","v3.5.0b3","v3.5.1","v3.5.2","v3.5.3","v3.5.4","v3.6.0","v3.6.0a0","v3.6.0a1","v3.6.0a10","v3.6.0a11","v3.6.0a12","v3.6.0a2","v3.6.0a3","v3.6.0a4","v3.6.0a5","v3.6.0a6","v3.6.0a7","v3.6.0a8","v3.6.0a9","v3.6.0b0","v3.6.1","v3.6.1b3","v3.6.1b4","v3.6.2","v3.6.2a1","v3.6.2a2","v3.7.0","v3.7.0b0","v3.7.0b1","v3.7.1","v3.8.0","v3.9.0","v3.9.0b0","v3.9.0b1","v3.9.0rc0","v3.9.1","v3.9.2","v3.9.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-27306.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}