{"id":"RUSTSEC-2026-0225","revision":"fa1f6a9096f0455ea9c9c5de62bf5ae6","records":[{"revision":"fa1f6a9096f0455ea9c9c5de62bf5ae6","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2026-0225","aliases":[],"title":"Debug output exposes NIP-46 and NIP-60 credentials","description":"Several NIP-46 and NIP-60 types used derived `Debug` implementations even though\ntheir fields contained credentials or decrypted application data. Formatting these\nvalues exposed NIP-46 connection secrets and request parameters, as well as NIP-60\nprivate keys, Cashu bearer proofs, and quote capability identifiers.\n\nApplications commonly include `Debug` output in diagnostic logs, tracing spans, or\nerror reports. Anyone able to read those outputs could recover the disclosed\ncredentials and, depending on the value, impersonate a signer connection or spend\nwallet tokens. The issue does not expose data unless an affected value is formatted\nand the resulting output is made accessible.\n\nThe affected types now use custom `Debug` implementations that preserve variant and\nnon-sensitive structural information while replacing credentials, bearer values,\nand plaintext fields with redaction markers. Serialization and protocol behavior are\nunchanged.","state":0,"publishedAt":"2026-08-01T12:00:00+00:00","modifiedAt":"2026-08-02T18:00:03.5396759+00:00","affected":[{"ecosystem":"crates.io","name":"nostr","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"0.44.7"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":null,"severity":null}],"references":["https://crates.io/crates/nostr","https://rustsec.org/advisories/RUSTSEC-2026-0225.html","https://github.com/nostrdevkit/nostr/commit/2bc5fa2c270bb87b397d381909053f12ee734d44","https://github.com/nostrdevkit/nostr/commit/778af7e4930449dcdd7a070774da7b71b282d171"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2026-0225","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2026-0225","identifiers":["RUSTSEC-2026-0225"]},"retained":false,"historicalAffected":[]}],"coverage":[]}