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

lightningd: Add extra_tlvs to htlc_accepted_hook

Public commit record

What the developer wrote

Authored by Peter Neuroth

68/100 · Adequate
lightningd: Add extra_tlvs to htlc_accepted_hook

Add serializing and deserializing of the extra tlvs to to the
htlc_accepted_hook to allow plugin users to replace the tlv stream that
is attached to the update_add_htlc message on forwards.

Signed-off-by: Peter Neuroth <pet.v.ne@gmail.com>
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit adds a new plugin hook feature to Core Lightning that lets plugins inspect and replace optional extra data (TLV fields) attached to forwarded Lightning payments. It is a feature addition, not a direct bug fix. The code includes validation of those extra fields and a note that they are not saved to the database. There is no claim in the commit that this fixes a security vulnerability.

Recommended action

Treat as a normal feature review. Verify that validation of plugin-returned extra_tlvs correctly rejects malformed or odd-type TLVs, that memory allocation failures in tal_dup_talarr are handled, and that the documented non-persistence of extra_tlvs does not violate protocol requirements for forwarded HTLCs after restart.

Security signals we found

01

New plugin hook surface added for TLV replacement

02

Validation of plugin-supplied extra_tlvs against known BOLT#1 TLV schema

03

Database persistence deliberately omitted for extra_tlvs with spam/size concern noted

04

No vendor claim of security relevance in commit message or diff

Risk score

Why this scored 38/100

Our methodology →
Potential impact 8/30
Exploitability 7/25
Stealth signal 6/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.