Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.

azure/python-aiohttp may allow script injection in file listings

published 2 years ago
Summary

The aiohttp package version 3.6.2-3 can display a web page that lists files, and an attacker could insert malicious code into that page. Upgrade to version 3.9.4, use a reverse‑proxy like nginx for static files, or turn off the "show_index" option to stop the risk.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
Ecosystem VendorProductAffected versions
Azure Linux:3 azure python-aiohttp <= 3.6.2-3
Original advisory text
CVE-2024-27306 affecting package python-aiohttp 3.6.2-3
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.
Timeline
Published18 Apr 2024
Updated23 Sep 2026
First seen23 Sep 2026
Sources
AZL-43357 · OSV
Track software like this
Free during beta