Vulnerabilities · 2024 · Aiohttp
CVE-2024-27306
Aiohttp vulnerability
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.
Affected products
Aiohttp, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Aiohttp runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/aio-libs/aiohttp/security/advisories/GHSA-7gpw-8wmc-pm8g
- github.com/aio-libs/aiohttp/pull/8319/files
- github.com/aio-libs/aiohttp/commit/28335525d1eac015a7e7584137678cbb6ff19397
- nvd.nist.gov/vuln/detail/CVE-2024-27306
- github.com/aio-libs/aiohttp/pull/8319
- lists.fedoraproject.org/archives/list/[email protected]/message/2EX
- lists.fedoraproject.org/archives/list/[email protected]/message/NWE
- lists.fedoraproject.org/archives/list/[email protected]/message/ZIV
- nvd.nist.gov/vuln/detail/CVE-2024-27306
- cve.org/CVERecord?id=CVE-2024-27306
More vulnerabilities in Aiohttp products
CVE-2025-69230CVE-2025-69229CVE-2025-69228CVE-2025-69227CVE-2025-69226CVE-2025-69225CVE-2025-69224CVE-2025-69223All 23
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.