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 51 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-prioritynix: add shellcheck to development shellby niftynei · 64ca2a34 · Aug 22, 2026 · 1 fileMessage 68 · AdequateTriage 0Details
Commit message · niftynei

nix: add shellcheck to development shell

Add shellcheck to nix develop to complete checks without requiring a
separate host installation.

Changelog-Added: nix: development shells now include `shellcheck`.

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Lower-prioritycommon: reject dns: addresses which are not hostnamesby Níckolas Goline · 8e316709 · Aug 21, 2026 · 2 filesMessage 83 · StrongTriage 5Details
Commit message · Níckolas Goline

common: reject dns: addresses which are not hostnames

fromwire_wireaddr() now ignores a DNS descriptor which isn't a hostname, but
parse_wireaddr() still accepts one: it only checks the length. So an
announce-addr which fails is_dnsaddr() is accepted at startup, gossiped, and
then dropped by every peer which receives it, with nothing in our own logs to
say the address is useless.

Apply the same rule where the operator can see the answer. A name which
passes is_dnsaddr() is unaffected; a name which fails it was already being
ignored by everyone.

This also restores the towire/fromwire round trip which tests/fuzz/fuzz-wireaddr
asserts, and which the fromwire-side check alone broke:

Assertion failed: (fromwire_wireaddr((const u8 **)&output_buffer, &len,
&decoded_wa) == FROMWIREADDR_OK),
function run, file fuzz-wireaddr.c, line 37.

Changelog-Changed: config: `dns:` addresses which are not valid hostnames are now rejected at startup instead of being silently ignored by peers.
(cherry picked from commit 0613903e013c8d1f2e634b63af332cbd24804f55)

83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
fuzzing or regression evidence
Lower-prioritypytest: a revoked commitment paying our shutdown script is still a cheatby Níckolas Goline · 9bd6c849 · Aug 21, 2026 · 1 fileMessage 73 · AdequateTriage 0Details
Commit message · Níckolas Goline

pytest: a revoked commitment paying our shutdown script is still a cheat

A peer that opened without an upfront_shutdown_script can name any script in
its shutdown, including the to_local of a commitment we have already revoked.
Publish that commitment and every output matches a shutdown script we have on
record, so classifying a funding spend by its outputs alone treats it as a
mutual close and the penalty never fires.

Check we recognise it as the revoked commitment it is, sweep it with
OUR_PENALTY_TX, and that the peer's own to_local sweep is dead by the time its
CSV matures.

(cherry picked from commit f05bc959d11b9fd08d9e1f6c2d24a05e59a35ce2)

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI review queuedCCAN: update after 32-bit and MacOS cleanups.by Rusty Russell · 26ccced5 · Aug 21, 2026 · 34 filesMessage 78 · AdequateLow 47Details
Commit message · Rusty Russell

CCAN: update after 32-bit and MacOS cleanups.

The addition of GitHub CI to CCAN, especially 32 bit builds and MacOS tests
lead to more refinement (mostly in tests), so this catches up to that.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

78/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
second-pass: unusually broad change
AI analysis · Low 47/100

This commit updates the CCAN utility library used by Core Lightning. Most changes are test fixes and portability cleanups for 32-bit and macOS builds. The one genuinely security-relevant code change is in the file-descriptor passing helper (fdpass_recv): it now uses a larger ancillary buffer and also checks the MSG_CTRUNC flag, so a malicious or misbehaving peer cannot force the process to leak file descriptors by sending more fds than expected. A second change in the I/O engine fixes a case where a write-side EPIPE could leave a connection's read side permanently disabled. The commit message itself does not frame these as security fixes.

Security candidatecommon: bound JSON nesting depth when parsingby Níckolas Goline · 83f92e4b · Aug 20, 2026 · 2 filesMessage 85 · StrongHigh 80Details
Commit message · Níckolas Goline

common: bound JSON nesting depth when parsing

