Vulnerability · Published Apr 18, 2024 · Assigned by GitHub_M

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

Medium 6.1

In plain English

A medium-severity cross-site scripting in aiohttp from aio-libs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.1Medium
Exploit odds (30 days)0.7%top 48.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12python-aiohttpno fix listedDEBIAN-CVE-2024-27306
Debian:13python-aiohttp3.9.5-1DEBIAN-CVE-2024-27306
Debian:14python-aiohttp3.9.5-1DEBIAN-CVE-2024-27306
PyPIaiohttp3.9.4GHSA-7gpw-8wmc-pm8g
PyPIaiohttp3.9.4PYSEC-2026-1102

Affected products (as reported)

VendorProductVersions
aio-libs aiohttp < 3.9.4

Weakness: CWE-79, CWE-80 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

References