Critical Vulnerabilities in python-aiohttp: Request Smuggling and XSS Risks

python-aiohttp Updated 03 Oct 2025

Summary

17/07/2025
N/A
Yes i
Unrated
Not published

USN-7642-1: python-aiohttp vulnerabilities. Affects python-aiohttp versions < 3.0.1-1ubuntu0.1~esm5. Fixed in 3.0.1-1ubuntu0.1~esm5. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

python-aiohttp is an asynchronous HTTP client/server framework for Python, designed to provide a simple and efficient way to handle HTTP requests and responses. It is widely used for building web applications and services due to its non-blocking architecture and support for asyncio. However, recent vulnerabilities have been discovered that could allow attackers to exploit the framework, leading to serious security risks such as request smuggling and cross-site scripting (XSS).

Vulnerability Detail

Multiple vulnerabilities have been identified in python-aiohttp, including improper parsing of HTTP headers and inadequate validation of inputs. These flaws could allow remote attackers to perform request smuggling, leading to unauthorized access or manipulation of requests. Specific vulnerabilities include CVE-2023-47627, CVE-2023-49081, CVE-2023-49082, CVE-2024-23829, CVE-2024-27306, CVE-2024-30251, and CVE-2024-52304. The impact of these vulnerabilities is particularly severe for users of Ubuntu 18.04 LTS, 20.04 LTS, 22.04 LTS, and 24.04 LTS.

How To Fix

Minimum fixed version

3.0.1-1ubuntu0.1~esm5

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-aiohttp

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate patching is not feasible, consider implementing input validation and sanitization measures in your application to mitigate the risk of exploitation. Additionally, monitor your application for unusual request patterns that may indicate an attack.

Conclusion

The vulnerabilities in python-aiohttp pose significant risks to applications using this framework. It is essential to apply the necessary patches promptly to safeguard against potential attacks. Regular monitoring and validation practices can further enhance security.

See every vulnerability recorded for python-aiohttp →

Share this vulnerability

FAQ

python-aiohttp is an asynchronous HTTP client/server framework for Python, used for building web applications and services.

The main vulnerabilities include improper parsing of HTTP headers, inadequate input validation, and potential for request smuggling and XSS attacks.

You can use Vulert, which monitors open-source vulnerabilities in your software using a manifest file. Check your application at Vulert Scanner without any signup.

Implement input validation and sanitization measures in your application and monitor for unusual request patterns.

Detailed information can be found in the Ubuntu Security Notices and the respective CVE entries.

Related vulnerabilities

Recent vulnerabilities recorded for python-aiohttp.

How To Fix

Minimum fixed version

3.0.1-1ubuntu0.1~esm5

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-aiohttp

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback