Intel

AIKIDO-2026-856557

nostr-sdk is vulnerable to Insertion of Sensitive Information into Log File

Insertion of Sensitive Information into Log FileGHSA-j4ff-259j-7qjp Published 2 days ago

45

Medium Risk

This Affects:

PYTHONnostr-sdk
0.32.1 - 0.44.7
Fixed in 0.44.8
Are you affected? Scan for Free

TL;DR

Several NIP-46 remote-signer types expose their underlying debug formatting through the generated bindings, even though their fields hold connection credentials and request parameters. Reading repr() of these objects, or letting them reach logs, tracing spans, or error reports, exposes the NIP-46 connection secret and request contents. Anyone able to read those outputs can recover the credential and impersonate the signer connection. The fix redacts credentials and plaintext fields in the debug output while preserving non-sensitive structure.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application includes the repr() of NIP-46 connect types in logs, tracing, or error reports.

Background info

nostr-sdk is vulnerable to Insertion of Sensitive Information into Log File in versions 0.32.1 - 0.44.7.

How to fix this

Upgrade the nostr-sdk library to the patch version.