Critical Vulnerability in Python Aiohttp Package: Improper HTTP Request Validation

python-aiohttp Updated 02 Oct 2025

Summary

30/11/2023
N/A
Yes i
High
7.2

UBUNTU-CVE-2023-49081: aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Python Aiohttp package is an asynchronous HTTP client/server framework designed for asyncio and Python. It allows developers to build web applications and services that can handle multiple requests concurrently, making it a popular choice for modern web development. However, a recent vulnerability has been identified that compromises the integrity of HTTP requests, potentially allowing attackers to manipulate requests in harmful ways.

Vulnerability Detail

The vulnerability arises from improper validation within the Aiohttp framework, which allows an attacker to modify HTTP requests. Specifically, if an attacker can control the HTTP version of a request, they may insert new headers or create entirely new requests. This could lead to unauthorized actions or data exposure, making it critical for users of the package to address this issue promptly. The vulnerability has been assigned a CVSS score of 7.2, indicating its severity.

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

As a temporary measure, users can implement additional validation checks on incoming HTTP requests to mitigate the risk of exploitation until the package is updated. However, this is not a substitute for applying the official patch.

Conclusion

The identified vulnerability in the Python Aiohttp package poses a significant risk due to improper HTTP request validation. Users are strongly advised to update to the patched versions of the package to secure their applications. Temporary workarounds can be implemented, but they do not replace the need for an official fix.

See every vulnerability recorded for python-aiohttp →

Share this vulnerability

FAQ

The vulnerability allows attackers to manipulate HTTP requests by controlling the HTTP version, potentially leading to unauthorized actions.

You can use Vulert's playground at Vulert Scanner to check if your application is affected without needing to sign up.

The CVSS score of this vulnerability is 7.2, indicating a high level of severity.

Implement additional validation checks on incoming HTTP requests as a temporary workaround until the package can be updated.

Detailed information can be found in the Ubuntu security notices and the official GitHub repository.

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