CVE-2024-27306
MEDIUM 6.1CVSS 3.1aiohttp Cross-site Scripting vulnerability on index pages for static file handling
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.
- Published
- 18 Apr 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-7gpw-8wmc-pm8gPYSEC-2026-1102
- Sources
- NVDJSONOSV GHSA-7gpw-8wmc-pm8gJSONOSV PYSEC-2026-1102JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | aiohttp | aiohttpcpe:2.3:a:aiohttp:aiohttp:*:*:*:*:*:*:*:* |
< 3.9.4 | 3.9.4 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:* |
= 38 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:* |
= 39 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:40:*:*:*:*:*:*:* |
= 40 | |
| OSV | PyPI | aiohttp | < 3.9.4 | 3.9.4 |
References
- https://github.com/aio-libs/aiohttp/commit/28335525d1eac015a7e7584137678cbb6ff19397 · Patch, WEB
- https://github.com/aio-libs/aiohttp/pull/8319 · Issue Tracking, WEB
- https://github.com/aio-libs/aiohttp/security/advisories/GHSA-7gpw-8wmc-pm8g · Vendor Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2EXRGTN2WG7VZLUZ7WOXU5GQJKCPPHKP/ · Mailing List, WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NWEI6NIHZ3G7DURDZVMRK7ZEFC2BTD3U/ · Mailing List, WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZIVBMPEY7WWOFMC3CWXFBRQPFECV4SW3/ · Mailing List, WEB
- https://lists.debian.org/debian-lts-announce/2025/02/msg00002.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-27306 · ADVISORY
- https://github.com/aio-libs/aiohttp/pull/8319/files · WEB
- https://github.com/aio-libs/aiohttp · PACKAGE
- https://pypi.org/project/aiohttp · PACKAGE
- https://github.com/advisories/GHSA-7gpw-8wmc-pm8g · ADVISORY
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 18 Apr 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 Apr 2024)