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

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.67%, higher than 53% of CVEs (2026-12-01)
- Published: 2024-04-18T13:45:21.000Z
- Modified: 2026-09-10T03:50:11.218Z
- Also known as: GHSA-7gpw-8wmc-pm8g, PYSEC-2026-1102
- Weaknesses: CWE-79, CWE-80
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- aio-libs aiohttp: < 3.9.4
- aiohttp aiohttp: before 3.9.4
- aiohttp (PyPI): before 3.9.4
- fedoraproject fedora: 38; 39; 40

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/aio-libs/aiohttp/security/advisories/GHSA-7gpw-8wmc-pm8g> (vendor-advisory, web)
- <https://github.com/aio-libs/aiohttp/pull/8319> (issue-tracking, web)
- <https://github.com/aio-libs/aiohttp/commit/28335525d1eac015a7e7584137678cbb6ff19397> (patch, web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2EXRGTN2WG7VZLUZ7WOXU5GQJKCPPHKP/> (mailing-list)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NWEI6NIHZ3G7DURDZVMRK7ZEFC2BTD3U/> (mailing-list)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZIVBMPEY7WWOFMC3CWXFBRQPFECV4SW3/> (mailing-list)
- <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://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2EXRGTN2WG7VZLUZ7WOXU5GQJKCPPHKP> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NWEI6NIHZ3G7DURDZVMRK7ZEFC2BTD3U> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZIVBMPEY7WWOFMC3CWXFBRQPFECV4SW3> (web)
- <https://pypi.org/project/aiohttp> (package)
- <https://github.com/advisories/GHSA-7gpw-8wmc-pm8g> (advisory)

## Sources

- CVE List: [CVE-2024-27306](https://www.cve.org/CVERecord?id=CVE-2024-27306), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-7gpw-8wmc-pm8g](https://github.com/advisories/GHSA-7gpw-8wmc-pm8g), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-27306](https://nvd.nist.gov/vuln/detail/CVE-2024-27306), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1102](https://osv.dev/vulnerability/PYSEC-2026-1102), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-27306 · Whole record: https://cve.day/CVE-2024-27306.json · Rebuilt by cve.day 2026-11-25T22:58:39.452Z
