Every captured commit receives deterministic security triage and a separate communication-quality score. Full patches and Ollama analysis are reserved for ranked candidates.
37candidates37AI analyses
70commits · 30 days
159commits · 60 days
824commits · 180 days
1229commits · 365 days
Backfill bands
Aug 5 → Feb 6405 seen5 candidatesComplete
Feb 6 → Jun 6665 seen28 candidatesComplete
Jun 6 → Jul 689 seen4 candidatesComplete
Jul 6 → Aug 569 seen0 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.
This is a large dependency upgrade for the LND Lightning node software. It moves LND from older btcd Bitcoin library packages to new 'v2' packages and updates related wallet and network libraries. The commit is almost entirely mechanical i…
Large dependency upgrade touching core Bitcoin primitives (wire, txscript, chainhash, btcutil, psbt, address)Migration to new v2 module layout with API changes in address handlingPins new upstream releases (btcd 0.26.0, btcwallet 0.17.0, neutrino 0.18.0, lightning-onion 1.4.0) that may include undisclosed fixes
This commit fixes a bug in LND's DNS seed bootstrap code that could crash the node. The code assumed every record in a DNS response was an SRV record, so a non-SRV record (like a normal A or CNAME record) would cause a panic. The fix safel…
Unconditional type assertion panic in DNS fallback pathMissing bounds check on LookupHost result before array indexingMissing network deadline on manually dialed DNS TCP connection
This commit removes a temporary security workaround in a Go module file. The workaround forced the use of a newer, fixed version of a compression library (xz) to avoid a known historical vulnerability. The commit message says the library i…
Removal of a dependency-level vulnerability workaroundReference to historical advisory GHSA-25xm-hr59-7c27 in deleted commentNo code changes; only go.mod cleanup
This commit removes an old workaround in LND's dependency file (go.mod) that pinned a safe version of the 'xz' compression library. The workaround was originally added because another dependency once pulled in a vulnerable version of xz. T…
Removal of a dependency override that was a security mitigation for CVE-2021-29482Commit explicitly references the original GHSA advisory (GHSA-25xm-hr59-7c27)No actual downgrade or re-introduction of the vulnerable module is visible in the diff
This commit is a cleanup-only change that removes unnecessary loop-variable copies in Go test files. Since Go 1.22, loop variables are already scoped per-iteration, so the old `x := x` workarounds are redundant. The change affects only tes…
This commit updates a dependency version in LND's build files. It bumps the internal 'kvdb' submodule from version 1.5.0 to 1.5.1 so that downstream projects importing kvdb directly do not pull in an older, vulnerable telemetry library (Op…
Dependency bump explicitly motivated by a known vulnerability identifier (GO-2026-4394)No source code changes in LND itself; only module metadata updatedVendor describes the root build as already unaffected, limiting direct security impact on LND
This commit only adds new unit tests for an existing helper function in LND's RPC wallet code. It does not change any production logic, so it cannot introduce a security vulnerability or directly fix one in the code being committed. The te…
This commit fixes a bug in LND's remote-signing setup where zero-value previous transaction outputs were wrongly ignored when preparing a PSBT for a remote signer. The most concrete affected use case is BIP-322 message attestation, where t…
Functional denial-of-service in remote-signer BIP-322 workflows due to PSBT rejectionIncorrect zero-value UTXO validation caused legitimate outputs to be droppedFix removes Value check while preserving non-empty PkScript sanity check
This change closes a denial-of-service weakness in LND's onion-message forwarding. Previously, an attacker could create unlimited free peer identities and burn through the global byte-budget reserved for onion messages, starving real peers…
Adds a Sybil-resistance gate requiring funded, non-pending channels for onion message ingressChannel gate runs before per-peer and global rate limiters, preventing no-channel peers from consuming any token budgetIntroduces atomic shadow counter for O(1) hot-path checks on every incoming onion packet
This change adds a hidden switch that lets developers plug in a custom random source when creating MuSig2 signing nonces, mainly so tests can produce exactly the same signatures every time. In normal operation the switch is left empty, so …
New optional custom random source for MuSig2 nonce generationDefault call sites explicitly pass empty option, preserving CSPRNG behaviorCode comments state the option is intended only for reproducible test vectors
This commit only adds new test code and a JSON file of expected test outputs for Taproot Lightning channels. It does not change any production logic, network behavior, or wallet handling. There is no security issue in the commit itself.
This commit adds a test-only feature that lets LND temporarily save the secret random number (nonce) used in MuSig2 signing when running in a special test-vector generation mode. The saved value is automatically erased after one read to pr…
Secret nonce is exposed through a new accessor, but only in test-vector mode gated by customNonceRandNonce is cleared after read to mitigate reuse riskChange is explicitly framed by the commit message as test-only infrastructure for interoperability test vectors
This commit fixes bugs in a test-data generator used by LND, not in the live Lightning node software itself. The generator produces sample HTLC (multi-hop payment) resolution transactions and signatures that other implementations use to cr…
Fixes invalid HTLC-timeout signatures reported by Eclair during cross-validationCorrects signature-to-transaction mapping in test vector generatorReplaces fragile hardcoded witness/script byte offsets with script tokenizer parsing
This commit only adds a new test to the project's test suite. It does not change any production code, user-facing behavior, or network protocol. The new test cryptographically checks that example transactions in the project's test data car…
Adds independent cryptographic signature verification for test vectorsUses txscript.NewEngine with StandardVerifyFlags to mirror on-chain validationVerifies both the commitment transaction and each HTLC resolution transaction
This commit fixes a test-data generator used by the LND Lightning node. Previously, the generator wrote a placeholder zero-value signature into its JSON test vectors for Taproot channels. Now it writes the real partial signature and public…
Fixes incorrect test vector data for Taproot/MuSig2 channel signaturesImproves cross-implementation test coverage (eclair, CLN, etc.)No change to production signing, verification, or consensus paths
This commit only changes test code. It improves the test-vector generator for taproot channels so it records the correct MuSig2 secret nonces, and adds a new test that replays the signing process to confirm the produced signatures match th…
MuSig2 nonce handling corrected in test-vector generatorNew test asserts partial-signature reproducibility and combined-signature correctness against on-chain witnessNo modification of production signing or consensus code
This commit only updates a single JSON file of test vectors for taproot Lightning channels. It replaces placeholder signature data with realistic values, fixes the order of test transactions, and adjusts a dust-limit test case. There is no…
This commit changes only a test file in LND. It makes the test-vector generator produce HTLC signatures using the same nonce math as other Lightning implementations (Eclair, Core Lightning), so cross-implementation test vectors match. Prod…
No production code changed; only test vector generator affectedChange is explicitly described as test-only in commit message and commentsNo memory safety, cryptographic weakness, or privilege boundary change
This commit only updates test data in a single JSON file. It changes the example signatures used in automated tests so they are generated with a standard BIP-340 nonce method instead of an older RFC6979 method. No production wallet code, p…
This is a small code cleanup in LND's cooperative channel-closing logic. It removes a redundant safety check that could never fail and adds more descriptive error messages when closing a Lightning channel. There is no direct security vulne…
Dead-code removal in Taproot/Musig2 cooperative close pathError-message wrapping for debugging; no behavioral changeNo bounds, input validation, or cryptographic changes
Merge pull request #11024 from ziggie1984/invoices-update-validation
invoices: refine update handling
58/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
Why it was security-ranked
boot or update pathmerge-commit duplicate discount
In this commit, we cap each QueryChannelRange response at 100,000 SCIDs across all streamed replies. The existing reply-count limit did not track the aggregate decoded working set, so memory use varied with the encoding and composition of the reply stream.
We count raw SCIDs before timestamp filtering, charge replies using the received encoding type, and release all accumulated range state on any error. This bounds both memory and CPU work while still leaving headroom above the current graph.
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
✓ Descriptive subject✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was security-ranked
documentation-only discount
Routine changewitness beacon: report node-ID next hop to the on-chain HTLC interceptorby bitromortac · 9c4b8bfe · Jul 30, 2026 · 2 filesMessage 73 · AdequateTriage 0Details
Commit message · bitromortac
witness beacon: report node-ID next hop to the on-chain HTLC interceptor
Extend the on-chain interceptor path in the witness beacon to expose a node-ID next hop, mirroring the off-chain path. A node-ID next hop has no outgoing channel of its own, so the beacon reports hop.Exit as the outgoing channel (via ForwardingInfo.NextHopChannel().UnwrapOr) and the requested next node's public key. The RPC boundary maps that to the NodeIDForwardSCID sentinel so the forward is not misread as a final receive.
This is the requested next hop, not the channel eventually selected by non-strict forwarding, so the beacon deliberately does not resolve it against the circuit map.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Add integration tests for an lnd introduction node forwarding a blinded payment whose non-final hops identify the next hop by node ID (next_node_id) rather than a short channel ID, as produced by other implementations:
- testBlindedRouteNextNodeID: the outgoing channel is public. - testBlindedRouteNextNodeIDPrivateChannel: the outgoing channel is private, so the node ID resolves to an SCID alias. - testBlindedRouteNextNodeIDRestart: the introduction node is restarted while the HTLC is in flight, exercising forwarding-package replay and re-decode of the node-ID blinded hop.
83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
htlcswitch: forward node-ID blinded hops via non-strict forwarding
Fixes lightningnetwork/lnd#10937: forward a blinded-route payment when the recipient identifies the next hop by node ID rather than a short channel ID. The htlcPacket carries the decoded next hop to the switch, whose handlePacketAdd resolves the pubkey to the peer's links via getLinks() and lets the existing non-strict forwarding logic load-balance across the peer's channels.
outgoingChanID stays a ShortChannelID. It is the persisted CircuitKey and is set to the selected channel after non-strict selection. The circular route check filters candidate channels before selection.
81/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Routine changehtlcswitch: classify a node-ID forward as a forward eventby bitromortac · a4844ef5 · Jul 30, 2026 · 4 filesMessage 73 · AdequateTriage 0Details
Commit message · bitromortac
htlcswitch: classify a node-ID forward as a forward event
Now that the switch forwards blinded hops identified by node ID, a new problem surfaces in the HTLC event stream. A node-ID next hop has no outgoing short channel ID until non-strict forwarding selects one, so a forward that fails before selection still carries outgoingChanID == hop.Exit. getEventType keys the exit hop off that sentinel, so it misclassifies such a failed node-ID forward as a receive, mislabeling the event streamed via SubscribeHtlcEvents (a forwarding failure reported as a receive failure).
Two paths reach getEventType before an SCID is selected: the fail packet built by failAddPacket and the resolution packet built by resolve, both of which dropped the decoded next hop. Carry outgoingHop into both, and classify a Right (node-ID) outgoingHop as a forward before the hop.Exit check. A node-ID next hop is always a forward, never the exit hop.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Routine changehtlcswitch+lnrpc: report node-ID next hop to the off-chain HTLC interceptorby bitromortac · 32373b76 · Jul 30, 2026 · 3 filesMessage 73 · AdequateTriage 0Details
Commit message · bitromortac
htlcswitch+lnrpc: report node-ID next hop to the off-chain HTLC interceptor
When the switch forwards a blinded hop identified by node ID, it has not yet resolved a concrete outgoing channel at interception time. Expose the next hop to the interceptor: InterceptedForward.Packet() reports the packet's outgoing channel as-is (hop.Exit, since none is selected yet) and carries the requested pubkey in OutgoingNodeID.
At the RPC boundary, forwardInterceptor.onIntercept maps a node-ID hop to the reserved NodeIDForwardSCID sentinel in outgoing_requested_chan_id and the pubkey in outgoing_requested_node_id, so a client switching on a zero channel ID to detect the exit hop does not misread the forward as a final receive. The sentinel is a wire-only concern, applied where the request is built rather than in the switch's internal InterceptedPacket, which stays truthful (OutgoingNodeID.IsSome() is the node-ID discriminator).
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Some implementations (e.g. Core Lightning) identify the next hop in a blinded route by the next node's ID (next_node_id) instead of a short channel ID. Decode such a hop into a node-ID next hop, the Right of ForwardingInfo.NextHop, holding the next node's public key. The switch resolves that key to one of our channels with the peer in a later commit.
BOLT 4 requires a non-final blinded hop to carry exactly one of short_channel_id or next_node_id, so a hop that sets both is rejected.
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
In this commit, we cap each decompressed short channel ID set at 100,000 entries, matching the aggregate range reply budget. The old zlib reader bounded compressed input rather than decoded output, so the two working-set limits could drift apart.
We retain compatibility with protocol-valid compressed replies, reject truncated or corrupt zlib streams, and close the reader on every exit. Boundary, compatibility, corruption, and property tests cover the decoder.
78/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
lnrpc/routerrpc: add outgoing_node_id to HTLC intercept request
A blinded route may identify the next hop by node ID (next_node_id) rather than by channel, in which case there is no sender-specified outgoing channel to report to an HTLC interceptor. Add an outgoing_node_id field to ForwardHtlcInterceptRequest to carry the next hop's public key for these forwards, and document that outgoing_requested_chan_id then holds a reserved sentinel value so that clients switching on a zero channel ID to detect the exit hop do not misclassify the forward as a final receive.
This commit only adds the schema and regenerated stubs; the fields are populated by later commits.
85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
Routine changemulti: represent the blinded forwarding next hop as an fn.Eitherby bitromortac · d28a7176 · Jul 29, 2026 · 12 filesMessage 73 · AdequateTriage 0Details
Commit message · bitromortac
multi: represent the blinded forwarding next hop as an fn.Either
The forwarding next hop is currently always a short channel ID. To allow a blinded route to identify the next hop by node ID instead, change ForwardingInfo.NextHop to fn.Either[lnwire.ShortChannelID, [33]byte], where the Left is the outgoing channel ID and the Right (wired up in a follow-up commit) is the next node's public key.
This commit is a pure representational change with no behavioural effect: every next hop is still a channel ID. The Either is encapsulated behind ForwardingInfo methods so callers never destructure it directly: IsExit() is the single source of truth for exit-hop detection (used by the link and the contract court) and NextHopChannel() yields the outgoing SCID.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Routine changehtlcswitch: key the aux traffic shaper on the evaluated channelby bitromortac · b1667800 · Jul 29, 2026 · 2 filesMessage 73 · AdequateTriage 0Details
Commit message · bitromortac
htlcswitch: key the aux traffic shaper on the evaluated channel
During non-strict forwarding, handlePacketAdd evaluates every candidate channel to the next peer and calls CheckHtlcForward with the sender-requested outgoing SCID (originalOutgoingChanID) for each candidate. That SCID flowed through canSendHtlc into AuxTrafficShaper.ShouldHandleTraffic, so a channel-keyed shaper was asked about the requested channel rather than the candidate actually being evaluated. With parallel channels to a peer this inspects the wrong channel.
Key the shaper on l.ShortChanID() (the channel under evaluation) instead. originalScid is retained solely for createFailureWithUpdate / FailAliasUpdate, so the alias-aware channel_update returned to the sender is unchanged and the real SCID handed to the shaper never leaks onto the wire.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Bumps both pins together: the gateway-action SHA and the runtime_ref it resolves. runtime_ref is pinned explicitly rather than left to the action's default, so bumping only the action would leave the job on the v0.5.0 runtime.
v0.6.0 adds no trigger and no input, so the rest of the shim is unchanged.
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Use strict metadata reads during migration selection so a metadata bucket with a missing metadata/dbp key is not interpreted as the latest DB version.
Recover this state from mandatory DB version 33, the last mandatory version before the v0.20.x releases that could initialize a DB without writing the DB version key. This runs migration 35 without replaying migrations 0 through 33 against a DB that was already created by a modern schema/code path.
After the selected migrations complete, syncVersions writes the latest DB version as usual.
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Routine changechanneldb: preserve db version during initby Elle Mouton · 619913bf · Jul 22, 2026 · 4 filesMessage 76 · AdequateTriage 0Details
Commit message · Elle Mouton
channeldb: preserve db version during init
Keep the top-level bucket creation introduced by PR #9653, since initialized DBs can still be missing newer buckets such as the historical channel bucket.
Do not let the metadata bucket created during init make a fresh DB look initialized. Use strict metadata reads so a missing metadata/dbp key is distinct from a present DB version, then write metadata/dbp for genuinely fresh DBs.
Existing DBs with a metadata bucket but missing metadata/dbp are left for the migration recovery path instead of being treated as latest.
76/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
channeldb: make waiting proof migration repeatable
Allow migration 35 to skip records that are already keyed using the typed waiting proof format. This lets the missing-version recovery path safely run migration 35 on DBs that were created directly by v0.21 and may already contain typed waiting proofs.
Legacy 9-byte records are still migrated and unexpected key shapes still fail.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
InvoiceError is the negative-reply counterpart to an invoice, sent over onion messages at namespace type 68 when the receiver rejects an invoice request or the sender rejects a returned invoice. All three fields are odd (informational): erroneous_field (TLV 1, the offending TLV type), suggested_value (TLV 3, a valid replacement), and error (TLV 5, a UTF-8 explanation). Unlike Offer/InvoiceRequest/Invoice this type has no bech32 form and no Merkle signature — it travels only inside onion message payloads.
73/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Names security-relevant behavior explicitly
The KV route format stores blinded fields independently. Routes accepted through SendToRouteV2 could therefore contain a blinded total amount without encrypted recipient data. The SQL migration treated the total as proof of a blinded hop and bound nil to the required encrypted-data column, preventing LND from starting.
Use encrypted recipient data as the blinded-hop discriminator and normalize only the known total-only case. Reject blinding-point-only records with payment, attempt and hop context instead of exposing an opaque SQL constraint error. Log normalized totals, account for them during migration validation, and cover both cases with regression tests.
78/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
SendToRouteV2 accepts caller-provided routes. It already required recipient-encrypted data when a blinding point was present. However, it copied a blinded total amount independently. This allowed a total-only hop to enter the payment database even though LND did not classify it as blinded.
Require encrypted data when either blinded field is supplied. Cover the rejected combination, a valid blinded total and a regular hop.
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context