PYSEC-2026-3042
python-socketio: Binary attachment accumulation can cause denial of service
Quick fix
PYSEC-2026-3042 — python-socketio: upgrade to the fixed version with the command below.
pip install --upgrade 'python-socketio>=5.16.2'Details
### Impact The python-socketio server stores binary `EVENT` and `ACK` messages in memory while it waits to receive their binary attachments. Once all the attachments are received, these messages are then processed. An attacker can submit a binary message and intentionally omit sending one or more of its attachments to cause the message along with the partial list of received attachments to stay in memory for a long time.
### Patches Version 5.16.2 takes the following measures to address this issue: - Binary packets are only accepted from authenticated clients. - When a client disconnects, the server checks if there is a partial binary message being held for the client and deletes it.
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 5.16.2pip install --upgrade 'python-socketio>=5.16.2'References
- https://github.com/miguelgrinberg/python-socketio/security/advisories/GHSA-5w7q-77mv-v69f[WEB]
- https://github.com/miguelgrinberg/python-socketio[PACKAGE]
- https://pypi.org/project/python-socketio[PACKAGE]
- https://github.com/advisories/GHSA-5w7q-77mv-v69f[ADVISORY]
- https://nvd.nist.gov/vuln/detail/CVE-2026-48804[ADVISORY]