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

onion_message: ensure blinded path is list

Public commit record

What the developer wrote

Authored by Sander van Grieken

45/100 · Thin
onion_message: ensure blinded path is list
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes a small but real bug in Electrum's handling of private Lightning-style 'onion' messages. When a message uses a hidden route with only one intermediate hop, the software could receive that hop as a single object instead of a list, causing later code to crash or behave unexpectedly. The patch forces it to always be treated as a list. The most likely effect without the patch is a local error or failed message delivery, but in the worst case it could be abused to make the wallet mishandle a message.

Recommended action

Review the full blinded_path parsing and serialization code to ensure list consistency at the source, add type validation and tests for single-hop paths, and consider fuzzing or unit tests for malformed onion_message payloads.

Security signals we found

01

Type confusion / non-list iterable handling in protocol message path parsing

02

Defensive normalization of externally supplied structured data

03

Crash or logic-error potential when blinded path length equals one

04

Partial fix: root cause in upstream data format not addressed here

Risk score

Why this scored 47/100

Our methodology →
Potential impact 12/30
Exploitability 10/25
Stealth signal 8/15
Affected reach 8/15
Confidence 6/10
Evidence quality 3/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.