CVE-2024-27306 MEDIUM

CVE-2024-27306: aiohttp vulnerable to XSS on index pages for static file handling

Vendor Aio-Libs
Product aiohttp
Weakness CWE-79 · XSS
Published April 18, 2024
Last update November 3, 2025

CVSS base score

6.1/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction Required
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

April 18, 2024 CVE published
November 3, 2025 Record updated

Related vulnerabilities

04Related CVE