EP
← All projectsElements Project

Core Lightning

Modular C implementation of the Lightning Network protocol and node stack.

BitcoinLightning NetworkActive incident
Repository coverage

2334 commits in the local evidence base

Every captured commit receives deterministic security triage and a separate communication-quality score. Security candidates and broader second-pass signals receive full-patch Ollama analysis.

228security candidates319second-pass queue1977AI analyses
103commits · 30 days
223commits · 60 days
710commits · 180 days
1582commits · 365 days
Backfill bands
Aug 5 → Feb 61049 seen37 candidatesComplete
Feb 6 → Jun 6579 seen10 candidatesComplete
Jun 6 → Jul 678 seen1 candidatesComplete
Jul 6 → Aug 5147 seen16 candidatesComplete
Commit communication

Does the history explain itself?

Message quality measures whether a commit identifies its scope, purpose, rationale, testing, and supporting references. It does not change the security-severity score.

71/100 average clarity
631Strong · 80–100
1400Adequate · 60–79
272Thin · 40–59
31Opaque · 0–39
Read the scoring rubric →
Developer activity

Who is changing the project?

Public Git author strings; identities are not independently verified.

DeveloperCommitsCandidatesAnalyzedHigh riskMessage avg.
cdecker331217581
daywalker9019315113471
Níckolas Goline961252376
Amperstrand322278
Rusty Russell96977961173
Sangbida Chaudhuri18537157167
Vincenzo Palazzo19714185
Lagrang3115679170
dovgopoly18016165
Dusty Daemon821378066
ShahanaFarooqui931093063
Peter Neuroth1509110074
Analysis record

Published AI watches

Last scanned 58 minutes ago

Informational 15 AI analysisMessage 85 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

doc: bring lightning-downgrade's version list up to v26.12.

This commit only updates documentation. It adds new version entries to the manual page for the lightning-downgrade tool and mentions the tool in the upgrade guide. No code, database logic, or security behavior is changed.

2e7a9f5aby Ken Sedgwick+9−12 files
No security note in commit
Informational 23 AI analysisMessage 66 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

Makefile: install lightning-downgrade.

This is a packaging/build fix, not a security vulnerability. The `lightning-downgrade` utility was being compiled but accidentally left out of the list of programs installed by `make install`. As a result, official release archives contain…

06ea9ba0by Ken Sedgwick+1−01 file
No security note in commit
Low 27 AI analysisMessage 83 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

wallet: create bwatch tables before backfilling them

This commit fixes a database upgrade bug in Core Lightning. Wallets created with version v26.06.10 were missing two new tables (our_outputs and our_txs) because they skipped the migrations that create them. When users later upgraded, a fol…

Database migration failure could prevent node startup after upgradeFixes missing table creation before data backfillAdds regression test for upgrade path from v26.06.10
ce2a6836by daywalker90+105−02 files
No security note in commit
Informational 15 AI analysisMessage 5 · Opaque
EP Elements ProjectCore Lightning BitcoinLightning Network

v26.12rc1

This commit is a routine version bump from v26.06.10 to v26.12rc1 for Core Lightning. It only updates version strings in packaging files, a changelog, and a lockfile. There are no code changes that introduce, fix, or modify any security-se…

4002c4e9by Níckolas Goline+164−1110 files
No security note in commit
Low 30 AI analysisMessage 68 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

wallet: store payment failure details per groupid

This commit fixes a database bug in Core Lightning where failure details for a payment attempt were being overwritten by later retry attempts that shared the same payment identifier fragment. The fix makes the failure record match on an ad…

Data integrity bug causing incorrect error reporting across payment retry groupsNo memory safety, authentication, authorization, or cryptographic issues presentNo external input is trusted or validated differently
24082c6dby daywalker90+6−34 files
No security note in commit
Low 43 AI analysisMessage 83 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

cln-plugin: do not panic when the log writer task is gone

This commit fixes a bug in Core Lightning's Rust plugin library where a plugin could crash with a panic if it tried to log a message after the internal log-writing task had already stopped, such as during shutdown. The fix makes the plugin…

panic on send failure replaced with stderr fallbacklog message no longer silently dropped on writer task exitunit test added for dropped-receiver scenario
8661ffabby cdecker+29−11 file
No security note in commit
Informational 15 AI analysisMessage 90 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

docs: explain hsmtool HTLC recovery

This commit only adds documentation to the manual page for an existing command-line tool (hsmtool). It explains how to recover funds from old Lightning payment commitments (HTLCs) after losing channel state. There are no code changes, no n…

f90c140dby Sangbida Chaudhuri+85−01 file
No security note in commit
Informational 15 AI analysisMessage 68 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

tests: make test_delpay_works deterministic

This commit only changes a test file to make a flaky test more reliable. It does not modify any production code, so it has no security impact on real users.

a224ca81by daywalker90+16−161 file
No security note in commit
Informational 20 AI analysisMessage 73 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

doc: say that listtransactions gives blockheight 0 for a tx not in a block

This commit only updates documentation to explain that the `listtransactions` command reports a block height and transaction index of 0 when a transaction is not currently in a block (for example, because it hasn't been mined yet or was re…

bc281be3by Peter Neuroth+4−42 files
No security note in commit
Informational 20 AI analysisMessage 50 · Thin
EP Elements ProjectCore Lightning BitcoinLightning Network

fixup! pyln-client: don't crash Millisatoshi.to_approx_str() on zero

This is a small bug fix in a Python helper library used by Core Lightning. The Millisatoshi.to_approx_str() method previously crashed with a math error when converting a zero amount to a human-readable string. The patch makes zero return "…

No security-relevant signals presentFix is a routine correctness/robustness improvement
02612ed5by Amartya Singh+4−31 file
No security note in commit
Moderate 62 AI analysisMessage 73 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

wallet: reject unmodifiable PSBTs in addpsbtoutput/addpsbtinput

This update fixes a crash in two wallet commands, addpsbtoutput and addpsbtinput. These commands let users add extra transaction outputs or inputs to a PSBT (a Bitcoin transaction planning file). If a user supplied a PSBT whose version 2 '…

Daemon crash (assertion failure) on crafted/strict PSBT inputMissing validation of PSBT v2 modifiable flags before mutationUser-controlled input directly passed to libwally without precondition check
42472816by daywalker90+14−12 files
Vendor flagged security relevance
Moderate 59 AI analysisMessage 83 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

tests: show addpsbtoutput/addpsbtinput crash on an unmodifiable v2 PSBT

This commit only adds a new test case that demonstrates two Core Lightning commands, addpsbtoutput and addpsbtinput, crash with an internal assertion when given a v2 PSBT that does not allow adding inputs or outputs. The test is marked as …

Daemon abort due to failed assertion in PSBT helper functionsRPC commands addpsbtoutput and addpsbtinput lack validation of PSBT modifiability flags before calling libwallyPotential denial-of-service vector: any caller able to submit a crafted v2 PSBT can crash lightningd
42e268abby daywalker90+60−01 file
No security note in commit
Informational 20 AI analysisMessage 73 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

pyln-client: don't crash Millisatoshi.to_approx_str() on zero

This commit fixes a minor bug in Core Lightning's Python client library where calling a pretty-printing method on a zero-amount payment would crash with a ValueError. It is a routine correctness fix, not a security vulnerability. There is …

5ebe365dby Amartya Singh+3−12 files
No security note in commit
Moderate 59 AI analysisMessage 83 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

dualopen and splicing: add minimal verification of tx_signatures

This commit adds missing safety checks in Core Lightning when a peer sends signatures for opening or splicing a dual-funded Lightning channel. Before the patch, the software accepted peer-provided transaction witnesses without verifying th…

Missing input validation on peer-provided witness dataBOLT-2 compliance fix for tx_signaturesRejection of empty witness stacks
c6be4f71by Lagrang3+633−97 files
Vendor flagged security relevance
Moderate 54 AI analysisMessage 85 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

channeld: abort_channels no longer fails a channel with a signed splice

This fix prevents a user-issued 'abort channels' command from incorrectly failing a Lightning channel when a splice transaction has already been signed. Previously, the code would pass the latest in-flight splice to a routine that aborts i…

Denial-of-service/availability impact: user-initiated abort could inadvertently fail a funded channelProtocol compliance fix: avoids sending tx_abort after tx_signatures, which BOLT 2 forbidsState-handling bug in splice negotiation lifecycle
c87f5573by Andezion+22−11 file
No security note in commit
Moderate 51 AI analysisMessage 73 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

lightningd: fix crash on mutual close of an unconfirmed dual-funded channel

This update fixes a bug where a specific type of Lightning channel close could crash the node. It only happens when both parties cooperatively close a dual-funded channel that has not yet been confirmed and has gone through a funding bump …

NULL pointer dereference leading to daemon crash (denial of service)Crash occurs in cooperative-close path for unconfirmed dual-funded/RBF channelsFix uses canonical channel funding key instead of splice-only field
555143beby Sangbida Chaudhuri+9−31 file
Vendor flagged security relevance
High 74 AI analysisMessage 73 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

cln-grpc: reject malformed request values instead of panicking

This commit fixes a security bug in Core Lightning's gRPC plugin (cln-grpc). Previously, a malformed request from a gRPC client could crash the plugin: bad public keys, hashes, secrets, channel IDs, or enum values triggered Rust 'unwrap()'…

Denial-of-service via malformed gRPC request causing tonic worker task panicDenial-of-service via std::process::exit(1) in ProofField conversion on missing oneofSilent integer truncation of u16/u8 fields via 'as' casts
b2703436by daywalker90+1558−12135 files
Vendor flagged security relevance
Informational 15 AI analysisMessage 51 · Thin
EP Elements ProjectCore Lightning BitcoinLightning Network

nix: drop protobuf again

This commit removes the protobuf package from the Nix build environment because it is no longer needed. A previous change made the cln-grpc component use its own bundled protoc compiler instead of relying on the system one. The Python bind…

a0459eeeby Peter Neuroth+0−11 file
No security note in commit
Informational 15 AI analysisMessage 73 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

make: check gRPC protos for breaking changes against the last release

This commit adds a new automated check to the project's build process that compares gRPC protocol definitions against the last release to catch accidental breaking changes early. It does not change any runtime code, fix a bug, or introduce…

db5fea70by daywalker90+43−84 files
No security note in commit
Repository ledger

Explore captured commits

Expand any commit for its author, full message, clarity score, changed files, triage signals, analysis, and source link.

Lower-prioritysplice: Update `tx_abort` for mulitple splicesby Dusty Daemon · 52ed23f0 · Mar 20, 2026 · 1 fileMessage 68 · AdequateLow 34Details
Commit message · Dusty Daemon

splice: Update `tx_abort` for mulitple splices

If the channel has multiple splice candidates pending at once, `tx_abort` needs to know which candidate is being aborted.

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Low 34/100

This change updates how a Bitcoin Lightning node cancels in-progress channel funding changes ('splices'). When several splices are pending at once, the node now tells its peer exactly which splice is being cancelled, instead of always assuming it is the most recent one. The commit message says this prevents the wrong splice candidate from being aborted when multiple are pending.

Lower-prioritysplice script: Update tests to use dynamic feesby Dusty Daemon · bb4b8bb2 · Mar 20, 2026 · 4 filesMessage 70 · AdequateInformational 15Details
Commit message · Dusty Daemon

splice script: Update tests to use dynamic fees

Switch to dynamic fees and stop using `force_feerate` on all tests so we get stricter testing around feerates

70/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Mentions testing or verification
AI analysis · Informational 15/100

This commit only changes test files. It updates splicing-related tests to use dynamic fee estimation instead of hardcoded fee rates, removes the `force_feerate=True` flag from splice script tests, fixes a typo in a comment, and splits one large test into smaller named tests. There is no change to production code, so it does not introduce or fix a security vulnerability in the software users run.

Lower-prioritysplice script: Allow `out_ppm` for walletby Dusty Daemon · 434ef5a7 · Mar 20, 2026 · 1 fileMessage 60 · AdequateLow 28Details
Commit message · Dusty Daemon

splice script: Allow `out_ppm` for wallet

To help manage state around dynamic wallets, we allow `out_ppm` to stay on even after its result is calculated.

60/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Low 28/100

This small code change relaxes a validation rule in the splicing feature of Core Lightning. Previously, the software rejected any splice action that included an `out_ppm` (output parts-per-million fee rate) on the final step. Now it allows `out_ppm` to remain set if the action is the on-chain wallet. The commit says this is to help manage state around dynamic wallets. There is no direct evidence in the commit or supplied references that this fixes a security vulnerability; it appears to be a functional or state-management adjustment.

Lower-prioritysplice script: Turn “wallet -> *” into “wallet -> 100%”by Dusty Daemon · 8843e8c2 · Mar 20, 2026 · 1 fileMessage 73 · AdequateLow 35Details
Commit message · Dusty Daemon

splice script: Turn “wallet -> *” into “wallet -> 100%”

Treat the `*` as if it were `100%` for wallets.

100% is a special case that means “100% of needed funds” not “100% of wallet funds.” since taking out all of the wallet’s inputs is wasteful.

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Low 35/100

This commit fixes how the Core Lightning splicing tool interprets a wallet wildcard ('*'). Previously, the '*' value was stored as a special maximum number (UINT32_MAX) and could behave differently than intended. The change forces '*' to mean 'contribute 100% of the funds needed' rather than potentially being misread as a literal huge percentage. This prevents a splice request from accidentally trying to allocate an impossibly large share of funds, which could cause the splice to fail or behave unexpectedly.

Lower-prioritysplice script: Zero out wallet fund requestsby Dusty Daemon · fde4a1ce · Mar 20, 2026 · 2 filesMessage 68 · AdequateInformational 11Details
Commit message · Dusty Daemon

splice script: Zero out wallet fund requests

To prepare for dynamic wallet funding abilities, we pre-process the wallet withdrawls and move them to `needed_funds`. These wallet withdrawl amounts are zero’d out and will have their total withdrawl amount caluclated later on.

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 11/100

This commit is a preparatory code change for a future feature. It adds a new field called needed_funds and moves wallet withdrawal amounts into that field, zeroing out the original values so they can be recalculated later. There is no indication in the commit itself that this fixes a security bug or vulnerability.

Lower-prioritysplice-script: Memleak fix on failureby Dusty Daemon · 017624b6 · Mar 20, 2026 · 1 fileMessage 68 · AdequateInformational 19Details
Commit message · Dusty Daemon

splice-script: Memleak fix on failure

In some splice script failure modes, some memory is leaked.

These don’t occur in normal operation — just when an error occurs.

This cleans up those memory leaks.

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 19/100

This commit fixes two small memory leaks that occur only when a Bitcoin channel-splicing operation fails. The leaks happen in error-handling paths, not during normal successful operation. There is no indication this can be exploited to attack the node or steal funds; it is a cleanup fix for resource management.

Lower-prioritysplice: Let RPC stfu take timeby Dusty Daemon · 07628903 · Mar 20, 2026 · 1 fileMessage 68 · AdequateLow 27Details
Commit message · Dusty Daemon

splice: Let RPC stfu take time

Before we would fail the RPC stfu request if there were pending changes preventing immediate stfu.

Now we relax the policy to allow eventual stfu once the pending changes complete.

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Low 27/100

This change relaxes how a special 'quiet mode' request (called STFU, used during channel splicing in the Lightning protocol) is handled. Previously, if the node couldn't enter quiet mode immediately due to pending updates, it would return an error to the caller. Now it remembers the request and enters quiet mode later once those pending updates finish. This is a behavior/policy change, not a clear security fix, but it removes an error path that could potentially be abused to disrupt or probe splicing operations.

Lower-prioritysplice: multi channel stfu bugfixby Dusty Daemon · 66b1eed9 · Mar 20, 2026 · 1 fileMessage 68 · AdequateModerate 59Details
Commit message · Dusty Daemon

splice: multi channel stfu bugfix

When executing splices with many channels at once the `channel_ids` and `results` arrays could be reallocted via `tal_arr_remove` and `tal_arr_expand`.

Since these values are shared across multiple `splice_command` objects, when these functions reallocated the arrays the other `splice_command` would be referencing an invalid pointer.

The solution is to make an explicit shared object `stfu_req_info` that is shared amoung the `splice_command`s and holds pointers to the arrays so they can mutate.

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Moderate 59/100

This commit fixes a memory-handling bug in Core Lightning's 'splice' feature when stopping multiple payment channels at the same time. Previously, several related commands shared the same list of channel IDs and results. If that list was resized in memory, the other commands could end up pointing to freed/invalid memory, which can cause crashes or unpredictable behavior. The fix puts those shared lists into a single explicit shared object so every command sees the updated, valid pointer.

Security candidatesplice: Fix weight calculations & use opening feerateby Dusty Daemon · 46984883 · Mar 20, 2026 · 6 filesMessage 73 · AdequateLow 42Details
Commit message · Dusty Daemon

splice: Fix weight calculations & use opening feerate

Here we update `psbt_input_get_weight` to allow the caller to specify what kind of input size estimation they would like. Before it was just “zero witness bytes” which we now move to the default behavior and add an assumption option for P2WSH -> 2of2 multisig which is what we typically see in splicing.

At the same time we move channeld over to using the opening feerate estimation instead of the less useful “max feerate.” We make splice script use this same feerate.

After auditing the feerates for these two places against each other and the actually created transaction, we implement some fixes making them all match.

While we’re here, we add relevant debug log messages.

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
signing boundarysigning or wallet path
AI analysis · Low 42/100

This commit fixes how Core Lightning estimates the size (and therefore the required mining fee) of Bitcoin transactions used in channel splicing. Before, the code underestimated input weights for common 2-of-2 multisig splicing inputs and used a less useful 'maximum feerate' as a safety cap. The patch adds better size-estimation options, switches the safety cap to the 'opening feerate,' and aligns the math between the different components that negotiate a splice. The main risk is that incorrect fee math could cause a splice transaction to be rejected by the network (too low fee) or to overpay/underpay, potentially disrupting channel operations or funds movement.

Security candidategossip: Don’t reset channel on stale annoncementby Dusty Daemon · 404bb5a0 · Mar 20, 2026 · 1 fileMessage 78 · AdequateInformational 20Details
Commit message · Dusty Daemon

gossip: Don’t reset channel on stale annoncement

Splicing can create stale announcements where the original funding output gets spent creating spruious “channel_announcement: no unspent txout” warnings.

This happens particuarlly often with agressive splice tests in CI, so we downgrade this from a warning to a log message.

78/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
update trust
AI analysis · Informational 20/100

This change fixes a minor operational bug in Core Lightning's gossip handling. Previously, when a stale channel announcement arrived after a channel was spliced (a process that spends the original funding output), the software treated it as a warning and reset the peer connection. The patch downgrades this to a simple log/trace message and ignores the stale announcement, which matches the Lightning specification. This is a stability improvement, not a security vulnerability fix.

Lower-priorityrust libraries: update bitcoin to 0.32.2by Lagrang3 · bbd1dfb4 · Mar 19, 2026 · 7 filesMessage 68 · AdequateInformational 12Details
Commit message · Lagrang3

rust libraries: update bitcoin to 0.32.2

Boost cln-rpc, cln-grpc, cln-plugin and lsps-plugin versions
to use bitcoin 0.32.2 for compatibility with rust lightning libraries.

Changelog-None.

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 12/100

This commit updates the Rust bitcoin library used by Core Lightning's Rust crates from version 0.31 to 0.32.2 and bumps the versions of several related crates. It is a routine dependency upgrade for compatibility with other Rust Lightning libraries. The commit message does not describe any security bug or vulnerability being fixed, and the diff shows only version and dependency changes, not code fixes.

Lower-priorityflake: fix libstdc++.so.6 not foundby ekzyis · 475085b3 · Mar 19, 2026 · 1 fileMessage 70 · AdequateTriage 0Details
Commit message · ekzyis

flake: fix libstdc++.so.6 not found

also include uv in nix develop shell to run tests

70/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Mentions testing or verification
Lower-priorityflake: fix missing dependencies for makeby ekzyis · 0755c42e · Mar 19, 2026 · 1 fileMessage 90 · StrongTriage 5Details
Commit message · ekzyis

flake: fix missing dependencies for make

Running `nix develop`, `./configure` and then `make` fails with this error:

```
tests/fuzz/fuzz-hmac-sha256.c:8:10: fatal error: openssl/evp.h: No such file or directory
```

After adding `openssl`, without `protobuf`, `make` fails while building
`cln-grpc v0.5.0` because the `protoc` binary is missing.

90/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Mentions testing or verification
Why it was queued
fuzzing or regression evidence
Lower-prioritylightningd: fail in-flight HTLCs upstream when dropping withheld channelby Peter Neuroth · 1c1e83e4 · Mar 19, 2026 · 2 filesMessage 85 · StrongModerate 60Details
Commit message · Peter Neuroth

lightningd: fail in-flight HTLCs upstream when dropping withheld channel

When a withheld channel is force-closed (e.g. due to CLTV timeout),
in-flight HTLCs were being freed without failing them back to the
upstream sender. This caused the upstream peer to eventually
force-close its own channel waiting for a resolution that would
never come.

Iterate over all offered HTLCs on the withheld channel in
drop_to_chain() and fail them back upstream with
permanent_channel_failure before freeing them.

Changelog-fixed: withheld channel now fail back incoming inflight htlc

85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
AI analysis · Moderate 60/100

This commit fixes a bug in Core Lightning where money-transfer promises (HTLCs) stuck in a special 'withheld' channel were silently dropped when that channel was force-closed. Previously, the upstream sender was never told the payment failed, so it would eventually force-close its own channel waiting for a resolution that would never arrive. The patch now explicitly fails those HTLCs back upstream before freeing them, preventing unnecessary channel force-closures and fund lockups.

Lower-prioritylightningd: add preimage to forward_event notificationby Peter Neuroth · 13608c5a · Mar 19, 2026 · 5 filesMessage 73 · AdequateInformational 19Details
Commit message · Peter Neuroth

lightningd: add preimage to forward_event notification

Adds the preimage to the forward_event notification when status is
settled. This can be useful to gather some context when listening to
this event

Changelog-Changed: forward_event notification no has preimage set if
status is settled.

Signed-off-by: Peter Neuroth <pet.v.ne@gmail.com>

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 19/100

This change adds the payment preimage to a plugin notification that fires when a forwarded Lightning payment succeeds. The preimage is already known to the node at that moment, so nothing secret is being exposed that wasn't already available internally. It is a feature enhancement, not a security fix or vulnerability.

Security candidatelightningd: unreserve UTXOs from withheld funding PSBT when dropping channelby Peter Neuroth · 05736f96 · Mar 19, 2026 · 2 filesMessage 85 · StrongLow 28Details
Commit message · Peter Neuroth

lightningd: unreserve UTXOs from withheld funding PSBT when dropping channel

When a channel using a withheld funding PSBT is dropped, we need to
unreserve the UTXOs from the PSBT. Otherwise those funds will remain
blocked until the reservation expires, delaying their availability for
other transactions.

Changelog-Fixed: lightningd: unreserve UTXOs from withheld funding PSBT
on channel close.

85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
Why it was queued
signing boundary
AI analysis · Low 28/100

This fix ensures that when a user opens a 'zero-confirmation' channel whose funding transaction is deliberately withheld and then the channel is closed/aborted, any bitcoin inputs that had been set aside (reserved) for that funding transaction are released back to the wallet promptly. Before this fix, those coins could stay locked up until an automatic timeout expired, making them unavailable for other payments or channel opens.

Lower-priorityreckless: fail reckless rpc if executable failsby Lagrang3 · daa994f6 · Mar 18, 2026 · 1 fileMessage 68 · AdequateInformational 21Details
Commit message · Lagrang3

reckless: fail reckless rpc if executable fails

If the execution of reckless fails for some reason recklessrpc plugin
should return an rpc failure message instead of hanging.

Changelog-Fixed: JSON-RPC: reckless command no longer hangs if reckless executable is not found in PATH.

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 21/100

This commit fixes a bug in Core Lightning's 'reckless' plugin command. Previously, if the external 'reckless' program could not be launched (for example, because it was missing from the system PATH), the RPC command would hang indefinitely instead of reporting an error. The patch makes the plugin return a clear failure message when the program cannot be executed.

Lower-prioritysplice: Fix log messageby Dusty Daemon · 5a910996 · Mar 17, 2026 · 1 fileMessage 43 · ThinInformational 15Details
Commit message · Dusty Daemon

splice: Fix log message

Update log message to match the behavior of the check its logging about.

Changelog-None

43/100 · ThinMessage clarity
✓ Subject identifies a change✓ Provides an explanatory body
AI analysis · Informational 15/100

This commit fixes a log message in Core Lightning's channel daemon so it correctly lists all three message types the code accepts. It also adds a check during peer reconnection and aborts if an error message is received. The changes are defensive hardening and logging corrections, not a fix for an exploitable security vulnerability.

Lower-prioritysplice: Handle CHANNEL_READY during splice resumeby Dusty Daemon · 7068c301 · Mar 17, 2026 · 1 fileMessage 68 · AdequateLow 34Details
Commit message · Dusty Daemon

splice: Handle CHANNEL_READY during splice resume

In some situations Eclair sends CHANNEL_READY before resuming the splice in reestablish. This update allows one of these messages to be processed if it comes in during the splice resume process.

Changelog-None

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Low 34/100

This change fixes a compatibility issue between Core Lightning and the Eclair Lightning node implementation during a channel-splicing reconnect. Previously, Core Lightning would fail the connection if Eclair sent a CHANNEL_READY message while a splice was being resumed. The patch teaches Core Lightning to accept and process that out-of-order message instead of treating it as an error. It is a protocol-handling fix rather than a memory-safety or cryptographic bug, and the commit message frames it as interoperability, not security.

Lower-priorityfixup! splice: Handle CHANNEL_READY during splice resumeby Dusty Daemon · 3acbaf14 · Mar 17, 2026 · 1 fileMessage 50 · ThinLow 34Details
Commit message · Dusty Daemon

fixup! splice: Handle CHANNEL_READY during splice resume

50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Low 34/100

This is a small follow-up fix to a recent splice-resume feature in Core Lightning's channel daemon. It removes a hard abort when an unexpected ERROR message arrives during a splice, and instead lets the daemon handle certain allowed out-of-order messages (like CHANNEL_READY) while waiting for the expected splice messages. The change is defensive and appears aimed at preventing the node from crashing during legitimate splice resume flows.

Lower-priorityfixup! reestablish: Send announcement sigs when askedby Dusty Daemon · 9fb10b89 · Mar 17, 2026 · 1 fileMessage 50 · ThinInformational 23Details
Commit message · Dusty Daemon

fixup! reestablish: Send announcement sigs when asked

50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 23/100

This is a small code cleanup in Core Lightning's channel gossip handling. It changes two helper functions so they no longer return a true/false success value. The actual behavior—when to send announcement signatures and when to stop on errors—appears unchanged. The commit title says 'fixup!' which typically means it is polishing an earlier commit rather than fixing a new bug. There is no direct evidence this is a security fix.

Security candidatereestablish: Send announcement sigs when askedby Dusty Daemon · 60cd23e3 · Mar 17, 2026 · 7 filesMessage 76 · AdequateLow 28Details
Commit message · Dusty Daemon

reestablish: Send announcement sigs when asked

A new TLV in `channel_reestablish` lets our peer request announcement signatures. This updates CLN to (re)send them when requested.

As per splice spec PR https://github.com/lightning/bolts/pull/1160/changes#diff-ed04ca2c673fd6aabde69389511fa9ee60cb44d6b2ef6c88b549ffaa753d6afeR3303-R3308

Changelog-None

76/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Why it was queued
signing boundarysigning or wallet path
AI analysis · Low 28/100

This commit changes how Core Lightning handles reconnection with another Lightning node. It adds a way for the peer to ask for 'announcement signatures' again after reconnecting, and makes the node resend them when asked. This is part of a protocol update for splicing. It is not a traditional security fix; it is a protocol compliance/robustness change that could help prevent channel announcement issues after reconnections or splices.

AI review queuedsplice: RPC error handling fixby Dusty Daemon · d871ff3b · Mar 17, 2026 · 1 fileMessage 80 · StrongModerate 51Details
Commit message · Dusty Daemon

splice: RPC error handling fix

Splice commands can fail because of external reasons, for example our peer rejecting the splice. These external reasons eat the active `splice_command` so we need to stop storing the `splice_command` in callbacks and instead pull it from the `splice_commands` list which automatically removes the object when its consumed.

This corrects a lightningd crash under certain RPC circumstances.

Changelog-None

80/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
Why it was queued
second-pass: broader security terminology
AI analysis · Moderate 51/100

This patch fixes a crash in Core Lightning's lightningd daemon that could occur during splice-related RPC operations. The root cause was that splice command state could be consumed by external failures (like a peer rejecting the splice) while callbacks still held a stale pointer to it. The fix stops storing the splice command pointer inside callback data structures and instead looks it up fresh from the active list when needed, avoiding use-after-free-style crashes.

Lower-priorityaskrene-unreserve: add dev_remove_all optionby Lagrang3 · f7553137 · Mar 17, 2026 · 11 filesMessage 60 · AdequateInformational 22Details
Commit message · Lagrang3

askrene-unreserve: add dev_remove_all option

Changelog-None

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>

60/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Informational 22/100

This commit adds a hidden developer-only option called dev_remove_all to the askrene-unreserve command. When enabled, it clears all capacity reservations managed by the Askrene plugin instead of only unreserving the specific path provided. The feature is marked as hidden and intended for development/testing use. There is no indication in the commit that this fixes a security vulnerability; it appears to be a convenience tool for developers.

Lower-priorityaskrene: log reservation failures during getroutesby Lagrang3 · e34c4a6e · Mar 17, 2026 · 1 fileMessage 73 · AdequateLow 31Details
Commit message · Lagrang3

askrene: log reservation failures during getroutes

Log when a reservation removal failures during getroutes computation.
Failed reservation removals can lead to reservation leaks.

Changelog-None

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Low 31/100

This change adds logging when the Core Lightning routing plugin (askrene) fails to remove a temporary channel-capacity reservation. Previously these failures were silently ignored, which could cause reservations to 'leak' and remain in place longer than intended. The patch only adds diagnostics; it does not fix the underlying removal failure or the leak itself.