json_next() and the JSMN result validator each recurse once per level of
nesting, so a sufficiently deeply nested (but otherwise valid) JSON document
could exhaust the C stack. Bound the nesting depth in json_parse_input(),
before either recursive walk runs, and reject anything deeper. The depth
check is itself iterative, so it cannot overflow.

Changelog-Fixed: JSON-RPC: reject excessively-nested JSON rather than risk a stack overflow.
(cherry picked from commit b940aa32b7b385b4139bbc9251b1cca044c496cc)

85/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Names security-relevant behavior explicitly
Why it was queued
memory safety
AI analysis · High 80/100

This commit fixes a stack-overflow risk in Core Lightning's JSON parser. Before the fix, an attacker could send a valid JSON-RPC message containing thousands of nested brackets or braces. The parser's own helper functions used recursion for each nesting level, so such input could crash the process by exhausting the C call stack. The patch adds an iterative depth check (maximum 256 levels) before any recursive walk, rejecting over-nested input safely.

Lower-prioritylightningd: recompute the promoted channel's balances on lockinby cdecker · d4ee52a2 · Aug 20, 2026 · 1 fileMessage 73 · AdequateTriage 0Details
Commit message · cdecker

lightningd: recompute the promoted channel's balances on lockin

Review follow-up to the dual-funding RBF fix.

update_channel_from_inflight() moves funding/funding_sats/our_funds and
last_tx over to the promoted candidate, but our_msat, msat_to_us_min and
msat_to_us_max are only ever written for the *latest* RBF attempt
(wallet_update_channel()). If openchannel_bump changed a side's
contribution on attempt C but attempt B is the one mined, we promoted to
B's funding with C's balances, and peer_start_channeld() handed channeld
a balance the peer doesn't agree with -- mismatched commitment, force
close.

At promotion recompute our_msat from the promoted inflight's our_funds
and reset min/max to it: a fresh channel has no payment history, so
min == max == our_msat.

Changelog-None
Co-Authored-By: Ken Sedgwick <ken@bonsai.com>

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Lower-prioritylightningd: drop the dual-funding lock-in guard, and un-promote on reorgby cdecker · e4a25f2a · Aug 20, 2026 · 1 fileMessage 83 · StrongTriage 5Details
Commit message · cdecker

lightningd: drop the dual-funding lock-in guard, and un-promote on reorg

Review follow-up to the dual-funding RBF fix.

The belt-and-braces lock-in guard in handle_channel_locked() force-closed
healthy channels: get_tx_depth() reads our_txs.blockheight, which every
startup zeroes for the whole --rescan window while peer reestablish runs
concurrently (setup_peers() precedes begin_topology()). A dual-funded
channel that reached minimum_depth while its peer was offline, then
reconnected before the rescan re-confirmed the funding block, hit
"Tried to lock in funding tx ... which we have not seen mined" and was
unilaterally closed. The scid/funding pair only ever moves together
(opening_depth_cb), so by the time both sides are ready the funding tx
was seen mined; drop the guard entirely.

The reorg path also left channel->scid/channel->funding committed to a
candidate that was reorged out: opening_reorged_cb cleared only the
inflight's scid, so reestablish still claimed local_channel_ready against
a dead scid. If the reorged inflight is the promoted one, un-promote it
by clearing the scid -- its mere presence is what makes reestablish claim
local_channel_ready -- and save explicitly, since channel_set_scid()
doesn't persist. channel->funding is deliberately left alone: rolling it
back to the newest inflight would also rewrite last_tx (that's what
update_channel_from_inflight() does), pointing the channel at a candidate
that was never mined -- this very bug, reached through the reorg path
instead of through a reconnect. Leaving it be keeps it naming the only
candidate we ever saw mined, so channel_inflight_find() still resolves at
reinit, and a candidate mining re-promotes properly.

That un-promote is a new way for channel->scid to be NULL at lock-in, and
dualopend never un-latches channel_ready[LOCAL]: it is set on
DEPTH_REACHED and only reset by a reinit, which seeds it from
channel->scid. So on a live connection the pre-reorg latch combines with
the peer's re-arriving channel_ready and reaches handle_channel_locked()
with no scid, where the assert() would take the whole node down -- and a
bare return would leave the channel awaiting lock-in forever, the
surviving dualopend having exited with its latch spent. Restart dualopend
over the peer fd it handed us instead (from_abort=true, since we're still
connected), seeded with the truth: local ready = scid != NULL = false,
remote ready = latched. When a candidate re-mines, the depth callback
fires DEPTH_REACHED and lock-in completes.

Add regression tests for both: test_lockin_restart_rescan_race and
test_lockin_reorg_after_promotion.

Changelog-None
Co-Authored-By: Ken Sedgwick <ken@bonsai.com>

83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
fuzzing or regression evidence
Security candidatelightningd: allow openchannel_abort up until we send tx_signaturesby Sangbida Chaudhuri · 266379da · Aug 20, 2026 · 2 filesMessage 91 · StrongLow 34Details
Commit message · Sangbida Chaudhuri

lightningd: allow openchannel_abort up until we send tx_signatures

Previously we refused to abort once commitments were exchanged, but
per BOLT #2 an abort is fine as long as we haven't sent our
tx_signatures yet. Also adds a test for the case where the opener
aborts after the accepter has already sent theirs.

Changelog-Changed: JSON-RPC: `openchannel_abort` can now abort an open after commitments are secured, as long as `tx_signatures` has not been sent.
Co-authored-by: Cursor <cursoragent@cursor.com>
(cherry picked from commit dd09e5129f2b4f3516940f1a0d00e822f9e72dd4)

91/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Why it was queued
signing boundary
AI analysis · Low 34/100

This change loosens when a user can cancel an in-progress Lightning channel opening. Previously, the software blocked cancellation once both sides had exchanged commitment signatures, even though the protocol rules allow cancellation until the opener has actually sent their transaction signatures. The fix lets users abort later in the process and adds a test confirming the correct behavior. It is a protocol-correctness and usability improvement rather than a fix for an active attack.

Security candidatedualopend: abort politely instead of erroring when we haven't signedby Sangbida Chaudhuri · ec4bcd14 · Aug 20, 2026 · 2 filesMessage 73 · AdequateLow 37Details
Commit message · Sangbida Chaudhuri

dualopend: abort politely instead of erroring when we haven't signed

If lightningd asks us to fail before we've sent tx_signatures, a
clean tx_abort is the neighbourly thing to do (the spec says so too).
And once the abort completes, the channel is safe to forget.

Co-authored-by: Cursor <cursoragent@cursor.com>
(cherry picked from commit 4a232fca5a7f83f2b6dccd0062fd4b1be6cf1e3b)

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

This change fixes how Core Lightning handles an early shutdown during a dual-funded channel opening. Previously, if the node was asked to fail before it had sent its transaction signatures, it would treat it as a fatal error and remember the channel unnecessarily. Now it sends a polite 'tx_abort' message and forgets the channel, which is what the Lightning protocol specification recommends. This avoids leaving half-open channels stuck in memory and reduces unnecessary error handling.

Security candidatelightningd: don't forget a channel once we've sent tx_signaturesby Sangbida Chaudhuri · 8f4f5515 · Aug 20, 2026 · 3 filesMessage 81 · StrongModerate 60Details
Commit message · Sangbida Chaudhuri

lightningd: don't forget a channel once we've sent tx_signatures

Once our sigs have gone out, BOLT #2 says to hold onto the channel
until an input of the funding tx has been spent. Guard the deletion
paths on the new i_sent_sigs flag so an abort or error after that
point keeps the channel around.

Changelog-Fixed: Protocol: dual-fund: we now remember the channel when the peer sends `tx_abort` after we have already sent our `tx_signatures`, as required by BOLT #2.
Co-authored-by: Cursor <cursoragent@cursor.com>
(cherry picked from commit 435fec73acbba17bf9d14bcc72ea088f2beaaf01)

81/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Why it was queued
signing boundary
AI analysis · Moderate 60/100

This patch fixes a bug in Core Lightning's dual-funded channel opening. Previously, if the peer sent an 'abort' message or an error occurred after we had already sent our transaction signatures, the node might forget the channel. Because those signatures could let the peer broadcast the funding transaction on the Bitcoin network, forgetting the channel could leave the node unaware of funds it had committed to. The fix makes the node remember the channel until the funding transaction's inputs are spent, as required by the Lightning protocol specification.

Security candidatedualopend: keep track of whether we sent our tx_signaturesby Sangbida Chaudhuri · 742a8d3a · Aug 20, 2026 · 3 filesMessage 85 · StrongLow 41Details
Commit message · Sangbida Chaudhuri

dualopend: keep track of whether we sent our tx_signatures

Add local_funding_sigs_sent to tx_state, set when we write our sigs to
the peer (both the normal path and the reconnect dance). Pass it back
in over dualopend_reinit, since dualopend restarts on every reconnect
and would otherwise start from scratch.

Co-authored-by: Cursor <cursoragent@cursor.com>
(cherry picked from commit c654559c471c11e699e39cb2b9eb2d512701911e)

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 41/100

This change fixes a bookkeeping problem in Core Lightning's dual-funding channel opener (dualopend). The daemon now remembers whether it already sent its transaction signatures to the peer, and carries that memory across reconnects. Without this, after a reconnect the opener could forget it had already sent signatures and behave as if it hadn't, likely causing protocol confusion, duplicate sends, or a stuck channel open. The patch is small and defensive; the commit message does not call it a security fix, but it clearly corrects state-handling behavior that could affect funds safety.

Security candidatelightningd: remember that we've sent tx_signatures for an openby Sangbida Chaudhuri · 6b968776 · Aug 20, 2026 · 3 filesMessage 73 · AdequateLow 28Details
Commit message · Sangbida Chaudhuri

lightningd: remember that we've sent tx_signatures for an open

Set i_sent_sigs when dualopend tells us the sigs went out,
and add a little helper to ask "did we sign this yet?"
No behavior change... yet.

Co-authored-by: Cursor <cursoragent@cursor.com>
(cherry picked from commit 8a31f7296fcff1c444be4c6e86eac1dc1c912c57)

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

This commit adds a small bookkeeping flag so the Core Lightning node remembers whether it has already sent transaction signatures while opening a channel. The commit message explicitly says there is 'No behavior change... yet,' meaning this is a preparatory patch for a future fix rather than a security fix itself. It does not change how funds are handled today.

AI review queuedwallet: let wallet_inflight_save update i_sent_sigsby Sangbida Chaudhuri · d502d418 · Aug 20, 2026 · 1 fileMessage 73 · AdequateLow 30Details
Commit message · Sangbida Chaudhuri

wallet: let wallet_inflight_save update i_sent_sigs

Turns out we never persisted this flag after the fact.
We're about to start relying on it, so save it properly.

Co-authored-by: Cursor <cursoragent@cursor.com>
(cherry picked from commit 7a01495359add9c1f1160440fee5335c4a5608f1)

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Low 30/100

This commit fixes a bug where a flag called i_sent_sigs was not being saved to the database when updating a channel funding inflight. The flag tracks whether a node has already sent signatures for a funding transaction. Because the flag was not persisted, a node could forget it had sent signatures after a restart, which could lead to incorrect behavior in upcoming code that relies on this flag. The fix is a one-line SQL update change to also write the i_sent_sigs column.

Lower-priorityaskrene: make the timestamp-ordered trimming logic stop at the first retained entry.by w3lld1 · af72406a · Aug 20, 2026 · 1 fileMessage 65 · AdequateTriage 0Details
Commit message · w3lld1

