VDB
Sign up
—

PYSEC-2026-1107

AIOHTTP vulnerable to DoS when bypassing asserts

Quick fix

PYSEC-2026-1107 — aiohttp: upgrade to the fixed version with the command below.

pip install --upgrade 'aiohttp>=3.13.3'

Details

### Summary When assert statements are bypassed, an infinite loop can occur, resulting in a DoS attack when processing a POST body.

### Impact If optimisations are enabled (`-O` or `PYTHONOPTIMIZE=1`), and the application includes a handler that uses the `Request.post()` method, then an attacker may be able to execute a DoS attack with a specially crafted message.

------

Patch: https://github.com/aio-libs/aiohttp/commit/bc1319ec3cbff9438a758951a30907b072561259

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/aiohttp
Introduced in: 0Fixed in: 3.13.3
Fixpip install --upgrade 'aiohttp>=3.13.3'

References