Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2024-27306

aiohttp: XSS on index pages for static file handling

Overview

Published
18 Apr 2024
Modified
17 Jun 2026
Medium CVE
3 Registry packages
16 OS packages
9 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

6.1 · MEDIUM

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Weakness: CWE-79, CWE-80

Affected packages · 3

Packages affected by CVE-2024-27306
EcosystemPackageVulnerableFixed in
PyPI aiohttp <3.9.4 3.9.4
Seal PyPI aiohttp >=2.3.9+sp0, <2.3.9+sp999>=3.0.8+sp0, <3.0.8+sp999>=3.8.5+sp0, <3.8.5+sp999 2.3.9+sp9993.0.8+sp9993.8.5+sp999
Seal PyPI seal-aiohttp >=2.3.9+sp1, <2.3.9+sp999>=3.0.8+sp1, <3.0.8+sp999>=3.8.5+sp1, <3.8.5+sp999 2.3.9+sp9993.0.8+sp9993.8.5+sp999

Open a package to see all its vulnerabilities.

Operating systems · 30 fixes

Red Hat 1 release · 1 package

affected 1
python-aiohttp
Red Hat fixes for CVE-2024-27306
ReleasePackageFixed in
7 python-aiohttp +1 affected

SUSE Linux Enterprise 3 releases · 2 packages

fixed 6
python3-aiohttp python311-aiohttp
SUSE Linux Enterprise fixes for CVE-2024-27306
ReleasePackageFixed inAdvisory
15.4 python3-aiohttp 3.6.0-150100.3.24.1 SUSE-SU-2024:4396-1
15.4 python311-aiohttp 3.9.3-150400.10.21.1 SUSE-SU-2024:1866-1
15.5 python3-aiohttp 3.6.0-150100.3.24.1 SUSE-SU-2024:4396-1
15.5 python311-aiohttp 3.9.3-150400.10.21.1 SUSE-SU-2024:1866-1
15.6 python3-aiohttp 3.6.0-150100.3.24.1 SUSE-SU-2024:4396-1
15.6 python311-aiohttp 3.9.3-150400.10.21.1 SUSE-SU-2024:1866-1

chainguard 1 release · 6 packages

fixed 6
py3-13-scanner-test-libraries-aiohttp kserve py3-cassandra-medusa nemo dask-gateway checkov
chainguard fixes for CVE-2024-27306
ReleasePackageFixed in
py3-13-scanner-test-libraries-aiohttp 0.0.1-r3
kserve 0.13.1-r3
py3-cassandra-medusa +1 0.20.1-r0
nemo 1.23.0-r12
dask-gateway 2024.1.0-r4
checkov 3.0.34-r1

debian 5 releases · 1 package

affected 2 fixed 3
python-aiohttp
debian fixes for CVE-2024-27306
ReleasePackageFixed in
10 python-aiohttp affected
11 python-aiohttp 3.7.4-1+deb11u1
12 python-aiohttp affected
13 python-aiohttp 3.9.5-1
14 python-aiohttp 3.9.5-1

echo 1 release · 1 package

fixed 1
python-aiohttp
echo fixes for CVE-2024-27306
ReleasePackageFixed in
python-aiohttp 3.9.5-1

openSUSE 1 release · 2 packages

fixed 2
python313-aiohttp python310-aiohttp
openSUSE fixes for CVE-2024-27306
ReleasePackageFixed inAdvisory
Tumbleweed python313-aiohttp +1 3.14.3-1.1 openSUSE-SU-2026:11467-1
Tumbleweed python310-aiohttp +2 3.9.5-2.1 openSUSE-SU-2024:13965-1

seal Red Hat 1 release · 1 package

fixed 1
python-jinja2
seal Red Hat fixes for CVE-2024-27306
ReleasePackageFixed in
7 python-jinja2 +1 2.7.2-4.el7+sp999

ubuntu 4 releases · 1 package

fixed 2 affected 2
python-aiohttp
ubuntu fixes for CVE-2024-27306
ReleasePackageFixed in
18.04-ESM python-aiohttp 3.0.1-1ubuntu0.1~esm5
20.04-ESM python-aiohttp 3.6.2-1ubuntu1+esm4
22.04 python-aiohttp affected
24.04 python-aiohttp affected

wolfi 1 release · 4 packages

fixed 4
kserve py3-cassandra-medusa dask-gateway checkov
wolfi fixes for CVE-2024-27306
ReleasePackageFixed in
kserve 0.13.1-r3
py3-cassandra-medusa 0.20.1-r0
dask-gateway 2024.1.0-r4
checkov 3.0.34-r1

References

Show all 17 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.