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

offer: fix path validation to only require non-empty paths when issuer_id is missing

Public commit record

What the developer wrote

Authored by Erick Cestari

73/100 · Adequate
offer: fix path validation to only require non-empty paths when issuer_id is missing

When an offer has an issuer_id, empty paths should be allowed since the
issuer_id can be used for signing. Only when issuer_id is None should
we require non-empty paths to extract the blinded node ID for signing.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit fixes a validation bug in how Lightning offers (BOLT12) are checked. Previously, an offer that included an issuer ID but had an empty list of payment paths was incorrectly rejected. The fix allows empty paths when an issuer ID is present, because the issuer ID itself can be used for signing. The bug was a logic error, not a clear-cut security vulnerability, but it could cause valid offers to be rejected or force users to add unnecessary paths, which may have privacy or usability implications.

Recommended action

Review whether the stricter prior behavior caused any operational issues (e.g., rejected valid offers or forced inclusion of unnecessary blinded paths). No immediate patch deployment is required solely for security, but users relying on BOLT12 offers with issuer IDs and no paths should upgrade to avoid spurious validation failures.

Security signals we found

01

Logic error in cryptographic/identity validation

02

Change relaxes a previously over-strict validation rule

03

Test modified to preserve coverage of the error case

Risk score

Why this scored 51/100

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