6.1
MEDIUM CVSS 3.1
CVE-2024-27306
Aiohttp XSS Exposure
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.

INFO

Published Date :

April 18, 2024, 3:15 p.m.

Last Modified :

Aug. 21, 2025, 12:45 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2024-27306 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Fedoraproject fedora
1 Aiohttp aiohttp
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM [email protected]
Solution
Upgrade aiohttp to a patched version or update related packages to address the XSS vulnerability.
  • Upgrade aiohttp to version 3.9.4 or later.
  • Update the affected python3-aiohttp package.
  • Update the affected python-aiohttp package.
  • Consider using a reverse proxy server.
Public PoC/Exploit Available at Github

CVE-2024-27306 has a 2 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-27306 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Python

Updated: 1 month, 2 weeks ago
62 stars 6 fork 6 watcher
Born at : May 4, 2025, 9:48 a.m. This repo has been linked 3 different CVEs too.

Radisys Vulnerability Assessment and Management System

Rust Makefile

Updated: 1 year, 1 month ago
0 stars 0 fork 0 watcher
Born at : June 25, 2024, 9:44 a.m. This repo has been linked 13 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-27306 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-27306 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Aug. 21, 2025

    Action Type Old Value New Value
    Added CPE Configuration OR *cpe:2.3:a:aiohttp:aiohttp:*:*:*:*:*:*:*:* versions up to (excluding) 3.9.4
    Added CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:40:*:*:*:*:*:*:*
    Added Reference Type CVE: https://github.com/aio-libs/aiohttp/commit/28335525d1eac015a7e7584137678cbb6ff19397 Types: Patch
    Added Reference Type GitHub, Inc.: https://github.com/aio-libs/aiohttp/commit/28335525d1eac015a7e7584137678cbb6ff19397 Types: Patch
    Added Reference Type CVE: https://github.com/aio-libs/aiohttp/pull/8319 Types: Issue Tracking
    Added Reference Type GitHub, Inc.: https://github.com/aio-libs/aiohttp/pull/8319 Types: Issue Tracking
    Added Reference Type CVE: https://github.com/aio-libs/aiohttp/security/advisories/GHSA-7gpw-8wmc-pm8g Types: Vendor Advisory
    Added Reference Type GitHub, Inc.: https://github.com/aio-libs/aiohttp/security/advisories/GHSA-7gpw-8wmc-pm8g Types: Vendor Advisory
    Added Reference Type CVE: https://lists.fedoraproject.org/archives/list/[email protected]/message/2EXRGTN2WG7VZLUZ7WOXU5GQJKCPPHKP/ Types: Mailing List
    Added Reference Type GitHub, Inc.: https://lists.fedoraproject.org/archives/list/[email protected]/message/2EXRGTN2WG7VZLUZ7WOXU5GQJKCPPHKP/ Types: Mailing List
    Added Reference Type CVE: https://lists.fedoraproject.org/archives/list/[email protected]/message/NWEI6NIHZ3G7DURDZVMRK7ZEFC2BTD3U/ Types: Mailing List
    Added Reference Type GitHub, Inc.: https://lists.fedoraproject.org/archives/list/[email protected]/message/NWEI6NIHZ3G7DURDZVMRK7ZEFC2BTD3U/ Types: Mailing List
    Added Reference Type CVE: https://lists.fedoraproject.org/archives/list/[email protected]/message/ZIVBMPEY7WWOFMC3CWXFBRQPFECV4SW3/ Types: Mailing List
    Added Reference Type GitHub, Inc.: https://lists.fedoraproject.org/archives/list/[email protected]/message/ZIVBMPEY7WWOFMC3CWXFBRQPFECV4SW3/ Types: Mailing List
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://github.com/aio-libs/aiohttp/commit/28335525d1eac015a7e7584137678cbb6ff19397
    Added Reference https://github.com/aio-libs/aiohttp/pull/8319
    Added Reference https://github.com/aio-libs/aiohttp/security/advisories/GHSA-7gpw-8wmc-pm8g
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/2EXRGTN2WG7VZLUZ7WOXU5GQJKCPPHKP/
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/NWEI6NIHZ3G7DURDZVMRK7ZEFC2BTD3U/
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/ZIVBMPEY7WWOFMC3CWXFBRQPFECV4SW3/
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    May. 02, 2024

    Action Type Old Value New Value
    Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/2EXRGTN2WG7VZLUZ7WOXU5GQJKCPPHKP/ [No types assigned]
    Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/NWEI6NIHZ3G7DURDZVMRK7ZEFC2BTD3U/ [No types assigned]
    Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/ZIVBMPEY7WWOFMC3CWXFBRQPFECV4SW3/ [No types assigned]
  • CVE Received by [email protected]

    Apr. 18, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference GitHub, Inc. https://github.com/aio-libs/aiohttp/security/advisories/GHSA-7gpw-8wmc-pm8g [No types assigned]
    Added Reference GitHub, Inc. https://github.com/aio-libs/aiohttp/pull/8319 [No types assigned]
    Added Reference GitHub, Inc. https://github.com/aio-libs/aiohttp/commit/28335525d1eac015a7e7584137678cbb6ff19397 [No types assigned]
    Added CWE GitHub, Inc. CWE-79
    Added CWE GitHub, Inc. CWE-80
    Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 6.1
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact