{"id":"CVE-2024-27306","published":"2024-04-18T14:23:25Z","modified":"2025-11-03T20:37:02Z","title":"aiohttp vulnerable to XSS on index pages for static file handling","vendor":"aio-libs","product":"aiohttp","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00666,"percentile":0.52793,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"}],"references":[{"url":"https://github.com/aio-libs/aiohttp/security/advisories/GHSA-7gpw-8wmc-pm8g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/aio-libs/aiohttp/pull/8319","tags":["x_refsource_MISC"]},{"url":"https://github.com/aio-libs/aiohttp/commit/28335525d1eac015a7e7584137678cbb6ff19397","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2EXRGTN2WG7VZLUZ7WOXU5GQJKCPPHKP/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NWEI6NIHZ3G7DURDZVMRK7ZEFC2BTD3U/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZIVBMPEY7WWOFMC3CWXFBRQPFECV4SW3/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/02/msg00002.html","tags":[]}],"priority":{"score":14.8,"factors":[{"name":"EPSS percentile","points":10.56},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"aio-libs","affectedVersions":[{"vendor":"aio-libs","product":"aiohttp","versions":["< 3.9.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-04-25T19:36:48.583083Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"aiohttp","vulnerableRanges":["<3.9.4"],"patched":["3.9.4"],"from":["GHSA-7gpw-8wmc-pm8g","PYSEC-2026-1102"],"provenance":"source"}],"summary":{"text":"The aiohttp asynchronous HTTP client/server framework for Python contains a cross-site scripting flaw on the index pages generated by its static file handling. An attacker can exploit it over the network without authentication, but a user must interact with a crafted link or page, and the issue only applies when the static file index listing (show_index) is enabled.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:08Z"},"euvd":{"id":"EUVD-2024-1143","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-aio-libs-aiohttp-cve-2024-23334","parents":[{"from":"CVE-2024-23334","to":"CVE-2024-27306","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["aiohttp/web_urldispatcher.py"],"commits":["https://github.com/aio-libs/aiohttp/commit/1c335944d6a8b1298baf179b7c0b3069f10c514b","https://github.com/aio-libs/aiohttp/commit/28335525d1eac015a7e7584137678cbb6ff19397"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2024-27306","to":"CVE-2025-69226","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["aiohttp/web_urldispatcher.py"],"commits":["https://github.com/aio-libs/aiohttp/commit/28335525d1eac015a7e7584137678cbb6ff19397","https://github.com/aio-libs/aiohttp/commit/f2a86fd5ac0383000d1715afddfa704413f0711e"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2023-49082","published":"2023-11-29","fixed":"3.9.0","kev":false},{"cve":"CVE-2024-23334","published":"2024-01-29","fixed":"3.9.2","kev":false},{"cve":"CVE-2024-23829","published":"2024-01-29","fixed":"3.9.2","kev":false,"link":{"from":"CVE-2024-23829","to":"CVE-2024-27306","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:aiohttp","fromFixed":"3.9.2","toFixed":"3.9.4","daysApart":80}]}},{"cve":"CVE-2024-27306","published":"2024-04-18","fixed":"3.9.4","kev":false},{"cve":"CVE-2024-30251","published":"2024-05-02","fixed":"3.9.4","kev":false},{"cve":"CVE-2024-42367","published":"2024-08-09","fixed":"3.10.2","kev":false},{"cve":"CVE-2024-52303","published":"2024-11-18","fixed":"3.10.11","kev":false}],"package":"PyPI:aiohttp"}}