{"id":"RUSTSEC-2026-0224","summary":"Verification cache poisoning allows forged Nostr events to bypass signature validation","details":"The `nostr-relay-pool` crate cached the result of event signature verification\nbefore the check was actually performed. Because the entry was inserted\nunconditionally, a first delivery whose signature failed was still recorded\nin the cache. A subsequent delivery of the same event (identical ID,\nbut with a forged signature) would then hit the cache, causing signature\nverification to be skipped entirely. The forged event was passed on to\n`NostrDatabase::save_event()` as if it had been validated.\n\nApplications that connect to untrusted or compromised Nostr relays and persist\nreceived events are vulnerable. An attacker can inject arbitrary events\nwithout a valid signature into the application's trusted database, enabling\nimpersonation of any public key or corruption of application state derived from\nstored events.\n\nThe issue does not compromise confidentiality or availability. It solely\nundermines the integrity of stored event data.\n\nThe fix, released in version 0.44.2, moves the cache insertion to occur only\nafter a successful signature verification, so that failed attempts never create\na cache entry.\n\n## Credit\n\nDiscovered and reported by [Ali Al-Sorehi](https://github.com/aykoooo)","aliases":["GHSA-f96q-5f6p-v7cj"],"modified":"2026-08-01T15:15:03.610976353Z","published":"2026-08-01T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/nostr-relay-pool"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2026-0224.html"},{"type":"WEB","url":"https://github.com/nostrdevkit/nostr/commit/02a88bd5688de058bfba8aa9fb4612441a384eff"}],"affected":[{"package":{"name":"nostr-relay-pool","ecosystem":"crates.io","purl":"pkg:cargo/nostr-relay-pool"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.44.2"}]}],"ecosystem_specific":{"affects":{"os":[],"functions":[],"arch":[]},"affected_functions":null},"database_specific":{"informational":null,"categories":["crypto-failure"],"cvss":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0224.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}