NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · PyPI

CVE-2026-48802: python-engineio has unbound thread allocation that can cause denial of service

highCVSS 3.1 7.5GHSA-cgwc-pv48-fhj5

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.

Published Jun 26, 2026

Affected packages

python-engineio

Ecosystem
PyPI
Affected
<= 4.13.1
Fixed in
4.13.2
Check
pip show python-engineio

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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:

  • The initial background thread (or async task( for heartbeat management is only launched if a client passes authentication in the connect handler.
  • The server now ensures that there is only one background heatbeat thread (or async task) per client at a given point in time. Out of sequence PONG packets are now discarded when an active heartbeat thread is already running.

Credited to mauriceng98.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More PyPI vulnerabilities

All PyPI entries