nostr-sdk is vulnerable to Uncontrolled Resource Consumption
60
Medium Risk
The relay pool forwards every NIP-42 authentication challenge received from a relay through an unbounded command queue, while challenge handling can wait for an asynchronous signer or user interaction. Because challenges arrive faster than they can be answered, a relay can continuously send new challenges without the client ever completing authentication. Queued challenges and pending signer operations grow without limit until the client becomes unavailable. The fix coalesces pending challenges through a latest-value channel so only the single still-answerable challenge is retained and memory use stays bounded.
You are affected if you are using a version that falls within the vulnerable range and your application configures an authenticator or signer for NIP-42 relay authentication and connects to relays that are not fully trusted.
nostr-sdk is vulnerable to Uncontrolled Resource Consumption in versions 0.32.1 - 0.44.7.
Upgrade the nostr-sdk 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.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant