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 1 minute 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-prioritysecurity: remove rustcorp.com contactby Madeline · dd71edd8 · Jun 4, 2026 · 1 fileMessage 62 · AdequateInformational 15Details
Commit message · Madeline

security: remove rustcorp.com contact

62/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Names security-relevant behavior explicitly! No meaningful explanatory body
Why it was queued
documentation-only discount
AI analysis · Informational 15/100

This commit simply updates the project's security contact information. It removes a personal email address (rusty@rustcorp.com.au) and keeps only the corporate security address (security@blockstream.com). There is no code change, no vulnerability fix, and no security flaw introduced.

Security candidatecontrib: add Lagrang3's signing keyby Lagrang3 · 0bdb5b0c · Jun 4, 2026 · 2 filesMessage 60 · AdequateInformational 15Details
Commit message · Lagrang3

contrib: add Lagrang3's signing key

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
Why it was queued
signing boundarydocumentation-only discount
AI analysis · Informational 15/100

This commit simply adds a new developer's PGP public key to the project's list of trusted signing keys. It is an administrative/key-management change, not a code change, and introduces no security vulnerability by itself.

AI review queuedrelease: prepare v26.06by Madeline · a98d2e46 · Jun 4, 2026 · 9 filesMessage 28 · OpaqueInformational 15Details
Commit message · Madeline

release: prepare v26.06

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 is a routine release version bump from 'v26.06rc2' (release candidate 2) to 'v26.06' (final release). It only changes version strings in packaging files and contains no code logic changes, bug fixes, or security-related modifications.

AI review queuedDescribe the changeby Madeline · 55617a52 · Jun 1, 2026 · 1 fileMessage 28 · OpaqueInformational 23Details
Commit message · Madeline

Describe the change

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

This commit only edits the project's CHANGELOG.md file. It adds a one-line note saying the xpay plugin no longer crashes when handling circular route hints in bolt11 invoices, and adds a link to pull request #9174. The actual code fix is not present in this commit, so we can only judge the issue from the changelog description: a crash bug in a payment plugin triggered by unusual invoice route hints.

Lower-prioritycrates: update Cargo.lock dependenciesby lightningd · 18b13b3c · Jun 1, 2026 · 1 fileMessage 68 · AdequateInformational 15Details
Commit message · lightningd

crates: update Cargo.lock dependencies

cargo update output:
Updating crates.io index
Locking 35 packages to latest Rust 1.85.0 compatible versions
Updating asn1-rs v0.7.1 -> v0.7.2
Updating autocfg v1.5.0 -> v1.5.1
Updating base58ck v0.1.0 -> v0.1.100
Updating bitcoin v0.32.9 -> v0.32.100
Removing bitcoin-internals v0.3.0
Updating bitcoin-io v0.1.4 -> v0.1.100
Updating bitcoin-units v0.1.3 -> v0.1.100
Updating bitcoin_hashes v0.14.1 -> v0.14.100
Updating bumpalo v3.20.2 -> v3.20.3
Updating cc v1.2.62 -> v1.2.63
Updating displaydoc v0.2.5 -> v0.2.6
Updating either v1.15.0 -> v1.16.0
Updating http v1.4.0 -> v1.4.1
Updating hyper v1.9.0 -> v1.10.1
Updating jiff v0.2.24 -> v0.2.28
Updating jiff-static v0.2.24 -> v0.2.28
Updating js-sys v0.3.98 -> v0.3.99
Updating log v0.4.29 -> v0.4.30
Updating memchr v2.8.0 -> v2.8.1
Updating mio v1.2.0 -> v1.2.1
Updating pulldown-cmark v0.13.3 -> v0.13.4
Updating reqwest v0.13.3 -> v0.13.4
Updating serde_json v1.0.149 -> v1.0.150
Updating shlex v1.3.0 -> v2.0.1
Updating socket2 v0.6.3 -> v0.6.4
Updating tokio-socks v0.5.2 -> v0.5.3
Updating tower-http v0.6.10 -> v0.6.11
Updating typenum v1.20.0 -> v1.20.1
Updating wasm-bindgen v0.2.121 -> v0.2.122
Updating wasm-bindgen-futures v0.4.71 -> v0.4.72
Updating wasm-bindgen-macro v0.2.121 -> v0.2.122
Updating wasm-bindgen-macro-support v0.2.121 -> v0.2.122
Updating wasm-bindgen-shared v0.2.121 -> v0.2.122
Updating web-sys v0.3.98 -> v0.3.99
Updating zerocopy v0.8.48 -> v0.8.50
Updating zerocopy-derive v0.8.48 -> v0.8.50

Changelog-None

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

This commit is a routine update to the Rust dependency lock file (Cargo.lock). It bumps many third-party libraries to their latest compatible patch or minor versions, including Bitcoin-related crates, HTTP libraries, and various utility crates. There is no indication in the commit message or diff that this update fixes any specific security vulnerability, and no security advisory references are provided.

AI review queuedxpay: don't crash on circular routehints.by Rusty Russell · 703d737d · Jun 1, 2026 · 9 filesMessage 68 · AdequateLow 45Details
Commit message · Rusty Russell

xpay: don't crash on circular routehints.

We earlier fixed the cases of gossipd inserting a same-node channel,
but didn't prevent it for local modifications:

```
cln-askrene: common/gossmap.c:52: nodeidx_htable_add: Assertion `!nodeidx_htable_getmatch_(ht, k, h, v, &i)' failed.
cln-askrene: FATAL SIGNAL 6 (version v26.06rc2-5-gd389c3f-modded)
0x5c50e80dd5cb send_backtrace
common/daemon.c:38
0x5c50e80dd685 crashdump
common/daemon.c:83
0x70a5b1e4532f ???
./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x70a5b1e9eb2c __pthread_kill_implementation
./nptl/pthread_kill.c:44
0x70a5b1e9eb2c __pthread_kill_internal
./nptl/pthread_kill.c:78
0x70a5b1e9eb2c __GI___pthread_kill
./nptl/pthread_kill.c:89
0x70a5b1e4527d __GI_raise
../sysdeps/posix/raise.c:26
0x70a5b1e288fe __GI_abort
./stdlib/abort.c:79
0x70a5b1e2881a __assert_fail_base
./assert/assert.c:96
0x70a5b1e3b516 __assert_fail
./assert/assert.c:105
0x5c50e80dfb44 nodeidx_htable_add
common/gossmap.c:52
0x5c50e80e1066 add_channel
common/gossmap.c:515
0x5c50e80e327c gossmap_apply_localmods
common/gossmap.c:1239
0x5c50e80bed55 do_getroutes
plugins/askrene/askrene.c:620
0x5c50e80bf919 listpeerchannels_done
```

Reported-by: Won Hoi Kim and Ahmad Elmoursi
Changelog-Fixed: Plugins: xpay no longer crashes on circular bolt11 routehints.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
second-pass: broader security terminology
AI analysis · Low 45/100

This commit fixes a crash in Core Lightning's xpay plugin. When processing a BOLT11 invoice containing a circular route hint (where the start and end node are the same), the code would create an invalid self-loop channel and trigger a fatal assertion failure, killing the cln-askrene process. The patch rejects such self-loop channels at multiple layers so the payment plugin can skip them gracefully instead of crashing.

Lower-priorityxpay: print rejected currency correctly.by Rusty Russell · 8db2c28d · Jun 1, 2026 · 2 filesMessage 60 · AdequateInformational 20Details
Commit message · Rusty Russell

xpay: print rejected currency correctly.

Reported-by: Won Hoi Kim and Ahmad Elmoursi
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

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

This commit fixes a minor bug in Core Lightning's xpay plugin where an error message about unsupported foreign-currency offers could print garbage or truncated text instead of the actual currency code (like 'USD'). It is a correctness and usability fix, not a security vulnerability.

Lower-prioritypytest: test xpay for routehint when channel is to itself.by Rusty Russell · 19808e45 · Jun 1, 2026 · 1 fileMessage 75 · AdequateInformational 12Details
Commit message · Rusty Russell

pytest: test xpay for routehint when channel is to itself.

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

75/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Mentions testing or verification
AI analysis · Informational 12/100

This commit only adds a new test case for the xpay payment feature. It checks that xpay can handle a malformed invoice route hint where a node points to itself, and that the payment still succeeds through a normal direct channel. There is no code fix or behavior change in this commit.

AI review queuedrelease: prepare v26.06by Madeline · 071093aa · Jun 1, 2026 · 1 fileMessage 28 · OpaqueInformational 15Details
Commit message · Madeline

release: prepare v26.06

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

This commit is a routine release-preparation change. It only updates the CHANGELOG.md file, renaming the release title from '26.06rc2' to '26.06' and adjusting the release date and tag link. No code, configuration, or security-related content was changed.

Lower-priorityCI: remove focal and add resolute Ubuntu buildsby daywalker90 · a0041a6e · May 28, 2026 · 9 filesMessage 57 · ThinInformational 15Details
Commit message · daywalker90

CI: remove focal and add resolute Ubuntu builds

Changelog-None

57/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
AI analysis · Informational 15/100

This commit updates the project's release automation to drop support for the older Ubuntu 20.04 ('focal') build environment and add support for the upcoming Ubuntu 26.04 ('resolute'). It also fixes a GitHub Actions workflow bug where boolean inputs were being compared as strings. There is no change to the Core Lightning node software itself, and nothing in the commit indicates a security vulnerability or fix.

Security candidatecommon: fix BOLT 12 payer_proof marker-jump via next_marker helperby Vincenzo Palazzo · 54cd1eac · May 27, 2026 · 2 filesMessage 96 · StrongModerate 60Details
Commit message · Vincenzo Palazzo

common: fix BOLT 12 payer_proof marker-jump via next_marker helper

In `lightning/bolts#1295` (head db3eff3a54, 12-offer-encoding.md), the
writer rule (lines 1041-1049) mandates that after a
`proof_omitted_tlvs` entry of `239` the next entry is `1000000000`
(jumping past the signature/payer-proof TLV range 240..999999999),
but the reader rule (lines 1065-1067) only accepts `prev + 1` or
`<included TLV> + 1`. A reader applying the spec literally rejects
a marker sequence the writer rule mandates. The contradiction was
raised on the spec PR:

https://github.com/lightning/bolts/pull/1295#discussion_r3286972971

CLN's reader at `common/bolt12_proof.c` line 379 was a literal
transcription of the bogus reader rule, and CLN's writer at line
115 used `++last_type` which would have emitted `240` (invalid)
after `239` if a real invoice ever reached the boundary.

Fix this by collapsing both writer and reader onto a single helper
`next_marker(prev)` that returns the smallest valid marker number
strictly greater than `prev`. Both sides now reference the same
symbol, so the writer/reader asymmetry that caused this bug is
structurally impossible.

The unit test `run-bolt12_proof_marker_jump` is rewritten as a real
end-to-end test: it builds an invoice with the standard required
fields plus 64 dummy unknown TLVs at odd extension-range types
(1000000001, 1000000003, ..., 1000000127), makes a payer_proof
including only the three required fields, and asserts that
`check_payer_proof` returns NULL. The marker sequence produced ends
with [..., 237, 238, 239, 1000000000], exercising the gap-jump
end-to-end. The test also sanity-checks that 239 appears in the
sequence and that 1000000000 follows it immediately, so the test
cannot go green for the wrong reason.

Existing `run-bolt12_proof` and `run-bolt12_proof_vectors` still
pass with no changes to their behaviour.

Parallel LDK reproduction:
https://github.com/lightningdevkit/rust-lightning/pull/4297
(test `spec_writer_reader_rules_contradict_on_gap_jump` in
lightning/src/offers/merkle.rs, commit 0034c79ae).

Changelog-Fixed: Reader of BOLT 12 payer_proof now accepts the writer-rule-mandated 239 -> 1000000000 marker jump.

Link: https://github.com/lightning/bolts/pull/1295#discussion_r3286972971
Link: https://github.com/lightningdevkit/rust-lightning/pull/4297
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>

96/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✓ Names security-relevant behavior explicitly
Why it was queued
signing boundary
AI analysis · Moderate 60/100

This commit fixes a mismatch in Core Lightning's BOLT 12 invoice proof code. The BOLT 12 specification had contradictory writer and reader rules: writers were required to jump from marker 239 to marker 1000000000, but readers were written to only accept consecutive numbers. As a result, a valid invoice proof created by the rules could be rejected by the same implementation's checker. The fix introduces a single shared helper function so both sides agree on what number comes next, and updates the test to verify the jump is accepted end-to-end.

Security candidatecommon/test: reproduce BOLT 12 PR #1295 marker-jump spec contradictionby Vincenzo Palazzo · 95eec7c2 · May 27, 2026 · 2 filesMessage 100 · StrongLow 37Details
Commit message · Vincenzo Palazzo

common/test: reproduce BOLT 12 PR #1295 marker-jump spec contradiction

Add a failing C unit test that reproduces the BOLT 12 spec
contradiction raised on lightning/bolts#1295.

The writer rule in `12-offer-encoding.md` (lines 1041-1049, head
db3eff3a54) mandates that after a `proof_omitted_tlvs` entry of
`239` the next entry MUST be `1000000000`, because the writer skips
past the signature/payer-proof TLV range (240..999999999).

The reader rule (lines 1065-1067) only accepts an entry that is
`prev + 1` or `<included TLV> + 1`, with no carve-out for the
239 -> 1000000000 jump.

A reader applying the spec literally rejects a marker sequence the
writer rule mandates.

CLN's reader in common/bolt12_proof.c lines 339-388 is a literal
transcription of the bogus reader rule (specifically the
`omitted != prev_omitted + 1` branch at line 379).

Fed the writer-rule-mandated sequence [1, 2, ..., 239, 1000000000]
it returns an error on the 1000000000 entry.

The new test in common/test/run-bolt12_proof_marker_jump.c builds
the minimum tlv_payer_proof needed to reach the marker-validation
loop and asserts check_payer_proof returns NULL.

It is expected to fail on current master, the failure IS the
reproduction. The fix belongs in the spec PR first (amend reader
rule 1065) and only then mirrored into CLN.

The same contradiction is reproduced on the Rust-Lightning side in
lightningdevkit/rust-lightning#4297, test
spec_writer_reader_rules_contradict_on_gap_jump in
lightning/src/offers/merkle.rs (commit 0034c79ae).

Changelog-None

Link: https://github.com/lightning/bolts/pull/1295#discussion_r3286972971
Link: https://github.com/lightningdevkit/rust-lightning/pull/4297
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>

100/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference✓ Names security-relevant behavior explicitly
Why it was queued
signing boundary
AI analysis · Low 37/100

This commit adds a new test file that deliberately fails to prove there is a contradiction in the BOLT 12 specification. The spec's writer rules say a certain list of omitted fields must jump from 239 to 1,000,000,000, but the reader rules reject that exact jump. Core Lightning's code follows the reader rule literally, so it would reject a message that another implementation following the writer rule would produce. The commit itself does not fix the bug; it only reproduces it and is expected to fail until the specification is updated.

Lower-prioritymsggen: fix non-determinism edge caseby daywalker90 · 11b83240 · May 26, 2026 · 3 filesMessage 68 · AdequateInformational 19Details
Commit message · daywalker90

msggen: fix non-determinism edge case

After adding back some fields in 62d1e3e405f722e7363d8e8dbc427039a12c421a
there is one field that was in a different place sometimes in node.proto:
DecodeInvoicePathsPath

Changelog-None

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

This commit fixes a non-determinism bug in the code generator that produces gRPC protocol definitions for Core Lightning. The generator sometimes produced message definitions in a different order, which could cause unnecessary changes in generated files between builds. The fix sorts dictionary keys when merging schemas and iterating over properties. There is no direct security vulnerability here—this is a build reproducibility and code hygiene fix.

Lower-prioritycrates: bump cln-rpc, cln-grpc and cln-plugin to v0.7.0 for releaseby daywalker90 · 55ab6e7d · May 25, 2026 · 6 filesMessage 50 · ThinInformational 15Details
Commit message · daywalker90

crates: bump cln-rpc, cln-grpc and cln-plugin to v0.7.0 for release

Changelog-None

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

This commit is a routine version bump for three Rust software packages (cln-rpc, cln-grpc, and cln-plugin) from version 0.6.0 to 0.7.0. It only changes version numbers in package metadata files. There is no code change, no bug fix, and no security-related content.

AI review queuedtests/fuzz/fuzz-open_channel: fix bad local variable access after longjmpby Matt Whitlock · 4fd17d73 · May 22, 2026 · 1 fileMessage 100 · StrongInformational 17Details
Commit message · Matt Whitlock

tests/fuzz/fuzz-open_channel: fix bad local variable access after longjmp

You can't access a local variable from a point before it was initialized and
expect it to have the initialized value. Move the setjmp() call to after
run_ctx is initialized so that the tal_free() call at cleanup will see the
correct address and not crash.

Fixes: https://github.com/ElementsProject/lightning/issues/9131
Changelog-None

100/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Why it was queued
fuzzing or regression evidencesecond-pass: broader security terminology
AI analysis · Informational 17/100

This commit fixes a crash bug inside a fuzz test, not in the main Core Lightning software. A fuzz test is an automated testing tool that feeds random data to a program to find crashes. The bug occurred because a safety net (setjmp/longjmp) could jump to cleanup code before a local variable (run_ctx) was initialized, causing the cleanup code to use an invalid memory address and crash. The fix simply moves the safety-net setup to after the variable is initialized. This does not affect real Lightning nodes or their users.

Lower-priorityv26.06rc2: update versionsby Rusty Russell · d285d92a · May 22, 2026 · 9 filesMessage 50 · ThinInformational 15Details
Commit message · Rusty Russell

v26.06rc2: update versions

`uv run make update-versions NEW_VERSION=v26.06rc2`

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

50/100 · ThinMessage clarity
✓ Descriptive subject✓ Provides an explanatory body
AI analysis · Informational 15/100

This commit is a routine version bump from v26.06rc1 to v26.06rc2 across several package metadata files. It changes only version strings and contains no functional code modifications, bug fixes, or security-related changes.

Lower-priorityCHANGELOG: mark v26.06rc2by Rusty Russell · 06346c4b · May 22, 2026 · 1 fileMessage 50 · ThinInformational 15Details
Commit message · Rusty Russell

CHANGELOG: mark v26.06rc2

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

50/100 · ThinMessage clarity
✓ Descriptive subject✓ Provides an explanatory body
Why it was queued
documentation-only discount
AI analysis · Informational 15/100

This commit is a routine documentation update that renames the upcoming release candidate in the project's changelog. It changes 'v26.06rc1' to 'v26.06rc2', updates the release date, and adds a release name credit. No code, configuration, or security-related content was modified.

Lower-priorityCHANGELOG.md: put missing CHANGELOG entries in for PR 9136.by Rusty Russell · 2b8684f9 · May 21, 2026 · 1 fileMessage 83 · StrongInformational 15Details
Commit message · Rusty Russell

CHANGELOG.md: put missing CHANGELOG entries in for PR 9136.

Removals should be documented with Changelog-Removed lines, mirroring
the old Deprecated line.

In this case, the `max_total_htlc_in_msat` removal was premature: we try
to give one version AFTER the deprecation period.

That way users can re-enable the feature if they need to, using
`--i-promise-to-fix-broken-api-user=listpeerchannels.max_total_htlc_in_msat`
and we can decide whether to defer removal, re-enable, even un-deprecate
(or get whatever tool they are using fixed).

It's happened a few times in the past that nobody tested with deprecations
disabled, and users got stuck when they upgraded :(

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

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
documentation-only discount
AI analysis · Informational 15/100

This commit only edits the project's CHANGELOG.md file. It adds documentation notes about two previously-merged changes (a plugin notification field and a renamed JSON-RPC value) and a link to a pull request. No code behavior changes, no bug fixes, and no security-related content are present.

Security candidategossipd: be more robust against channel_update spamming.by Rusty Russell · bad9d6d3 · May 21, 2026 · 2 filesMessage 65 · AdequateHigh 76Details
Commit message · Rusty Russell

gossipd: be more robust against channel_update spamming.

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

65/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
Why it was queued
resource exhaustion
AI analysis · High 76/100

This update fixes a memory exhaustion weakness in Core Lightning's gossip daemon. An unauthenticated remote peer could send a flood of fake Lightning channel identifiers, causing the node to keep allocating memory until the process crashed or the host ran out of memory. The patch caps two internal queues at 10,000 entries so memory use stays bounded.

Lower-prioritymsggen: remove most omits and generate them insteadby daywalker90 · 62d1e3e4 · May 21, 2026 · 8 filesMessage 50 · ThinInformational 18Details
Commit message · daywalker90

msggen: remove most omits and generate them instead

Changelog-None

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

This commit is a code-generation cleanup for the Core Lightning message/serialization layer. It removes hand-maintained 'omit' overrides and lets the generator produce more complete protocol definitions for gRPC, JSON-RPC, and Python bindings. The changes add missing fields such as channel type, state change history, invoice paths, and unknown TLV fields to generated API models. There is no direct security fix or vulnerability here; it is a maintenance change that may affect API compatibility and could expose more raw data to callers.

AI review queuedschemas: remove obsolete fields in decodeby daywalker90 · b2fc984c · May 21, 2026 · 7 filesMessage 45 · ThinInformational 16Details
Commit message · daywalker90

schemas: remove obsolete fields in decode

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
parser or protocol pathsecond-pass: security-sensitive path
AI analysis · Informational 16/100

This commit removes several outdated or unused fields from the JSON schemas and generated API definitions for the `decode` command in Core Lightning. It is a cleanup change that narrows the API surface by deleting fields that are no longer produced by the implementation. There is no direct evidence in the commit that this fixes an active security vulnerability.

Lower-prioritycommon: add test that changing any field invalidates a payer proof.by Rusty Russell · 7b7cbf09 · May 21, 2026 · 1 fileMessage 75 · AdequateInformational 12Details
Commit message · Rusty Russell

common: add test that changing any field invalidates a payer proof.

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

75/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Mentions testing or verification
Why it was queued
defensive validation
AI analysis · Informational 12/100

This commit only adds a new test to the codebase. It checks that changing any field in a BOLT12 payer proof breaks the cryptographic signature, which is a defensive correctness test. There is no code fix, behavior change, or vulnerability being patched.

Lower-prioritycommon: fix up test vectors' invoice_merkle_root.by Rusty Russell · 4d089e6f · May 21, 2026 · 1 fileMessage 78 · AdequateInformational 18Details
Commit message · Rusty Russell

common: fix up test vectors' invoice_merkle_root.

Calculate proof_merkle_root properly: we accidentally printed the
`invoice_merkle_root` again here.

Reported-by: @t-bast.
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
fuzzing or regression evidence
AI analysis · Informational 18/100

This change fixes a test-vector generator used only in Core Lightning's own test suite. The generator was accidentally printing the invoice merkle root twice and labeling the second copy as the 'proof merkle root.' The fix computes and prints the actual proof merkle root. This is a test-data bug, not a bug in live payment code, so it does not directly endanger user funds or node security.

Lower-prioritycommon: don't use a dummy zero field for payer proofs.by Rusty Russell · 3f20e58a · May 21, 2026 · 1 fileMessage 65 · AdequateLow 29Details
Commit message · Rusty Russell

common: don't use a dummy zero field for payer proofs.

Spec simplification suggested by @t-bast.

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

65/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Low 29/100

This commit updates how payment proofs are digitally signed in Core Lightning. Previously, the code inserted a fake empty field (type 0, length 0) when computing the proof signature. The new code follows a simplified specification and signs the proof data directly without that dummy field. This is a standards-compliance/spec-simplification change rather than a fix for an active vulnerability.

Lower-prioritycommon/test: don't use an empty note field in test vectors.by Rusty Russell · 53db80ba · May 21, 2026 · 1 fileMessage 75 · AdequateInformational 15Details
Commit message · Rusty Russell

common/test: don't use an empty note field in test vectors.

It's now optional, so make it NULL here.

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

75/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Mentions testing or verification
Why it was queued
fuzzing or regression evidence
AI analysis · Informational 15/100

This commit only updates a test program that prints sample data for BOLT12 invoice proofs. It changes the test to leave the optional 'note' field blank (NULL) instead of using an empty string, matching a recent specification change that says the field may be omitted when empty. There is no change to production code, no security fix, and no vulnerability.