Intel

AIKIDO-2026-988052

nostr-sdk is vulnerable to Improper Verification of Data Authenticity

GHSA-f96q-5f6p-v7cjPublished Aug 5, 2026
August 5, 2026

75

CVE Score

High

Improper Verification of Data Authenticity

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the nostr-sdk library to the patch version.

Who does this affect?

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.

Package

Versions

0.40.0 - 0.44.6

Fixed in 0.44.7

Background info

nostr-sdk is vulnerable to Improper Verification of Data Authenticity in versions 0.40.0 - 0.44.6.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea