python-engineio has unbound thread allocation that can cause denial of service
High severity
GitHub Reviewed
Published
May 23, 2026
in
miguelgrinberg/python-engineio
•
Updated Jun 26, 2026
Description
Published to the GitHub Advisory Database
Jun 26, 2026
Reviewed
Jun 26, 2026
Last updated
Jun 26, 2026
Impact
An attacker can cause the creation of unnecessary background threads in the python-engineio server by exploiting the heartbeat mechanism, which launches a thread when a new connection is received, and when the client sends a PONG packet.
Note: this issue primarily affects synchronous servers. Asynchronous servers allocate background tasks instead of physical threads, which are lightweight and less likely to cause denial of service. However, the fix that was implemented was also applied to the asynchronous case.
Patches
Version 4.13.2 addresses this issue as follows:
connecthandler.References