askrene: make the timestamp-ordered trimming logic stop at the first retained entry.

And clean up the AMOUNT_MSAT(-1ULL) to a clearer UINT64_MAX, correct spacing in if.

65/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
Lower-prioritylibplugin: handle weird ids, not just weird methods when creating our own JSON ids.by Rusty Russell · 4c361c03 · Aug 20, 2026 · 1 fileMessage 73 · AdequateTriage 0Details
Commit message · Rusty Russell

libplugin: handle weird ids, not just weird methods when creating our own JSON ids.

Any JSON-RPC user (or commando, with a rune) could feed in a weird ID,
causing us not to recognize the response and not finish.

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Lower-priorityoffers: avoid potential expiry underflow when issuing invoices.by Rusty Russell · 353b91c0 · Aug 20, 2026 · 1 fileMessage 81 · StrongTriage 0Details
Commit message · Rusty Russell

offers: avoid potential expiry underflow when issuing invoices.

Issue #9378 notes that the absolute-expiry subtraction can underflow when an offer is already expired. Clamp that case to a one-second relative expiry so zero retains its cancellation meaning.

[ Added comment --RR ]

81/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Lower-prioritylightningd: remove dead code.by w3lld1 · 9dc16610 · Aug 20, 2026 · 1 fileMessage 58 · ThinTriage 0Details
Commit message · w3lld1

lightningd: remove dead code.

