{"id":"RUSTSEC-2026-0226","summary":"Wallet event parsers accept unauthenticated events","details":"The NIP-47 response and notification parsers and the NIP-60 wallet event parsers\ndecrypted relay-provided events before verifying their kind, computed event ID,\nsignature, and expected wallet public key. The decryption peer was derived from the\nuntrusted event author, so successful decryption did not prove that the configured\nwallet created the event.\n\nAn attacker can sign an event with their own key and derive the corresponding shared\nsecret with the victim's public key. A malicious relay delivering that event could\ntherefore cause attacker-chosen encrypted content to be parsed as a response,\nnotification, token, spending record, or quote from the configured wallet. This can\ncorrupt wallet state or cause an application to act on forged wallet data. The issue\ndoes not expose the victim's private key or decrypt events authored by the legitimate\nwallet.\n\nThe affected parsers now verify the event kind, ID, signature, and exact configured\nwallet author before attempting decryption or parsing the plaintext.","modified":"2026-08-02T18:00:03.853432367Z","published":"2026-08-01T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/nostr"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2026-0226.html"},{"type":"WEB","url":"https://github.com/nostrdevkit/nostr/commit/2b6d6227cd884c1acb200bffa66a3f402b02a176"},{"type":"WEB","url":"https://github.com/nostrdevkit/nostr/commit/0b78464e39604b0f052862035f47fdabc2a536dd"}],"affected":[{"package":{"name":"nostr","ecosystem":"crates.io","purl":"pkg:cargo/nostr"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.44.7"}]}],"ecosystem_specific":{"affects":{"arch":[],"os":[],"functions":[]},"affected_functions":null},"database_specific":{"cvss":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0226.json","categories":["crypto-failure"]}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}