LN
← All projectsLNbits

LNbits

Self-hosted Lightning wallet, accounts, payment API, and extension platform supporting multiple funding sources.

BitcoinLightning NetworkPayment infrastructureActive incident
Repository coverage

598 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.

51security candidates144second-pass queue196AI analyses
63commits · 30 days
141commits · 60 days
291commits · 180 days
547commits · 365 days
Backfill bands
Nov 8 → May 12291 seen16 candidatesComplete
May 12 → Sep 9146 seen12 candidatesComplete
Sep 9 → Oct 932 seen6 candidatesComplete
Oct 9 → Nov 899 seen10 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
171Strong · 80–100
341Adequate · 60–79
80Thin · 40–59
6Opaque · 0–39
2security candidates with opaque commit messaging
Read the scoring rubric →
Developer activity

Who is changing the project?

Public Git author strings; identities are not independently verified.

DeveloperCommitsCandidatesAnalyzedHigh riskMessage avg.
Vlad Stan1372758564
Arc631127366
Riccardo Balbo403140
dni ⚡185558069
Tiago Vasconcelos38311068
monasco622053
Bitkarrot624085
satcat21111075
dependabot[bot]6400093
blackcoffeexbt1005065
Nathan Day904086
Bartok802081
Analysis record

Published AI watches

Last scanned 35 minutes ago

Low 41 AI analysisMessage 73 · Adequate
LN LNbitsLNbits BitcoinLightning NetworkPayment infrastructure

