nostr-sdk is vulnerable to Improper Verification of Data Authenticity
75
CVE Score
High
Improper Verification of Data Authenticity
The relay pool inserts an event id into its signature-verification cache before the verification result is known, so a first delivery whose signature check fails still records the id as seen. A malicious or compromised relay can send an event with a valid id but an invalid signature twice: the first delivery populates the cache and the second produces a cache hit that skips verification and passes the forged event to database storage. This lets unsigned events be persisted as trusted, enabling public-key impersonation or corruption of state derived from stored events. The fix performs verification before inserting into the cache so failed attempts no longer poison it.
Upgrade the org.rust-nostr:nostr-sdk, org.rust-nostr:nostr-sdk-jvm, or org.rust-nostr:nostr-sdk-kmp library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application connects to untrusted or compromised relays and persists received events.
0.40.0 - 0.44.6
Fixed in 0.44.7nostr-sdk is vulnerable to Improper Verification of Data Authenticity in versions 0.40.0 - 0.44.6.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.