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 36 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-prioritybitcoin: don't dereference a NULL transaction from a truncated blockby Kyle 🐆 · 7d0c1849 · Sep 8, 2026 · 2 filesMessage 83 · StrongTriage 0Details
Commit message · Kyle 🐆

bitcoin: don't dereference a NULL transaction from a truncated block

pull_bitcoin_tx_only() returns NULL once the cursor runs out, and the
next line writes through it, so a block that ends mid-transaction
segfaults lightningd instead of being rejected.

The block comes from the chain backend via getrawblockbyheight, so this
needs a bitcoind serving a malformed or unparseable block rather than
anything a peer can send.

Test walks every truncation of the existing test block; it segfaults at
162 bytes without the fix.

83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Lower-prioritydualopend: initialize state->reconnected on startupby Erick Cestari · 8c8fdf4e · Sep 8, 2026 · 1 fileMessage 73 · AdequateTriage 0Details
Commit message · Erick Cestari

dualopend: initialize state->reconnected on startup

state->reconnected was only set to true after do_reconnect_dance(),
so a fresh dualopend never wrote it. A commitment_signed arriving
out of turn in the main loop made handle_commit_signed() read an
uninitialized bool, which UBSan flags as a load of an invalid bool
value.

Default it to false, so an out-of-turn commitment_signed is always
rejected unless we really reconnected.

Changelog-None

Signed-off-by: Erick Cestari <erickcestari03@gmail.com>

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Security candidatechanneld: initialize tx_sigs_allowed on startupby Erick Cestari · c09c4520 · Sep 8, 2026 · 1 fileMessage 73 · AdequateLow 46Details
Commit message · Erick Cestari

channeld: initialize tx_sigs_allowed on startup

peer->tx_sigs_allowed was only set in peer_reconnect() and when we
receive channel_ready, so on a fresh channeld start a stray
tx_signatures arriving before the peer's channel_ready made
handle_unexpected_tx_sigs() read an uninitialized bool. UBSan flags
this as a load of an invalid bool value, and in normal builds the
"warn and disconnect" branch was effectively taken at random.

Default it to false: we only allow an unexpected tx_signatures when
reconnecting.

Changelog-None

73/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Names security-relevant behavior explicitly
Why it was queued
signing boundary
AI analysis · Low 46/100

This commit fixes a bug where a setting that controls whether unexpected transaction signatures are allowed was not initialized when the channel daemon starts. If a peer sent such signatures before the channel was fully ready, the program would read an uninitialized value. In practice this usually caused a random, harmless disconnection, but under undefined-behavior detection it was flagged as a serious bug. The fix simply sets the value to false at startup.

Security candidateci: fix the coverage nightly's profile handlingby cdecker · 5685c9a3 · Sep 8, 2026 · 1 fileMessage 100 · StrongInformational 15Details
Commit message · cdecker

ci: fix the coverage nightly's profile handling

Three things stand between the restored scripts and a nightly that
finishes:

pyln-testing sets CLN_TEST_NAME for every test, so the profiles land in
$CLN_COVERAGE_DIR/<test-name>/ and never directly in $CLN_COVERAGE_DIR.
The coverage-raw/*.profraw upload glob therefore matches nothing, under
if-no-files-found: error. A local three-test run produced 515 profiles,
all of them in subdirectories. Both jobs now hand the directory to
collect-coverage.sh, which walks it and drops what crashed tests left
half-written; that also retires the flattening cp, which could collide
on <pid>-<signature>.profraw between matrix cells.

The build uses the runner's default clang while the report job installed
LLVM 18 and symlinked llvm-profdata to it. There are no compatibility
guarantees for the raw profile format across LLVM releases, so the two
have to come from the same one.

Codecov cannot read a .profdata; it gets the lcov export instead.

Changelog-None
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HGKo3ccLpkH2xFeEXUzEBK

100/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ 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 boundarydocumentation-only discount
AI analysis · Informational 15/100

This commit fixes the project's internal nightly code-coverage CI workflow. It changes how test coverage files are collected, ensures the same LLVM compiler version is used to generate and merge coverage data, and uploads a Codecov-compatible lcov report instead of an unreadable .profdata file. There is no security issue here—just build-script maintenance.

Lower-prioritycoverage: export lcov beside the HTML reportby cdecker · f78f900f · Sep 8, 2026 · 1 fileMessage 86 · StrongTriage 0Details
Commit message · cdecker

coverage: export lcov beside the HTML report

llvm-cov can emit lcov from the profile and binary list the script has
already assembled, so this costs one more invocation and gives the
report a machine-readable form. The nightly needs it: it currently hands
Codecov coverage/merged.profdata, which Codecov cannot parse. It is also
what GitLab's coverage visualization wants, via lcov_cobertura.

Paths are rewritten relative to the repository root, since both
consumers match the report against the repository tree.

Changelog-None
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HGKo3ccLpkH2xFeEXUzEBK

86/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Lower-prioritycoverage: restore the scripts every caller already referencesby cdecker · 662e338f · Sep 8, 2026 · 6 filesMessage 91 · StrongTriage 0Details
Commit message · cdecker

coverage: restore the scripts every caller already references

None of these are new: 4b9cffe183 wrote the documentation and the callers
for them, but .gitignore swallowed the directory itself, so master ships
a coverage feature whose every entry point is a missing file.

- Makefile's coverage-clang-collect and coverage-clang-report call
collect-coverage.sh and generate-coverage-report.sh
- .github/workflows/coverage-nightly.yaml calls the same two, and has
failed at "Merge coverage data" every night since
- doc/COVERAGE.md documents those two plus per-test-coverage.sh,
per-test-coverage-html.sh and cleanup-corrupt-profraw.sh
- doc/contribute-to-core-lightning/contributor-workflow.md points at
clang-coverage-report.sh, which the same commit deleted from
contrib/ after re-pointing the doc at contrib/coverage/

The files are restored unmodified; clang-coverage-report.sh is
byte-identical to the one removed from contrib/.

Changelog-None
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HGKo3ccLpkH2xFeEXUzEBK

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
Lower-prioritygitignore: anchor the coverage entry to the repository rootby cdecker · 35110bd8 · Sep 8, 2026 · 1 fileMessage 91 · StrongTriage 0Details
Commit message · cdecker

gitignore: anchor the coverage entry to the repository root

The entry is unanchored, so it matches contrib/coverage/ as well as the
coverage/ build output directory it was meant for. That is how 4b9cffe183
came to add the coverage documentation, the Makefile targets, the
pyln-testing plumbing and the nightly workflow while silently leaving the
scripts they all call out of the commit.

Changelog-None
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HGKo3ccLpkH2xFeEXUzEBK

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
AI review queuedclnrest: bound YAML deserialization to prevent alias-expansion OOMby daywalker90 · b355315e · Sep 8, 2026 · 3 filesMessage 85 · StrongCritical 85Details
Commit message · daywalker90

clnrest: bound YAML deserialization to prevent alias-expansion OOM

An unauthenticated POST to /v1/{method} with Content-Type: application/yaml
is parsed before the rune is verified. serde_yaml_ng 0.10.0 resolves YAML
anchors/aliases by re-deserializing the anchored node, bounded only by the
number of alias dereferences, not by what each dereference materializes.

Two distinct amplifications are possible: nested sequences of aliases
multiply into billions of nodes, and a single large anchored scalar aliased
many times is copied once per reference. A ~11 KB nested body expands to
~9 GB, and a ~0.5 MB body with a large anchored scalar expands to ~2 GB
while materializing only a few thousand nodes.

Deserialize YAML request bodies with our own budget
(plugins/rest-plugin/src/yaml.rs): a counting serde DeserializeSeed/Visitor
materializes at most MAX_YAML_NODES nodes and at most MAX_YAML_BYTES of
string data, aborting the parse once either bound is exceeded. This keeps
the footprint of any single request to a few MB regardless of the input,
while behavior on legitimate documents is unchanged.

Changelog-Fixed: clnrest: an unauthenticated YAML request using anchors/aliases could exhaust memory and crash the plugin; YAML deserialization is now bounded.
(cherry picked from commit b8c87a2b649620af371cdda578e195199a83f0ec)

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

This update fixes a memory exhaustion flaw in Core Lightning's REST plugin. An attacker could send a small, specially crafted YAML request to the clnrest endpoint that explodes internally into gigabytes of data, crashing the plugin. The patch adds hard limits on how large a YAML request can expand during parsing, so even malicious input stays small.

Lower-prioritylightningd: refuse to RBF a dual-funding open whose candidate confirmedby cdecker · dc62998c · Sep 7, 2026 · 2 filesMessage 83 · StrongTriage 0Details
Commit message · cdecker

lightningd: refuse to RBF a dual-funding open whose candidate confirmed

Promotion doesn't change the channel state -- lockin does -- so a channel
whose funding candidate has confirmed deeply enough for us to commit to it
still sits in DUALOPEND_AWAITING_LOCKIN until the peer's channel_ready
arrives. Nothing stopped an RBF being negotiated in there: the RBF branch
of handle_commit_received() only asserts the state, and
wallet_update_channel() then points channel->funding at the fresh attempt
while the scid stays behind on the tx that was mined.

That is the same mixed state this series set out to close -- an scid from
one candidate, a funding outpoint from another -- reached without any
reconnect, block catch-up or reorg, through an ordinary openchannel_bump
or a peer-initiated RBF. Until the previous commit the lock-in guard
happened to catch it (get_tx_depth() of the never-mined funding is 0), but
that guard had to go, since a startup rescan makes it force-close healthy
channels.

So close it where it starts: refuse an RBF, ours or theirs, once
channel->scid is set. A reorg of the promoted candidate un-promotes it and
clears the scid, so RBF becomes available again for as long as we have no
confirmed candidate -- which is what the new test checks, on both sides of
the reorg.

Reported-by: Nicolas Goline (@nGoline)
Changelog-Fixed: lightningd: dual-funding RBF attempts are now refused once the funding transaction has confirmed, rather than leaving the channel naming one transaction and the short_channel_id another.

83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Lower-priorityaskrene: cut-off arcs with very low probabilityby Lagrang3 · 9ddd2274 · Sep 7, 2026 · 3 filesMessage 80 · StrongTriage 0Details
Commit message · Lagrang3

askrene: cut-off arcs with very low probability

Arcs with very low probability of success are pruned early.
This only applies to the single path solver because the MPP code
uses arc linearization and already the low probability tail is removed.

Changelog-None

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

80/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
Security candidatelightningd: fix crash and busy-loop on invoice with huge expiryby Amperstrand · 8206c0f5 · Sep 5, 2026 · 2 filesMessage 73 · AdequateHigh 74Details
Commit message · Amperstrand

lightningd: fix crash and busy-loop on invoice with huge expiry

invoice's `expiry` parameter is an unclamped param_u64, and far-future
values break the daemon in two different ways:

- expiry >= 2^60 needs more bits than push_varlen_field() can encode in
the bolt11 `x` field, so bolt11_encode() aborts the whole daemon
(FATAL SIGNAL 6).

- far below that (anywhere past ~584k years), the invoice expiration
timer's nanosecond-grain u64 counter overflows: install_expiration_timer()
arms a timer that reads as already due, trigger_expiration() finds
nothing expired, re-arms, and the daemon busy-loops at 100% CPU with
the RPC reply left racing the storm.

Refuse at the parameter stage instead: expiry >= 2^32 seconds (~136
years) returns JSONRPC2_INVALID_PARAMS, keeping a wide margin under both
limits. 2^32 - 1 still works.

Changelog-Fixed: lightningd: fix crash (`FATAL SIGNAL 6`) and a 100% CPU busy-loop when calling `invoice` with an `expiry` too far in the future (now refused above 2^32 seconds).
(cherry picked from commit 009caeb30f216df22f33fcc607d1c21ead859447)

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
memory safety
AI analysis · High 74/100

This commit fixes a bug in Core Lightning's invoice creation command. If a user requested an invoice that expired extremely far in the future (more than about 136 years), the software would either crash the entire payment daemon or get stuck using 100% CPU. The fix simply rejects such large expiry values early, returning a normal error instead of crashing or looping.

Security candidateschemas: make required fields match the codeby daywalker90 · ddbd2963 · Sep 3, 2026 · 50 filesMessage 78 · AdequateLow 37Details
Commit message · daywalker90

schemas: make required fields match the code

Fields added to `required` (source where unconditionally added):
- askrene-create-layer/layers[]. & askrene-listlayers/layers[]:
`biases`, `node_biases` - plugins/askrene/layer.c:1512,1519
- bkpr-channelsapy/channels[]: `fees_in_msat` - plugins/bkpr/channelsapy.c:292
- bkpr-report: `format` (request) - plugins/bkpr/bookkeeper.c:520;
`format-hint` - plugins/bkpr/report.c:499
- datastore & deldatastore: `generation`, `hex` - lightningd/datastore.c:19,20
- decode/offer_recurrence[]: `compulsory_field` - plugins/offers.c:880
- delpay/payments[]: `groupid` - lightningd/pay.c:144
- feerates/onchain_fee_estimates: `unilateral_close_nonanchor_satoshis`
- lightningd/chaintopology.c:788
- fundchannel_start: `channel_type` - lightningd/opening_control.c:321
- help: `format-hint` - lightningd/jsonrpc.c:496
- hook/onion_message_recv & _secret: `unknown_fields`,
`reply_blindedpath.{first_path_key,hops}` - lightningd/onion_message.c:30,31,66
- listchannels/channels[]: `htlc_maximum_msat` - plugins/topology.c:263
- listclosedchannels/closedchannels[]: `channel_type`
- lightningd/closed_channel.c:43
- listconfigs: `configs` - lightningd/configs.c:275
- listpays/pays[]: `amount_sent_msat` - plugins/xpay/listpays.c:183
- listpeerchannels/channels[]: `channel_type` - lightningd/peer_control.c:959,
lightningd/dual_open_control.c:128, lightningd/opening_control.c:48
- listpeers/peers[]: `features` - lightningd/peer_control.c:2619
- multifundchannel: `failed` - plugins/spender/multifundchannel.c:501
- notification/coin_movement: `extra_tags` - lightningd/coin_mvts.c:169
- offer: `force_paths` - lightningd/offer.c:24
- openchannel_init & openchannel_bump: `requires_confirmed_inputs`
- lightningd/dual_open_control.c:3478
- parsefeerate: `perkw` - lightningd/chaintopology.c:823
- pay: `destination` - plugins/xpay/xpay.c:473, plugins/libplugin-pay.c:2144
- reckless (request): `target/subcommand` - plugins/recklessrpc.c:280
- renepay & renepaystatus/paystatus[]: `groupid`, `destination`
- plugins/renepay/json.c:269,278,279
- sendonion: `groupid` - lightningd/pay.c:144; pending branch `message` - :299
- sendpay & waitsendpay: `groupid` - lightningd/pay.c:144
- splice_signed: `outnum` - lightningd/channel_control.c:548
- splicein & spliceout: `psbt`, `txid` - plugins/spender/splice.c:1763,1764

Fields removed from `required` (conditional in code):
- bkpr-editdescriptionbypaymentid/items[]: `description`
- plugins/bkpr/chain_event.c:33-34, plugins/bkpr/channel_event.c:53-54
- createinvoice & sendinvoice: `description` - lightningd/invoice.c:64-65
- hook/invoice_payment: `result` - lightningd/invoice.c:237 (optional);
`failure_message` only used when `result` is absent, now required there
via if/then/else
- invoicerequest (request): `description` - plugins/offers_offer.c:693 (p_opt)
- splice_signed (request): `channel_id` - lightningd/channel_control.c:2511
(p_opt)

Note: bkpr-editdescriptionbyoutpoint keeps `description` required: the
SQL refetch filters credit_msat > 0 (recorder.c:376-382) and the desc was
just stored keyed by outpoint (bookkeeper.c:853).

Adjust plugins and tests to the now-required fields:
- lsps-plugin: peer.features is non-optional (listpeers)
- wss-proxy-plugin: listconfigs' configs object is non-optional
- cln-rpc/src/test.rs

Changelog-None

78/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
signing boundarysigning or wallet pathparser or protocol path
AI analysis · Low 37/100

This commit is a large cleanup of Core Lightning's API schemas, generated RPC bindings, and related plugin code. The stated goal is to make the documented 'required' fields match what the C code actually always produces or expects. In practice it mostly removes 'optional' markers from fields that were already unconditionally emitted, and makes a few truly conditional fields optional. It also changes one plugin hook response schema so that a plugin can reject a payment by returning only a custom failure_message, without a result field. The changes are broad but are described by the project as a schema consistency fix, not a security fix. There is no direct evidence in the commit of an exploitable vulnerability.

Security candidatedoc: document error 313 on every command which can return itby Peter Neuroth · a34b9758 · Sep 2, 2026 · 6 filesMessage 73 · AdequateInformational 15Details
Commit message · Peter Neuroth

doc: document error 313 on every command which can return it

FUND_CANNOT_AFFORD_WITH_EMERGENCY is raised in exactly two places,
`fundpsbt` and `utxopsbt` (wallet/reservation.c), when the node has an
anchor channel and the transaction would not leave `min-emergency-msat`
behind. Note that this does not require `opening_anchor_channel`: any
existing anchor channel is enough.

Every other command which can return it does so by forwarding one of
those two errors verbatim, but only `withdraw`, `fundchannel` and
`multifundchannel` documented it. Add it to the rest:

- `fundpsbt` and `utxopsbt`, which raise it directly;
- `txprepare` and `multiwithdraw`, which call them;
- `upgradewallet`, which calls `utxopsbt` via txprepare_continue() and
had no `errors` section at all, so document -1 and 301 there too.

Changelog-None

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 · Informational 15/100

This commit only updates documentation. It adds error code 313 to the documented error lists for several Core Lightning commands (fundpsbt, utxopsbt, txprepare, multiwithdraw, and upgradewallet). The error code already existed in the code and was already documented for some commands; this change makes the documentation complete and consistent. No code behavior changes.

Lower-prioritydoc: fix wording of the min-emergency-msat error descriptionby Peter Neuroth · d7d1e78c · Sep 2, 2026 · 4 filesMessage 73 · AdequateTriage 0Details
Commit message · Peter Neuroth

doc: fix wording of the min-emergency-msat error description

The three schemas which documented error 313 all read "The
`min-emergency-msat` reserve not be preserved", which is missing a verb.

Changelog-None

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Lower-priorityaskrene: fix set zero bias on persistent layersby Lagrang3 · 23f7e3f3 · Sep 2, 2026 · 2 filesMessage 68 · AdequateTriage 0Details
Commit message · Lagrang3

askrene: fix set zero bias on persistent layers

Changelog-Fixed: askrene: setting an absolute bias value to zero on a persistent layer doesn't result on a NULL pointer dereference.

Reported-by: @whkim0 and @Ahmadsm2005
Suggested-fix: @Andezion
Signed-off-by: Lagrang3 <lagrang3@protonmail.com>

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Security candidatetools/build-release.sh: name the checksum file when verifying the signatureby Peter Neuroth · 8e495707 · Sep 2, 2026 · 1 fileMessage 88 · StrongLow 25Details
Commit message · Peter Neuroth

tools/build-release.sh: name the checksum file when verifying the signature

The --verify path called `gpg --verify ../SHA256SUMS-$VERSION.asc` and
let gpg work out the rest. For a proper detached signature it does find
the sibling file, so this happened to work, but an inline signed .asc
would verify its own embedded payload and exit 0 without ever looking at
the checksums we just compared. Since the exit status is what decides
whether we print "Verified Successfully!", that is not a distinction we
want to leave to gpg.

Changelog-None: docs and release tooling only, nothing user-facing.

88/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Names security-relevant behavior explicitly
Why it was queued
signing boundary
AI analysis · Low 25/100

This commit fixes a release-script check that verifies the cryptographic signature on a file of checksums. Previously, the script only told GPG to verify the signature file itself. If someone replaced that signature file with an inline-signed message containing its own text, GPG would still report success without ever checking the actual checksum file. The fix explicitly names the checksum file so GPG verifies the signature against the intended manifest. This is a hardening change in internal release tooling, not a fix for an active vulnerability in the Lightning node software users run.

Security candidatedoc: pass the manifest explicitly to gpg --verifyby Peter Neuroth · 2dee8699 · Sep 2, 2026 · 2 filesMessage 95 · StrongLow 42Details
Commit message · Peter Neuroth

doc: pass the manifest explicitly to gpg --verify

We told people to drop SHA256SUMS and SHA256SUMS.asc into the same
directory and run `gpg --verify SHA256SUMS.asc`. That relies on gpg
guessing what to check, and the guess only happens for a real detached
signature. If the .asc turns out to be an inline signed message, gpg
verifies the payload embedded in the .asc itself, never touches
SHA256SUMS, and exits 0. It does warn on stderr, but that is easy to
scroll past and worthless to anything checking the exit code.

Spell out both filenames instead, and explain why. Also drop the
"gpg: assuming signed data in 'SHA256SUMS'" line from the sample
output, since gpg has nothing left to assume once we name the file.

95/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Mentions testing or verification✓ Names security-relevant behavior explicitly
Why it was queued
signing boundarydocumentation-only discount
AI analysis · Low 42/100

This commit updates Core Lightning's release documentation to tell users and release managers to run gpg --verify with both the signature file and the manifest file named explicitly. The old one-argument form can silently succeed even if the .asc file is not a proper detached signature over the manifest, because gpg may verify only a message embedded inside the .asc file and never check SHA256SUMS. The change prevents a subtle but real verification bypass in the release process, though it is a documentation-only fix and does not change any code or tooling.

Security candidateclnrest: bound XML nesting depth before parsingby daywalker90 · 304a3034 · Sep 1, 2026 · 2 filesMessage 85 · StrongHigh 72Details
Commit message · daywalker90

clnrest: bound XML nesting depth before parsing

roxmltree's tokenizer is recursive-descent (parse_element ->
parse_content), so Document::parse itself recurses once per element
nesting level and overflows the thread stack on deep input, before any
DOM is built. A deeply nested but otherwise valid XML request could
therefore crash clnrest's worker thread, killing the plugin.

Bound the element nesting depth iteratively on the raw request bytes,
before parsing, and reject anything deeper than 256 levels. The depth
check is itself iterative, so it cannot overflow.

Changelog-Fixed: clnrest: reject excessively-nested XML rather than risk a stack overflow.
(cherry picked from commit af6bd803c0962bdb1d5f2367eb6d3913d442cb54)

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

This update fixes a crash bug in Core Lightning's REST plugin (clnrest). An attacker could send a specially crafted XML request with hundreds of nested tags. The XML parser used by the plugin processes tags by recursive function calls, so extremely deep nesting would exhaust the thread's call stack and crash the plugin worker. The fix pre-scans raw request bytes to count nesting depth without recursion and rejects anything deeper than 256 levels with a 'bad request' error, preventing the crash.

Lower-prioritydocs: fixed linkby enaples · 5df43757 · Sep 1, 2026 · 1 fileMessage 40 · ThinTriage 0Details
Commit message · enaples

docs: fixed link

40/100 · ThinMessage clarity
✓ Subject identifies a change✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
documentation-only discount
Lower-prioritydocs: fixied word mismatchby enaples · 3a8b3e37 · Sep 1, 2026 · 1 fileMessage 47 · ThinTriage 0Details
Commit message · enaples

docs: fixied word mismatch

47/100 · ThinMessage clarity
✓ Descriptive subject✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
documentation-only discount
Lower-prioritydocs: fixing cross-refby enaples · 8bcbf6f5 · Sep 1, 2026 · 1 fileMessage 40 · ThinTriage 0Details
Commit message · enaples

docs: fixing cross-ref

40/100 · ThinMessage clarity
✓ Subject identifies a change✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
documentation-only discount
Lower-prioritydocs: fixing typoe on cln version in which the `dns` prefix has been addedby enaples · dc5228d2 · Sep 1, 2026 · 1 fileMessage 62 · AdequateTriage 0Details
Commit message · enaples

docs: fixing typoe on cln version in which the `dns` prefix has been added

62/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
documentation-only discount
Lower-prioritydocs: fising how to build the debug build. `configure` is a script, not a flagby enaples · fb357279 · Sep 1, 2026 · 1 fileMessage 62 · AdequateTriage 0Details
Commit message · enaples

docs: fising how to build the debug build. `configure` is a script, not a flag

62/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
documentation-only discount
Lower-prioritydocs: fixing docs building for new rpc callby enaples · 9229acc3 · Sep 1, 2026 · 1 fileMessage 57 · ThinTriage 0Details
Commit message · enaples

docs: fixing docs building for new rpc call

57/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
documentation-only discount
Lower-prioritydocs: bump docker image versionby enaples · 7947558c · Sep 1, 2026 · 1 fileMessage 57 · ThinTriage 0Details
Commit message · enaples

docs: bump docker image version

57/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
documentation-only discount