feat (wasm): Adds csv/print to wasm iframes, core theme passing, optional unhashed description, scoped invoice status, fiat checkout and browser storage (#4328)

This commit adds several new features to LNbits' WebAssembly (WASM) extension system. It introduces ways for extensions to: check invoice status, refresh payment status, create fiat checkout invoices, store small amounts of data in the bro…

Untrusted `extension_context` dictionary replaced by frozen typed model `PaymentExtensionContext` with required `extension_id`, `owner_id`, `wallet_id`, and optional `source_id`.New `wallet.invoice_status` method enforces strict binding checks (extension, owner, wallet, source) before returning only `paid/pending/failed/amount-msat`; rejects legacy/unbound invoices.New `wallet.refresh_payment` requires authentication, wallet ownership or shared-wallet VIEW_PAYMENTS permission, and scopes payment lookup by wallet; hides backend error details.
df3a180aby Arc+1919−8322 files
No security note in commit
Moderate 63 AI analysisMessage 58 · Thin
LN LNbitsLNbits BitcoinLightning NetworkPayment infrastructure

fix[8c7f]: reject SSO for accounts with passwords (#4347)

This update blocks users from logging into password-protected accounts through single sign-on (SSO), such as 'Login with GitHub'. Before this change, an attacker who knew or guessed a victim's email address could potentially use an SSO pro…

Authentication bypass mitigation: SSO can no longer authenticate accounts that also have local passwordsAccount takeover risk reduction: blocks an external identity provider from overriding a password-protected accountState preservation: password hash and email_verified flag remain unchanged on rejection
b1d22089by Vlad Stan+70−23 files
No security note in commit
Low 44 AI analysisMessage 58 · Thin
LN LNbitsLNbits BitcoinLightning NetworkPayment infrastructure

fix[8c7f]: keep unrecorded Core Lightning payments pending (#4345)

This commit changes how LNbits interprets a missing Core Lightning payment record. Previously, if no payment record existed, LNbits marked the payment as failed. Now it marks it as still pending, because a payment that is currently being s…

Change in payment state machine: empty result now treated as pending rather than failedPotential race condition between payment initiation and status pollingRisk of duplicate payment attempts if pending status leads to retries
49755d33by Vlad Stan+2−21 file
No security note in commit
High 81 AI analysisMessage 75 · Adequate
LN LNbitsLNbits BitcoinLightning NetworkPayment infrastructure

fix: reject user ID authentication for password accounts (#4340)

This commit fixes an authentication bypass in LNbits. Previously, an account that had been created without a password could still be logged into using only the user ID even after a password was later added. An attacker who knew (or guessed…

Authentication bypass via user ID for password-protected accountsStale authentication cache could grant access after password upgradeNew guard `check_passwordless_account` enforces password requirement
db9563d2by Vlad Stan+196−448 files
Vendor flagged security relevance
Moderate 67 AI analysisMessage 70 · Adequate
LN LNbitsLNbits BitcoinLightning NetworkPayment infrastructure

fix: respect shared wallet permissions for payment updates (#4338)

This commit fixes a permission bug in LNbits where users of shared wallets could update or settle/cancel payments even when they only had view-only access. It also adds a check so that settle/cancel actions only work on special 'hold invoi…

Access-control bypass fix for shared wallet payment updatesNew permission check can_update_payments() tied to shared wallet receive/send permissionsNew hold_invoice guard on settle/cancel endpoints
d718f9aeby Vlad Stan+154−64 files
No security note in commit
Informational 15 AI analysisMessage 65 · Adequate
LN LNbitsLNbits BitcoinLightning NetworkPayment infrastructure

chore: remove extension builder from core (#4331)

This commit completely removes the 'Extension Builder' feature from LNbits core. It deletes the backend code that generated extensions from templates, the API endpoints, the web UI pages, and related settings. There is no bug being fixed a…

Removal of a code-generation feature that used Jinja2 with autoescape=False (bandit S701 was previously suppressed for this file)Removal of an endpoint that allowed admins to build, deploy, and activate extensions from user-supplied JSON configurationReduction of extension installation attack surface by removing the builder manifest source and preview file-serving route
c8d47013by Vlad Stan+14−334535 files
No security note in commit
Low 49 AI analysisMessage 65 · Adequate
LN LNbitsLNbits BitcoinLightning NetworkPayment infrastructure

fix: disable paid reviews (#4325)

This update turns off a default paid-extension review service in LNbits. It stops the wallet from automatically contacting a third-party payment/review server when it lists or updates extensions, and resets the default review URL to empty.…

Default third-party review/payment URL removedMigration forcibly resets stored review URL to emptyBackground extension update/install no longer queries remote pay_link for pricing
77cc2276by Vlad Stan+208−1313 files
No security note in commit
Moderate 60 AI analysisMessage 55 · Thin
LN LNbitsLNbits BitcoinLightning NetworkPayment infrastructure

fix: packaging/builds (#4319)

This commit fixes a packaging/build issue in LNbits, but the code changes also harden how sensitive funding-source settings (wallet seeds, API keys, macaroons) are exposed and edited through the admin web interface. Previously, non-super a…

Authorization boundary tightened: funding-source credentials restricted to superuser in API and UISeed-integrity check added: configured mnemonic must match persisted seed.dat before settings are writtenBackup confirmation reset when funding seed changes, preventing silent wallet substitution
fe2b0a98by Arc+913−6918 files
No security note in commit
Critical 100 AI analysisMessage 70 · Adequate
LN LNbitsLNbits BitcoinLightning NetworkPayment infrastructure

feat: Add superuser action to reset all wallet keys (#4320)

This commit adds a recovery feature that lets the LNbits superuser instantly replace every wallet's secret keys, including keys for deleted wallets, and clear any cached copies of the old keys. The vendor says this is needed because of a r…

Vendor describes the change as a recovery control for a security incident involving exposed wallet credentialsVendor states all versions before 1.7.0 are affected and funds are at risk of theftNew superuser-only endpoint can rotate every wallet's admin and invoice keys, including deleted wallets
45a25b24by Vlad Stan+523−58 files
Vendor flagged security relevance
Moderate 63 AI analysisMessage 70 · Adequate
LN LNbitsLNbits BitcoinLightning NetworkPayment infrastructure

feat: Automatically update extensions on startup and on a schedule (#4314)

This commit adds an automatic extension update feature to LNbits. By default, it checks for and installs newer versions of installed extensions when the server starts, and can repeat that check every 24 hours. Because extensions are downlo…

Automatic download and execution of third-party code is enabled by defaultUpdate source is the extension's configured source_repo, not a vendor-curated storeNo code signature or hash verification is visible in the diff beyond existing archive validation helpers
a16d7752by Vlad Stan+836−1511 files
No security note in commit
Critical 89 AI analysisMessage 70 · Adequate
LN LNbitsLNbits BitcoinLightning NetworkPayment infrastructure

fix: harden SSRF checks and use explicit local LNURL route opt-ins (#4313)

This commit is a security hardening patch for LNbits, a Bitcoin Lightning wallet platform. It fixes weaknesses in the server's outgoing web-request protections (SSRF, or Server-Side Request Forgery) that could let an attacker trick the LNb…

SSRF hardening: multicast, IPv6 transition/embedded addresses, and EC2 IPv6 metadata endpoint blockedLocal LNURL routing moved from hard-coded regex allow-list to explicit per-route openapi_extra opt-inBackslash path traversal blocked in private HTTP endpoint checks
fc5e0b60by Arc+168−408 files
Vendor flagged security relevance
Critical 90 AI analysisMessage 85 · Strong
LN LNbitsLNbits BitcoinLightning NetworkPayment infrastructure

fix: centralize SSRF protection and block self-targeted requests (#4310)

This is a major security patch for LNbits released after a November incident. It fixes two broad weaknesses: attackers could trick the server into making requests to itself or to internal/cloud services (SSRF), and new user accounts could …

New centralized SafeHttpClient with DNS pinning, redirect limits, and destination validationNew outbound.py blocks requests to the instance hostname and locally assigned/supplied IP addressesSSRF protection applied to LNURL, NIP-05, webhooks, WASM extension HTTP, and WebSockets
7a176c59by Arc+2076−30332 files
Vendor flagged security relevance
Low 35 AI analysisMessage 70 · Adequate
LN LNbitsLNbits BitcoinLightning NetworkPayment infrastructure

fix(corelightningrest): compute payment status fee as sent minus amount (#4300)

This commit fixes a bug in how LNbits calculates the fee for a completed Core Lightning REST payment. The old code incorrectly subtracted a negative 'amount sent' value, which produced the wrong fee. The fix changes the formula so the fee …

Incorrect arithmetic in financial/fee calculationTest fixture updated to match corrected sign conventionWallet backend payment status logic changed
45a8704fby Amartya Vikram Singh+2−22 files
No security note in commit
Moderate 52 AI analysisMessage 70 · Adequate
LN LNbitsLNbits BitcoinLightning NetworkPayment infrastructure

fix: ignore failed payments in daily withdraw limit (#4297)

This commit fixes a bug in LNbits where failed outgoing payments were incorrectly counted against a wallet's daily withdrawal limit. Because failed payments never actually moved money out of the wallet, counting them could wrongly block le…

Business-logic flaw in access-control / spending limitIncorrect state filter on financial transaction queryDenial-of-service-like effect: legitimate withdrawals blocked by stale failed payment records
206477d4by Amartya Vikram Singh+54−02 files
No security note in commit
Low 34 AI analysisMessage 70 · Adequate
LN LNbitsLNbits BitcoinLightning NetworkPayment infrastructure

fix(lnpay): return checking_id from create_invoice (#4295)

This commit fixes a bug in the LNPay wallet integration where newly created Lightning invoices were not returning their internal tracking ID ('checking_id'). Without this ID, LNbits could not reliably match future payment updates to the co…

Missing correlation identifier in payment responsePotential invoice state desynchronization between LNbits and LNPay backendRegression test added for payment identifier handling
918b38dcby Amartya Vikram Singh+22−02 files
No security note in commit
Moderate 60 AI analysisMessage 70 · Adequate
LN LNbitsLNbits BitcoinLightning NetworkPayment infrastructure

fix: prevent duplicate BOLT12 offer payments on retry (#4287)

This commit fixes a bug where retrying a BOLT12 offer payment could accidentally pay the same offer twice. It adds an idempotency check using an external_id so that retries return the original payment instead of creating a duplicate, while…

Duplicate payment prevention for BOLT12 offersIdempotency keyed on wallet_id + external_idConflict detection when external_id reused with different payment details
ea2686d1by Vlad Stan+426−89 files
No security note in commit
High 79 AI analysisMessage 55 · Thin
LN LNbitsLNbits BitcoinLightning NetworkPayment infrastructure

fix: mempool urls (#4286)

This commit fixes a security gap in LNbits' on-chain (Bitcoin) wallet feature. Previously, a wallet owner could point their wallet at any Mempool-style block explorer URL, including internal or attacker-controlled addresses. The server wou…

Server-Side Request Forgery (SSRF) mitigation: unapproved mempool endpoints are rejected before httpx.AsyncClient is instantiatedOpen redirect / redirect-to-attacker mitigation: follow_redirects=False on mempool requestsInput validation: Pydantic validator strips paths, rejects credentials, fragments, query strings, control chars, backslashes, and invalid ports
f9dd17f3by Vlad Stan+354−2212 files
Vendor flagged security relevance
Low 45 AI analysisMessage 65 · Adequate
LN LNbitsLNbits BitcoinLightning NetworkPayment infrastructure

fix: payment ws notifications (#4282)

This commit fixes how LNbits notifies the user interface about incoming Lightning payments. Previously, the same paid invoice could be processed and announced multiple times, causing duplicate or confusing wallet notifications. The change …

Race condition in payment status update between polling loop and paid-invoice streamDuplicate WebSocket notifications for the same settled invoiceRefactoring to atomic DB-lock guarded update of incoming payment status
aa041306by Vlad Stan+388−297 files
No security note in commit
Low 39 AI analysisMessage 65 · Adequate
LN LNbitsLNbits BitcoinLightning NetworkPayment infrastructure

chore: bump to pydantic 2 (#4253)

This is a large dependency upgrade from Pydantic 1 to Pydantic 2 across the LNbits project. Most changes are mechanical renames (e.g., dict() to model_dump(), parse_obj() to model_validate()). A few small functional changes are mixed in: i…

Dependency major-version upgrade (Pydantic 1 -> 2) with broad validation behavior changesRemoval of Pydantic v1 duplicate-validator cache workaround in extension route registrationJWT account resolution reordered to prefer 'usr' claim over 'sub' claim
2ab7662eby Vlad Stan+1548−753119 files
No security note in commit
Informational 15 AI analysisMessage 65 · Adequate
LN LNbitsLNbits BitcoinLightning NetworkPayment infrastructure

feat: make onchain dialog more readeable (#4269)

This commit is a user-interface redesign of the on-chain Bitcoin receive dialog. It splits the dialog into two screens: one to enter an amount and note, and another to display the QR code. The changes are purely cosmetic and do not alter h…

0e0ee6edby Tiago Vasconcelos+144−804 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.

AI review queuedfeat (wasm): Adds csv/print to wasm iframes, core theme passing, optional unhashed description, scoped invoice status, fiat checkout and browser storage (#4328)by Arc · df3a180a · Nov 20, 2026 · 22 filesMessage 73 · AdequateLow 41Details
Commit message · Arc

feat (wasm): Adds csv/print to wasm iframes, core theme passing, optional unhashed description, scoped invoice status, fiat checkout and browser storage (#4328)

Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference
Why it was queued
second-pass: unusually broad change
AI analysis · Low 41/100

This commit adds several new features to LNbits' WebAssembly (WASM) extension system. It introduces ways for extensions to: check invoice status, refresh payment status, create fiat checkout invoices, store small amounts of data in the browser, export/print CSV documents, and receive theme information. The changes also strengthen how invoices are tied to the extension that created them, replacing loose dictionary data with a stricter typed structure and adding verification of invoice description hashes. Most changes are defensive in nature and include extensive tests, but they expand the attack surface of the WASM extension bridge and payment APIs.

AI review queuedfix[8c7f]: keep unrecorded Core Lightning payments pending (#4345)by Vlad Stan · 49755d33 · Nov 17, 2026 · 1 fileMessage 58 · ThinLow 44Details
Commit message · Vlad Stan

fix[8c7f]: keep unrecorded Core Lightning payments pending (#4345)

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 queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Low 44/100

This commit changes how LNbits interprets a missing Core Lightning payment record. Previously, if no payment record existed, LNbits marked the payment as failed. Now it marks it as still pending, because a payment that is currently being sent may not have written its first record yet. The main risk is that a payment could appear stuck or be retried incorrectly, potentially leading to duplicate sends or accounting confusion, but the change is a small logic fix rather than an obvious critical vulnerability.

AI review queuedchore: remove extension builder from core (#4331)by Vlad Stan · c8d47013 · Nov 13, 2026 · 35 filesMessage 65 · AdequateInformational 15Details
Commit message · Vlad Stan

chore: remove extension builder from core (#4331)

65/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
Why it was queued
second-pass: unusually broad change
AI analysis · Informational 15/100

This commit completely removes the 'Extension Builder' feature from LNbits core. It deletes the backend code that generated extensions from templates, the API endpoints, the web UI pages, and related settings. There is no bug being fixed and no vulnerability being patched—this is a feature removal (refactoring).

AI review queuedfeat: Add superuser action to reset all wallet keys (#4320)by Vlad Stan · 45a25b24 · Nov 10, 2026 · 8 filesMessage 70 · AdequateCritical 100Details
Commit message · Vlad Stan

feat: Add superuser action to reset all wallet keys (#4320)

Co-authored-by: alan <alan@lnbits.com>

70/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Critical 100/100

This commit adds a recovery feature that lets the LNbits superuser instantly replace every wallet's secret keys, including keys for deleted wallets, and clear any cached copies of the old keys. The vendor says this is needed because of a recent security incident where wallet keys may have been exposed; without rotation, attackers could still spend or steal funds even after the server is upgraded. The change itself is a defensive control, not an attack, but it confirms the underlying incident is serious and affects all versions before 1.7.0.

AI review queuedfix(corelightningrest): compute payment status fee as sent minus amount (#4300)by Amartya Vikram Singh · 45a8704f · Nov 6, 2026 · 2 filesMessage 70 · AdequateLow 35Details
Commit message · Amartya Vikram Singh

fix(corelightningrest): compute payment status fee as sent minus amount (#4300)

70/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Low 35/100

This commit fixes a bug in how LNbits calculates the fee for a completed Core Lightning REST payment. The old code incorrectly subtracted a negative 'amount sent' value, which produced the wrong fee. The fix changes the formula so the fee is simply the amount actually sent minus the original invoice amount. The test fixture was also updated to reflect that Core Lightning reports amount_sent_msat as a positive number, not negative.

AI review queuedfix: ignore failed payments in daily withdraw limit (#4297)by Amartya Vikram Singh · 206477d4 · Nov 6, 2026 · 2 filesMessage 70 · AdequateModerate 52Details
Commit message · Amartya Vikram Singh

fix: ignore failed payments in daily withdraw limit (#4297)

70/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Moderate 52/100

This commit fixes a bug in LNbits where failed outgoing payments were incorrectly counted against a wallet's daily withdrawal limit. Because failed payments never actually moved money out of the wallet, counting them could wrongly block legitimate withdrawals. The fix adds a filter so only completed (successful) outgoing payments are tallied.

AI review queuedfix(lnpay): return checking_id from create_invoice (#4295)by Amartya Vikram Singh · 918b38dc · Nov 6, 2026 · 2 filesMessage 70 · AdequateLow 34Details
Commit message · Amartya Vikram Singh

fix(lnpay): return checking_id from create_invoice (#4295)

70/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Low 34/100

This commit fixes a bug in the LNPay wallet integration where newly created Lightning invoices were not returning their internal tracking ID ('checking_id'). Without this ID, LNbits could not reliably match future payment updates to the correct invoice, which can lead to invoices being stuck as 'pending' indefinitely or being incorrectly tracked. The fix is a one-line addition that includes the invoice ID in the response, plus a new unit test to prevent regression.

AI review queuedfix: prevent duplicate BOLT12 offer payments on retry (#4287)by Vlad Stan · ea2686d1 · Nov 3, 2026 · 9 filesMessage 70 · AdequateModerate 60Details
Commit message · Vlad Stan

fix: prevent duplicate BOLT12 offer payments on retry (#4287)

70/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Moderate 60/100

This commit fixes a bug where retrying a BOLT12 offer payment could accidentally pay the same offer twice. It adds an idempotency check using an external_id so that retries return the original payment instead of creating a duplicate, while still allowing intentional repeat payments with a new ID. The change is defensive and reduces financial loss risk from duplicate spends.

AI review queuedfix: mempool urls (#4286)by Vlad Stan · f9dd17f3 · Nov 3, 2026 · 12 filesMessage 55 · ThinHigh 79Details
Commit message · Vlad Stan

fix: mempool urls (#4286)

55/100 · ThinMessage clarity
✓ Descriptive subject✓ Uses a recognizable type or scope✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · High 79/100

This commit fixes a security gap in LNbits' on-chain (Bitcoin) wallet feature. Previously, a wallet owner could point their wallet at any Mempool-style block explorer URL, including internal or attacker-controlled addresses. The server would then make HTTP requests to that URL, which could leak data, reach internal services, or be tricked by redirects. The patch introduces an administrator-controlled 'approved explorer URL' list, validates URLs strictly, blocks unapproved endpoints before any network request, and disables HTTP redirects. It also lets users see and pick only approved URLs in the wallet settings screen.

AI review queuedfeat: make onchain dialog more readeable (#4269)by Tiago Vasconcelos · 0e0ee6ed · Oct 29, 2026 · 4 filesMessage 65 · AdequateInformational 15Details
Commit message · Tiago Vasconcelos

feat: make onchain dialog more readeable (#4269)

65/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 15/100

This commit is a user-interface redesign of the on-chain Bitcoin receive dialog. It splits the dialog into two screens: one to enter an amount and note, and another to display the QR code. The changes are purely cosmetic and do not alter how payments are processed or how funds are secured.

AI review queuedfeat: support hold invoices with the LNbits funding source (#4216)by bota87 · c7c5f29a · Oct 28, 2026 · 13 filesMessage 85 · StrongLow 32Details
Commit message · bota87

feat: support hold invoices with the LNbits funding source (#4216)

Co-authored-by: Bota <bota87@users.noreply.github.com>
Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>

85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Low 32/100

This commit adds support for 'hold invoices' when LNbits uses another LNbits instance as its funding source. Hold invoices are a normal Lightning feature where payment is accepted but not immediately settled. The change is a feature addition with no obvious security bug in the diff itself, but it touches payment-handling code and adds new API endpoints for settle/cancel operations.

AI review queuedfix: spark l2 `USER_SWAP_RETURNED` means it failed (#4258)by Vlad Stan · 515cd6c1 · Oct 23, 2026 · 1 fileMessage 70 · AdequateLow 42Details
Commit message · Vlad Stan

fix: spark l2 `USER_SWAP_RETURNED` means it failed (#4258)

70/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Low 42/100

This commit fixes how LNbits handles a specific payment status from the Breez Spark SDK called USER_SWAP_RETURNED. Previously, this status was not treated as a failure, which could cause LNbits to incorrectly believe a Lightning payment succeeded when it actually failed. This could lead to incorrect accounting, such as marking an invoice as paid when the funds were returned to the sender.

AI review queuedfeat: Job scheduler (#4226)by Vlad Stan · 22283275 · Oct 15, 2026 · 58 filesMessage 55 · ThinLow 39Details
Commit message · Vlad Stan

feat: Job scheduler (#4226)

Co-authored-by: alan <alan@lnbits.com>

55/100 · ThinMessage clarity
✓ Descriptive subject✓ Uses a recognizable type or scope✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
Why it was queued
second-pass: unusually broad change
AI analysis · Low 39/100

This commit adds a new background job scheduler to LNbits. It lets core code, Python extensions, and sandboxed WASM extensions register recurring cron-like tasks. The change is a feature addition, not a documented security fix. The scheduler introduces new attack surface: arbitrary code execution paths for extensions, permission checks, job ownership, and cron parsing. However, the supplied diff is truncated before the API routes and most implementation details, so only a partial security review is possible from the materials given.

AI review queuedfix: self payment in lnd (#4241)by Vlad Stan · 4b6e9255 · Oct 15, 2026 · 4 filesMessage 65 · AdequateModerate 50Details
Commit message · Vlad Stan

fix: self payment in lnd (#4241)

65/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Moderate 50/100

This change fixes a bug where LNbits would leave a payment stuck in 'pending' status when the underlying LND lightning node rejected the payment because it was a self-payment (paying your own invoice). The fix tells LNbits to recognize LND's 'self-payments not allowed' error as a pre-dispatch failure, so it marks the payment as failed and refunds the user's balance instead of leaving it hanging.

AI review queuedfix: guard null g.wallet in websocket payment handler (#4238)by Bitkarrot · 1df0129f · Oct 15, 2026 · 2 filesMessage 85 · StrongLow 27Details
Commit message · Bitkarrot

fix: guard null g.wallet in websocket payment handler (#4238)

Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>

85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Low 27/100

This commit fixes a frontend JavaScript crash in LNbits by adding a null check for the current wallet object before processing incoming websocket payment messages. Without the guard, the page could throw errors and behave unexpectedly when a payment notification arrives while no wallet is loaded.

AI review queuedfix: totals fix (#4205)by Arc · bfc62559 · Oct 15, 2026 · 7 filesMessage 48 · ThinInformational 19Details
Commit message · Arc

fix: totals fix (#4205)

Co-authored-by: alan <alan@lnbits.com>

48/100 · ThinMessage clarity
✓ Subject identifies a change✓ Uses a recognizable type or scope✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 19/100

This commit fixes how LNbits calculates total balances in its admin dashboard. Previously, the code excluded all 'fiat' wallets from the total balance. Now it can separately report fiat-denominated wallet totals alongside the regular balance. This is an accounting/display correction, not a vulnerability that allows unauthorized access or theft.

AI review queued[Feature Request] Allow setting currency on fiat wallet (#4176)by Tiago Vasconcelos · 56720167 · Oct 15, 2026 · 8 filesMessage 58 · ThinInformational 21Details
Commit message · Tiago Vasconcelos

[Feature Request] Allow setting currency on fiat wallet (#4176)

Co-authored-by: Arc <ben@arc.wales>

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 queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 21/100

This commit adds a new feature that lets users choose a currency when creating a 'fiat wallet'. Previously, the wallet always used a server-wide default currency. The change validates the chosen currency against an allowed list and falls back to a default if none is provided. There is no clear security bug in the diff, but it slightly expands the attack surface by adding a new user-provided input to wallet creation.

AI review queuedfeat: first macos signed build (#4175)by Vlad Stan · f78a3c6e · Oct 15, 2026 · 31 filesMessage 80 · StrongInformational 19Details
Commit message · Vlad Stan

feat: first macos signed build (#4175)

Co-authored-by: Arc <33088785+arcbtc@users.noreply.github.com>

80/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference
Why it was queued
signing or wallet pathsecond-pass: unusually broad changesecond-pass: security-sensitive path
AI analysis · Informational 19/100

This commit adds the first Apple-signed macOS desktop build pipeline for LNbits. It is a feature commit about packaging, code signing, and notarization. There is no direct evidence in the diff of a vulnerability or malicious change. The main security-relevant aspect is that the new build process handles Apple Developer ID certificates and private keys, so mistakes in how those secrets are managed could affect release integrity. The code appears to take several protective measures: it uses a temporary keychain, strips credentials from child process environments, redacts secrets in logs, validates entitlements, and verifies signatures before publishing.

AI review queuedCustom memo for Credit/Debit flows. (#4162)by DrShift · 2859357c · Oct 15, 2026 · 13 filesMessage 68 · AdequateInformational 21Details
Commit message · DrShift

Custom memo for Credit/Debit flows. (#4162)

Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 21/100

This commit adds an optional custom memo field to LNbits' admin credit/debit balance adjustment feature. Previously, these adjustments were always recorded with generic labels like 'Admin credit' or 'Admin debit'. Now admins can attach a short descriptive note. The change is primarily a usability and bookkeeping improvement, not a security fix. It does not appear to introduce new vulnerabilities, though it slightly increases the attack surface by adding one more user-provided string that flows into payment records and notifications.

AI review queuedDelete cliche (#4118)by Vlad Stan · fe65dbbf · Oct 15, 2026 · 8 filesMessage 36 · OpaqueInformational 15Details
Commit message · Vlad Stan

Delete cliche (#4118)

36/100 · OpaqueMessage clarity
✓ Subject identifies a change✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: opaque commit messagesecond-pass: security-sensitive path
AI analysis · Informational 15/100

This commit simply removes an old, unused Lightning wallet backend called 'Cliche' from the LNbits project. It deletes the related code, settings, documentation, and UI references. There is no security fix or vulnerability being patched here.

AI review queuedfeat: support sending to BOLT12 offers (#2581) (#4169)by UniSyncInc2212 · 7eafd2a7 · Oct 15, 2026 · 50 filesMessage 93 · StrongLow 30Details
Commit message · UniSyncInc2212

feat: support sending to BOLT12 offers (#2581) (#4169)

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: UniSyncInc2212 <UniSyncInc2212@users.noreply.github.com>
Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>

93/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Why it was queued
signing or wallet pathparser or protocol pathsecond-pass: unusually broad changesecond-pass: security-sensitive path
AI analysis · Low 30/100

This commit adds support for paying BOLT12 offers in LNbits, a Bitcoin Lightning wallet platform. It introduces new code paths for parsing offers, validating amounts, routing payments through compatible funding sources, and updating payment records when the actual invoice is resolved. The change is a feature addition, not a documented security fix. While it touches payment logic, the diff does not show an obvious vulnerability, but it does add complexity and new trust boundaries that could harbor bugs.

AI review queuedfix(nwc): resolve in-flight request futures when relay disconnects (#4161)by Nathan Day · 5bd01b42 · Oct 15, 2026 · 1 fileMessage 93 · StrongLow 43Details
Commit message · Nathan Day

fix(nwc): resolve in-flight request futures when relay disconnects (#4161)

Co-authored-by: dadofsambonzuki <dadofsambonzuki@noemail.com>
Co-authored-by: Arc <33088785+arcbtc@users.noreply.github.com>

93/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Low 43/100

This patch fixes a bug in LNbits' Nostr Wallet Connect (NWC) wallet integration where requests waiting for a response could hang forever if the relay connection dropped. Previously, the timeout cleanup loop skipped work while disconnected, so old requests never failed and callers would wait indefinitely, requiring a full process restart to recover. The fix makes the timeout loop run even when disconnected and resolves those waiting futures with a timeout error instead of leaving them stuck.

AI review queuedfix: fiat wallet type (#4165)by Arc · 231326b9 · Oct 15, 2026 · 20 filesMessage 65 · AdequateLow 49Details
Commit message · Arc

fix: fiat wallet type (#4165)

65/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: unusually broad changesecond-pass: security-sensitive path
AI analysis · Low 49/100

This commit adds a new 'fiat wallet' type to LNbits, a Bitcoin Lightning wallet platform. It introduces controls so these fiat wallets can only receive money (via cash or a configured fiat provider) and cannot send Bitcoin payments. The change also adds admin settings to allow or restrict who can create such wallets. The commit appears to be a feature/fix rather than a disclosed security patch, but it touches sensitive payment-authorization logic.

AI review queuedfix: guard null g.wallet in websocket payment handler (#4238)by Bitkarrot · 91f03082 · Oct 14, 2026 · 2 filesMessage 85 · StrongLow 27Details
Commit message · Bitkarrot

fix: guard null g.wallet in websocket payment handler (#4238)

Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>

85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Low 27/100

This commit fixes a frontend JavaScript crash by checking whether a wallet object exists before using it when a websocket payment message arrives. Without the guard, a user on certain pages could hit a null-reference error that breaks the live payment update UI. There is no evidence in the commit of a server-side security vulnerability or malicious exploitability.

AI review queuedfix: self payment in lnd (#4241)by Vlad Stan · 829e2f8d · Oct 14, 2026 · 4 filesMessage 65 · AdequateModerate 60Details
Commit message · Vlad Stan

fix: self payment in lnd (#4241)

65/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Moderate 60/100

This commit fixes a bug where LNbits, when connected to an LND Lightning node, would leave a payment stuck in 'pending' status if LND rejected the payment because it was a self-payment (paying your own node). The fix tells LNbits to recognize LND's 'self-payments not allowed' message as a definite pre-dispatch failure, so the payment is correctly marked as failed and the user's balance is restored instead of being frozen.