AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Moderate 60 Bitcoin

refuse an extended private key in place of an xpub in imported wallet files, and use the public key of a private hdkey in a scanned output descriptor

Public commit record

What the developer wrote

Authored by Craig Raw

55/100 · Thin
refuse an extended private key in place of an xpub in imported wallet files, and use the public key of a private hdkey in a scanned output descriptor
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Names security-relevant behavior explicitly! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes a security issue in Sparrow Wallet where wallet import files or QR scans that were supposed to contain only public extended keys (xpubs) could accidentally or maliciously contain private extended keys (xprvs). The wallet now rejects xprvs in those places and, when scanning output descriptors, derives the public key from any private key instead of using the private key directly. This prevents private key material from being loaded into watch-only or multisig wallet setups where it does not belong.

Recommended action

Users should upgrade to the Sparrow Wallet release containing this commit. Avoid importing wallet files or QR descriptors from untrusted sources, and verify that any exported wallet configuration files contain only xpubs, not xprvs.

Security signals we found

01

Rejection of extended private keys where extended public keys are expected

02

Public-key derivation from private HD keys in scanned output descriptors

03

Addition of defensive validation helper across multiple wallet import formats

04

New unit test asserting ImportException on xprv-in-xpub field

Risk score

Why this scored 60/100

Our methodology →
Potential impact 18/30
Exploitability 12/25
Stealth signal 8/15
Affected reach 10/15
Confidence 8/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.