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

onion_message: verify ONION_MESSAGE feature on peer before forwarding

Public commit record

What the developer wrote

Authored by Sander van Grieken

60/100 · Adequate
onion_message: verify ONION_MESSAGE feature on peer before forwarding
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
The short version

What changed, and why it matters

This commit adds a safety check in Electrum's Lightning 'onion message' forwarding code. Before passing an encrypted message to the next peer in the chain, Electrum now verifies that the peer actually advertises support for onion messages. Without this check, Electrum could forward messages to peers that do not understand them, which could leak information about the route, waste bandwidth, or cause protocol confusion. The change is small and defensive.

Recommended action

Review whether other forwarded Lightning messages have similar feature-bit preconditions, and consider adding tests that exercise the new guard path. No urgent user action is required; update to the patched version when convenient.

Security signals we found

01

Missing capability check before protocol message forwarding

02

Lightning feature-bit validation added as defense-in-depth

03

Potential route-capability leak or protocol mismatch mitigated

Risk score

Why this scored 48/100

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