Live threats

All CVEs / Aiohttp

CVE-2024-27306Aiohttp

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
0.9%
probability of exploitation in 30 days · percentile 57
Auth required
No
Published
Apr 18, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79, CWE-80
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Aiohttp.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI aiohttp < 3.9.4 3.9.4 pip install "aiohttp>=3.9.4"
PyPI aiohttp < 3.9.4 3.9.4 pip install "aiohttp>=3.9.4"

Per OSV / GitHub Advisories (GHSA-7gpw-8wmc-pm8g, PYSEC-2026-1102). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
aiohttpaiohttp< 3.9.4
fedoraprojectfedora38
fedoraprojectfedora39
fedoraprojectfedora40

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.