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.
Message quality measures whether a commit identifies its scope, purpose, rationale, testing, and supporting references. It does not change the security-severity score.
This commit rewrites how a Lightning wallet talks to Esplora block-explorer servers so that many status checks happen in parallel instead of one at a time. It is a performance/refactoring change. There is no direct evidence in the commit t…
Concurrency/timing change in transaction confirmation logicNew inconsistency check preserved when a previously-confirmed tx is reported unconfirmedAdded defensive error path for missing pre-fetched block status
This change stops the Electrum-based transaction sync client from downloading the very transaction that created an output it is watching. Previously, the client could request that transaction from Electrum, even though a transaction can ne…
Avoids unnecessary Electrum transaction.get requests for watched outputsReduces information disclosure to Electrum server about watched outpointsAdds regression test verifying request suppression
This change improves how the Lightning Dev Kit's Electrum and Esplora transaction-sync clients track watched Bitcoin transactions. Previously, the code ignored the script pubkey (the 'address' associated with a transaction) supplied when r…
Previously ignored `script_pubkey` argument in `register_tx` for transaction watchersElectrum script-history queries previously used an arbitrary transaction output, which could be OP_RETURN and therefore unindexed by some Electrum serversNew logic prefers caller-supplied script pubkey and falls back to non-OP_RETURN outputs
This commit changes how LDK stores pending event notifications. It adds serialization support for several event types that previously were not fully saved to disk, and introduces a helper method so the code can decide which events are wort…
Data-loss prevention: previously non-round-trippable event variants are now fully serialized, avoiding accidental event loss when users serialize Event queues themselvesState-consistency hardening: ChannelManager now explicitly skips events that describe non-surviving restart state, preventing replay of stale eventsDefensive assertion: debug builds assert that every persisted event round-trips to Some(event), catching serialization mismatches
This commit only adds documentation comments to two source files. It explains that certain funding-signing events can become stale if the underlying negotiation fails, and that callers may see specific harmless errors as a result. No code …
This commit removes a fixed-version pin for the honggfuzz fuzzing tool in a continuous-integration script. The project now uses the current release of honggfuzz instead of an older pinned version. There is no change to the actual Lightning…
This commit changes the Rust toolchain used in the continuous integration (CI) fuzzing job from a fixed older version (1.75) to the latest stable release. It is purely a build/test infrastructure change to fix a dependency compatibility is…
This commit makes a previously internal helper function public so that outside developers can build dummy-hop tails for blinded payment paths without recreating the logic themselves. It is an API usability change, not a fix for a known sec…
No security-relevant behavior change in the diffAPI visibility broadened from crate-public to publicCLTV expiry overflow check already present and unchanged
This change adds a safety check in a Bitcoin Lightning Network library (LDK). Previously, if the software tried to verify a peer's commitment signature before it had learned the peer's channel parameters, it could crash with a panic. Now i…
Defensive check added on peer-driven code path to prevent panicMissing counterparty_parameters could previously cause panic during commitment transaction constructionChannel closure returned instead of panic
This commit only changes the wording of an error message sent to peers when a commitment transaction fails validation. It replaces the vague phrase 'Failed to validate our commitment' with the clearer 'Received commitment failed validation…
This commit moves the checks that validate a counterparty's signatures on the holder's commitment and HTLC transactions out of the general channel code and into the signer module (InMemorySigner). Previously, these signature checks were do…
Moved signature validation from channel state machine into signer moduleAdded new tests that corrupt signatures and verify rejectionChanged error message from 'Invalid commitment tx signature from peer' / 'Invalid funding_created signature from peer' to 'Failed to validate our commitment'
This change fixes a Lightning channel splicing bug: when two peers temporarily disconnect during a splice, any half-finished signature the other side already sent is now discarded. Before the fix, that stale signature could be reused after…
State-invalidation bug in multi-step protocol (splice negotiation)Stale cryptographic signature not cleared on disconnectPotential reuse of old commitment state after reconnect
This fix prevents a Lightning channel from being accidentally force-closed. During a splice (a way to resize a payment channel), one side's initial signature could be kept in memory after the peers disconnected. If the peers later reconnec…
State inconsistency: in-memory buffered message not cleared on disconnectDuplicate message processing after reconnectionForce-close consequence for active Lightning channel
This commit is a simple rename of a public function from `matches_invoice_signing_pubkey` to `key_can_sign_invoice`, plus matching updates to its documentation, callers, tests, and changelog. No behavior changed. It is not a security fix.
This commit is a simple rename of a function and its documentation from matches_invoice_signing_pubkey to key_can_sign_invoice. No logic, behavior, or security properties changed. It is a follow-up code-review naming cleanup.
This commit adds a new public helper method, Offer::matches_invoice_signed_by (later renamed matches_invoice_signing_pubkey), that lets callers check whether an invoice signing key belongs to the recipient named by a BOLT 12 offer. It also…
Refactors existing BOLT 12 invoice-signing-pubkey validation into a reusable helperAdds public API to bind an invoice signing key to an offer recipientAdds unit tests for issuer-id vs. path-last-hop matching behavior
This commit is a feature enhancement for LDK's internal serialization macros. It allows developers to mark old protocol fields as 'retired' (reserved but no longer used) in more places, so those type numbers cannot be accidentally reused. …
TLV type-number reservation mechanism extended to more macro-generated code pathsPrevents accidental reuse of retired protocol field type numbersAvoids UnknownRequiredFeature decode failures for obsolete even-type fields
This commit is a test-only cleanup in the Lightning Dev Kit (LDK) Rust codebase. It removes low-level byte-level tests for splice failure events and replaces them with a single cross-version test that actually loads a 0.2 node with seriali…
Cross-version serialization compatibility test addedRemoval of byte-level tests that could not detect real 0.2 mismatchesNo production code changes
This commit only adds a code comment explaining an existing quirk: if a revoked old channel transaction contains two identical-looking payment forwards and the other side claims both, the software may only claim one upstream while letting …
Behavioral quirk in revoked-commitment HTLC resolution documentedDuplicate (payment_hash, amount) HTLCs can map to the same upstream sourcePotential missed upstream preimage claim on second identical HTLC
This commit fixes a state-handling bug in Lightning Dev Kit's splicing feature. When a user tries to speed up or replace a pending splice (an 'RBF' attempt) and the older splice transaction unexpectedly gets confirmed on-chain, the softwar…
State-conflict handling between confirmed splice candidate and active RBF negotiationStructured abort propagation through chain-event pathConditional abort based on holder signature progress to avoid unsafe cancellation
Make PriorContribution::holder_balance non-optional
The `holder_balance` is computed by `FundedChannel::get_holder_counterparty_balances_floor_incl_fee`, which may unexpectedly fail due to the balance either being too high or too low. These cases are highly unlikely to happen given we have validation to ensure we never enter such a state to begin with. If they were to happen, something has gone wrong with the channel and it doesn't make sense to allow splicing anyway. Therefore, we opt to make `PriorContribution::holder_balance` non-optional and return an error that the channel cannot be spliced at the moment.
85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
AI analysis · Low 29/100
This commit tightens error handling during Bitcoin Lightning channel splicing. Previously, if the software could not compute the user's current channel balance, it would silently skip a fee-rate optimization and re-run coin selection. Now it treats that balance-computation failure as a hard error and refuses to splice. This prevents the code from proceeding with potentially incorrect fee calculations when the channel is in an unexpected state, but it is a defensive hardening change rather than a fix for a known exploitable bug.
Use floor division for the spec's 25/24 RBF feerate rule
The spec says the 25/24 multiplicative feerate is "rounded down", but min_rbf_feerate used ceiling division. This made the computed minimum 1 sat/kwu too high when prev * 25 is not evenly divisible by 24, which could reject valid counterparty feerates.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Low 49/100
This commit fixes a tiny but real arithmetic bug in how Lightning splicing/RBF transactions decide the minimum acceptable fee rate. The code was using ceiling division (rounding up) when the Lightning specification says to round down. That made the minimum fee 1 satoshi per kiloweight-unit too high in some cases, which could cause a node to wrongly reject a counterparty's valid fee-bump attempt. The fix changes one division operation from 'round up' to 'round down' and updates the related tests.
The spec's tx_init_rbf recipient requirements now mandate rejecting a feerate below max(prev + 25 sat/kwu, ceil(prev * 25/24)), matching the sender requirement. Previously we only enforced the 25/24 rule on counterparties. Reuse the existing min_rbf_feerate function for both our own and counterparty validation.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Moderate 60/100
This commit tightens the rules a Lightning node uses when a peer tries to speed up or replace a funding transaction (an RBF attempt). Previously, the node accepted any feerate that was at least 25/24 of the previous one, even if that increase was tiny in absolute terms. The new code also requires the new feerate to be at least 25 sat/kwu higher than the previous one, matching what the protocol spec now says. This prevents a peer from getting a transaction stuck or delayed by bumping the fee by only a fraction when the absolute bump is too small to be relayed by the Bitcoin network.
AI review queuedExpose current dust exposure in ChannelDetailsby Bortlesboat · 1ee94800 · Apr 14, 2026 · 6 filesMessage 60 · AdequateInformational 14Details
Commit message · Bortlesboat
Expose current dust exposure in ChannelDetails
Co-authored-by: Codex <codex@openai.com>
60/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 14/100
This commit only exposes an existing internal calculation as a new public field in channel information structures. It does not change any security logic, limits, or behavior; it merely makes the current 'dust exposure' value readable by users of the library. There is no indication of a vulnerability being fixed.
AI review queuedexpose scorerby Alexander Shevtsov · a5610ff4 · Apr 14, 2026 · 1 fileMessage 18 · OpaqueInformational 15Details
Commit message · Alexander Shevtsov
expose scorer
18/100 · OpaqueMessage clarity
✓ Subject identifies a change! Too few words to establish purpose! No meaningful explanatory body
Why it was queued
second-pass: opaque commit message
AI analysis · Informational 15/100
This commit simply adds two public getter methods that expose internal scoring objects for reading. It does not change any logic, permissions, or behavior. There is no security issue visible in the diff.
To create trampoline forwarding and single hop receiving tails.
70/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Mentions testing or verification
AI analysis · Informational 15/100
This commit is a test-only refactor. It moves a helper function that builds synthetic blinded payment paths for trampoline routing tests into a shared test utilities file and generalizes it so it can be reused for both forwarding and single-hop receiving test scenarios. There is no change to production code, no bug fix, and no security relevance.
blinded_path: add constructor for trampoline blinded path
50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 15/100
This commit adds a new internal test-only helper function to create a special kind of private payment path (called a 'trampoline blinded path') in the Lightning Dev Kit library. It does not change any existing behavior, fix a bug, or expose new public functionality to users. There is no indication this is a security patch.
Lower-priorityblinded_path/refactor: make construction generic over forwarding typeby Carla Kirk-Cohen · 82bec57a · Apr 14, 2026 · 1 fileMessage 73 · AdequateInformational 14Details
Commit message · Carla Kirk-Cohen
blinded_path/refactor: make construction generic over forwarding type
To use helper functions for either trampoline or regular paths. We only want to support trampoline and regular blinded paths, so we don't want to support implementation outside of this crate. We need the trait itself to be public as it's part of a public struct, so we use a sealed trait to disallow external implementation.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 14/100
This commit is a routine internal code cleanup in the rust-lightning library. It makes the construction of blinded payment paths generic so the same helper functions can be used for both regular Lightning paths and newer 'trampoline' paths. It does not change any security behavior, fix a bug, or alter how data is validated. The change is purely about organizing the code more cleanly.
ln/refactor: pass minimum delta into check_incoming_htlc_cltv
For trampoline payments, we don't want to enforce a minimum cltv delta between our incoming and outer onion outgoing CLTV because we'll calculate our delta from the inner trampoline onion's value. However, we still want to check that we get at least the CLTV that the sending node intended for us and we still want to validate our incoming value. Refactor to allow setting a zero delta, for use for trampoline payments.
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
defensive validation
AI analysis · Low 29/100
This commit is a code refactor that prepares for future 'trampoline' Lightning payments. It changes an internal CLTV (timelock) check so the caller can specify a minimum time delta, instead of always using a hardcoded minimum. The commit itself does not enable trampoline payments or change live behavior; it only adds flexibility for a future feature. There is no direct evidence this fixes an active security bug.
ln/refactor: introduce HasMppPart generic to share incoming mpp
To allow re-use with trampoline payments which won't use the ClaimablePayment type, make handling generic for anything with MPP parts.
Here we also move counterparty skimmed logic to claimable payments, as this doesn't apply for trampoline.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 15/100
This is a straightforward internal code cleanup (refactor) in the Lightning payment handling code. It introduces a small generic trait so that the same multi-part payment logic can be reused for a future feature (trampoline payments). No user-facing behavior changes are visible in the diff, and no security bug is being fixed.
ln/refactor: move checks on incoming mpp accumulation into method
We're going to use the same logic for trampoline and for incoming MPP payments, so we pull this out into a separate function.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 12/100
This commit is a code cleanup that moves existing payment-receiving checks into a new helper method. It does not change the security behavior of the program; it only reorganizes the code so the same logic can be reused later for trampoline payments. No vulnerability is introduced or fixed.
ln/refactor: remove claimable htlc from fail_htlc macro
In the commit that follows we're going to need to take ownership of our htlc before this macro is used, so we pull out the information we need in advance.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 15/100
This commit is a pure internal code cleanup in the Lightning payment handling logic. It moves some data preparation earlier in the code and simplifies a helper macro so that a later commit can take ownership of an HTLC (a payment packet) before the macro is called. There is no functional change to how payments are accepted or rejected, and no security bug is fixed or introduced here.
ln/refactor: move on chain timeout check into claimable htlc
We'll re-use this to check trampoline MPP timeout in future commits.
65/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Informational 15/100
This commit is a simple internal code cleanup. It moves an existing check that decides when an in-flight payment has waited too long on the blockchain into a reusable helper method. No behavior changes; it just prepares the code for future reuse with trampoline multi-part payments.
ln/refactor: move mpp timeout into helper function
We'll use this shared logic when we need to timeout trampoline HTLCs.
Note that there's a slight behavior change in this commit. Previously, we'd do a first pass to check out total received value and return early if we'd reached it without applying a MPP tick to any HTLC. Now, we'll apply the MPP tick as we accumulate our total value received.
This does not make any difference, because we never MPP-timeout fully accumulated MPP payments so it doesn't matter if we've applied the tick when we've reached our full amount.
85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
AI analysis · Informational 12/100
This is a code cleanup (refactor) that moves the multi-part payment (MPP) timeout logic into a reusable helper function. The commit message notes a tiny behavior change in when timeout ticks are counted, but explicitly states this makes no practical difference because fully received payments are never timed out anyway. There is no indication of a security fix or vulnerability.
Lower-priorityln/refactor: move MPP information into separate struct to ClaimableHTLCby Carla Kirk-Cohen · c3fbac3a · Apr 14, 2026 · 1 fileMessage 73 · AdequateInformational 15Details
Commit message · Carla Kirk-Cohen
ln/refactor: move MPP information into separate struct to ClaimableHTLC
Pull out all fields that are common to incoming claimable and trampoline MPP HTLCs. This will be used in future commits to accumulate MPP HTLCs that are part of trampoline forwards - we can't claim these, but need to accumulate them in the same way as receives before forwarding onwards.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 15/100
This commit is a straightforward internal code reorganization in the Lightning Dev Kit's channel manager. It groups fields that describe individual parts of a multi-path payment (MPP) into a new struct called MppPart, which is then embedded inside the existing ClaimableHTLC struct. The change does not alter behavior, fix a bug, or introduce a security boundary; it only moves data around to make future trampoline-forwarding work easier.
ln/refactor: rename shared secret and populate in HTLCPreviousHopData
50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 11/100
This is a small internal code cleanup in the Lightning Dev Kit library. It renames a field from 'incoming_shared_secret' to 'trampoline_shared_secret' and makes sure the shared secret is also stored in a related data structure. There is no indication this fixes a security bug or changes behavior in a way that protects users.
ln/refactor: add previous_hop_data helper for HTLCSource
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 straightforward internal code cleanup in the Lightning Dev Kit's channel manager. It extracts a small, repeated pattern for reading previous-hop routing data into a shared helper method. There is no change to behavior, no fix for a bug, and no security relevance visible in the diff or commit message.
Keep the splice opcodes in chanmon_consistency available only when the crate is built with cfg(splicing). When splicing is disabled, return early from those opcode handlers instead of calling splice helpers that are not compiled in.
Add cfg(splicing) to fuzz/Cargo.toml check-cfg so the guarded code builds cleanly in the fuzz crate.
AI tools were used in preparing this commit.
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 15/100
This commit is a build-system and fuzz-test maintenance change. It makes sure that certain experimental 'splicing' test commands in the fuzzing harness are only compiled and run when the 'splicing' feature flag is enabled. When the flag is off, those commands now do nothing instead of trying to call splicing code that isn't compiled in. There is no user-facing security fix here.
The regression was introduced in d627ce14c. That change switched fee update opcodes in chanmon_consistency from maybe_update_chan_fees() to timer_tick_occurred(), which can enqueue BroadcastChannelUpdate events while peers are disconnected.
The harness already tolerated those events in one delivery path, but still treated them as unreachable in push_excess_b_events and disconnect draining. Accept BroadcastChannelUpdate in those match arms so the fuzz target no longer panics on valid timer tick driven message queues.
AI tools were used in preparing this commit.
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 17/100
This commit fixes a fuzz-testing harness so it no longer crashes when it encounters a specific kind of routine network message (BroadcastChannelUpdate). The change only affects test code, not the real Lightning node software that users run. It does not fix a vulnerability in production code.
Incomplete keysend MPPs skipped the receive timeout path, allowing partial payments to hold HTLC slots until CLTV expiry instead of failing after `MPP_TIMEOUT_TICKS`. Apply the existing `total_mpp_amount_msat` completeness check to all MPP receives and add a regression test covering the keysend case.
The timeout logic was originally added only for invoice-backed MPPs in 2022, and that invoice-only guard remained when receive-side MPP keysend support landed in 2023, leaving this gap latent until now.
Co-Authored-By: HAL 9000
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 · Moderate 60/100
This commit fixes a bug in the Lightning Dev Kit where multi-part keysend payments (a way to send Bitcoin over the Lightning Network without an invoice) did not use the normal timeout safety check. Normally, if only some parts of a multi-part payment arrive, the node waits a short time and then fails the partial payments to free up resources. For keysend payments, this timeout was skipped, so partial payments could sit around for hours or days, tying up funds and network slots until the payment's final deadline. The fix applies the same completeness and timeout check to all multi-part receives, including keysend, and adds a test to prevent the bug from returning.
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
documentation-only discount
AI analysis · Informational 15/100
This commit simply deletes a GitHub Actions workflow file that ran integration tests against another project (ldk-node). It is a CI/testing maintenance change and does not alter any production code, cryptographic logic, network handling, or user-facing behavior. There is no security-relevant change.
The build-sync job started resolving hyper-rustls v0.27.8 for the esplora-async-https configuration. That release requires rustc 1.85, but the sync CI job still runs on Rust 1.75.0.
Pin hyper-rustls to 0.27.7 when building with rustc older than 1.85, alongside the existing MSRV dependency pins in ci-tests-common.sh.
AI tools were used in preparing this commit.
90/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
Why it was queued
access control
AI analysis · Informational 15/100
This is a routine CI maintenance commit. It pins an older version of a dependency (hyper-rustls) so that automated builds using an older Rust compiler (1.75) continue to work. It does not change application code, fix a vulnerability, or alter how the software behaves in production.
Validate HTTPS scheme in LSPS5 URL Readable deserialization
The `Readable` implementations for `LSPSUrl` and `LSPS5WebhookUrl` were bypassing URL validation, allowing non-HTTPS URLs (e.g., http://, ftp://) to be deserialized from the wire protocol without rejection. Only the serde `Deserialize` and `new()`/`parse()` paths were correctly validating the HTTPS scheme.
Route `LSPSUrl::Readable` through `LSPSUrl::parse()` and add a length check to `LSPS5WebhookUrl::Readable` so that wire-deserialized URLs receive the same validation as JSON-deserialized ones.
Fixes #4559
Reported-by: Thomas Kilbride of Block Security Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
98/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Links an issue, advisory, or supporting reference✓ Names security-relevant behavior explicitly
This commit fixes a validation gap in the Lightning Dev Kit's LSPS5 (liquidity service) URL handling. When receiving a URL over the wire protocol, the code previously accepted any URL scheme, including insecure ones like http:// or ftp://. Now it enforces HTTPS-only URLs during deserialization, matching the validation already done for JSON input. It also adds a length check for webhook URLs.
Lower-priorityDocument that LSPS5 services should double-check the destinationby Matt Corallo · f6dac1a2 · Apr 13, 2026 · 1 fileMessage 78 · AdequateModerate 54Details
Commit message · Matt Corallo
Document that LSPS5 services should double-check the destination
It would be easy to implement an LSPS5 service and forget that the webhook calls are going out based on a URI and headers provided by an untrusted client, so such implementations need to make sure to check if the destination is some internal resource before sending.
Reported by Jordan Mecom of Block's Security Team
78/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Names security-relevant behavior explicitly
AI analysis · Moderate 54/100
This commit only adds a documentation comment warning developers who build LSPS5 services that webhook URLs come from untrusted clients and could point to internal/private resources. It does not change any code behavior, so there is no direct vulnerability being fixed in the library itself. The risk is that a service built with this library might blindly call attacker-supplied URLs, leading to server-side request forgery (SSRF) or internal network probing. The commit is a safety reminder rather than a patch.
Lower-priorityAvoid `Vec::with_capacity(huge)` on empty `Route`sby Matt Corallo · 4c398bb1 · Apr 13, 2026 · 2 filesMessage 100 · StrongLow 44Details
Commit message · Matt Corallo
Avoid `Vec::with_capacity(huge)` on empty `Route`s
In generally we consider empty `Route`s bogus garbage and don't always handle them super carefully, but ideally we shouldn't allocate a huge buffer just because someone passes a bogus `Route` to an onion-building utility method.
Reported by Jordan Mecom of Block's Security Team
Test by Claude Opus 4.6
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✓ Names security-relevant behavior explicitly
AI analysis · Low 44/100
This commit fixes a bug where a deliberately empty payment route could cause the software to try to reserve an enormous amount of memory. The fix makes the onion-packet builder reject empty routes immediately, preventing a potential denial-of-service or crash from an oversized memory allocation.