Left over from 4348d8acf00154b44a49f5b97dd7bf3267c1bbee ("lightningd:
don't do previous invoice checking in createinvoicerequest.")

58/100 · ThinMessage clarity
✓ Descriptive subject✓ Provides detailed explanatory context
Lower-priorityaskrene: don't pass unused ctx arg to fromwire...impressionby w3lld1 · 6269ea96 · Aug 20, 2026 · 4 filesMessage 50 · ThinTriage 0Details
Commit message · w3lld1

askrene: don't pass unused ctx arg to fromwire...impression

50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Lower-priorityaskrene: fix up documentation for impressions.by w3lld1 · dcb0b426 · Aug 20, 2026 · 5 filesMessage 45 · ThinTriage 0Details
Commit message · w3lld1

askrene: fix up documentation for impressions.

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI review queuedcommon: minor typo fixesby w3lld1 · 273d7f02 · Aug 20, 2026 · 2 filesMessage 28 · OpaqueInformational 15Details
Commit message · w3lld1

common: minor typo fixes

28/100 · OpaqueMessage clarity
✓ Subject identifies a change! No meaningful explanatory body
Why it was queued
second-pass: opaque commit message
AI analysis · Informational 15/100

This commit only fixes typos and comment style. It changes two C-style comments from // to /* */ and corrects a grammar error in a documentation comment ('element' to 'elements'). There are no code behavior changes, no bug fixes, and no security relevance.

Lower-prioritytests: don't use io logs for commando's oversized replyby Níckolas Goline · 3188d082 · Aug 19, 2026 · 1 fileMessage 83 · StrongTriage 0Details
Commit message · Níckolas Goline

tests: don't use io logs for commando's oversized reply

test_commando needs a reply over 65535 bytes to exercise commando's
multi-message split, and used getlog level=io to get one. getlog no
longer serves that level, so read back a 100k datastore entry instead.

(cherry picked from commit 9373b5fb710a898849ecc51771cea7cfc64c3511)

83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Lower-prioritysql: free strmap internal nodes on plugin shutdownby Andezion · f76225f0 · Aug 19, 2026 · 1 fileMessage 50 · ThinTriage 0Details
Commit message · Andezion

sql: free strmap internal nodes on plugin shutdown

Changelog-None

50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI review queuedpyln-testing: truncate long testnamesby Peter Neuroth · c4fe4cba · Aug 19, 2026 · 2 filesMessage 90 · StrongInformational 20Details
Commit message · Peter Neuroth

pyln-testing: truncate long testnames

Postgres truncates identifiers at 63 bytes. This can lead to
'DuplicateDatabase' errors for tests with long names, as the nonce and
the node_id may collapse. This commit truncates the testname in favor of
the node_id and the nonce, to avoid conflicting db names.

Changelog-None

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

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
second-pass: broader security terminology
AI analysis · Informational 20/100

This change fixes a test-infrastructure bug in Core Lightning's Python testing helpers. When running tests against a PostgreSQL database, very long test names could be silently shortened by PostgreSQL, causing different test runs or nodes to accidentally share the same database name and fail with a 'DuplicateDatabase' error. The patch makes sure the unique parts of the name (node ID and random nonce) are kept while the long human-readable test name is shortened instead. It is a reliability fix for the test suite, not a security vulnerability in the live lightning node software.

Security candidatecommon: explain why mlock() failed instead of a bare abort.by Matt Watson · ef18b769 · Aug 18, 2026 · 1 fileMessage 85 · StrongInformational 21Details
Commit message · Matt Watson

common: explain why mlock() failed instead of a bare abort.

mlock_tal_memory() aborts when sodium_mlock() fails, with no output at
all. The operator sees only "lightning_hsmd: FATAL SIGNAL 6" and has no
indication of the cause.

This is easy to hit. FreeBSD jails deny mlock(2) unless the jail has
allow.mlock set, and containerized Linux deployments hit the same wall
against RLIMIT_MEMLOCK. In both cases the failure is indistinguishable
from a crash.

Keep the abort -- falling back to unlocked memory would silently leave
the secret in swappable pages -- but say what failed and how to grant
the privilege.

The message goes to stderr via warnx() rather than status_failed():
common/utils.c is linked into every binary, and mlock_tal_memory() is
also reached from common/hsm_secret.c, where no status fd need exist.
stderr is the one channel available at every call site, and warnx()
gives it the same daemon-name prefix as the crashdump() line that
follows.

Changelog-Fixed: Report the cause when locking secret memory fails, instead of aborting with no diagnostic.

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
credential or privilege state
AI analysis · Informational 21/100

This change only improves the error message shown when the program aborts because it cannot lock secret memory. It does not fix a security vulnerability, change behavior, or remove the abort. The program still crashes, but now tells the operator why and how to grant the needed permission.

Security candidatewallet: exclude immature coinbase outputs from fee rescue selectionby cdecker · 34883ff7 · Aug 18, 2026 · 2 filesMessage 73 · AdequateModerate 60Details
Commit message · cdecker

wallet: exclude immature coinbase outputs from fee rescue selection

wallet_utxo_boost() selects wallet-funded inputs for anchor and HTLC fee
rescue transactions, but unlike ordinary coin selection it never applied
the coinbase-maturity check. An immature coinbase could therefore be the
sole rescue input, producing a consensus-invalid transaction that Bitcoin
Core rejects as a premature coinbase spend.

Apply the same utxo_is_immature() filter used by deep_enough()/ordinary
selection. Since both call sites pass the live blockheight and rebuild on
reorg/RBF, maturity is revalidated at construction and after reorgs.

This makes test_anchorspend_ignores_immature_coinbase pass, so its xfail
marker is dropped.

Changelog-Fixed: Wallet: anchor and HTLC fee rescue no longer select immature coinbase outputs, which produced a transaction bitcoind rejects
(cherry picked from commit 5e79baacc1c900c29acfae852f6233095872e309)

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
defensive validationconsensus or confidential-proof validationsigning or wallet path
AI analysis · Moderate 60/100

This fix prevents Core Lightning from trying to use freshly created bitcoins (immature coinbase rewards) as emergency funds for fee-bump transactions. Such a transaction would be invalid under Bitcoin's rules and would be rejected by the network, potentially leaving a channel unable to quickly bump fees during congestion. The patch adds the same maturity check already used for normal spending.