nats-py is vulnerable to Memory Leak
30
Low Risk
Affected versions of the package are vulnerable to memory leaks. When creating a subscription in ObjectStore.get, two long-running tasks—_hbtask for idle heartbeat and _fctask for ordered consumers—are created. These tasks are not cancelled when sub.unsubscribe() is called, causing them to continue running and holding references to the subscription and other objects. This prevents garbage collection, leading to a growing number of active coroutines (up to 20K observed) and resulting in increased memory usage and potential performance degradation.
You are affected if you are using a version that falls within the vulnerable range.
nats-py is vulnerable to Memory Leak in versions 1.0.0 - 2.8.0.
Upgrade the nats-py library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant