BT
← All projectsBTCPay Server

BTCPay Server

Free, open-source, self-hosted Bitcoin payment processor supporting on-chain and Lightning payments.

BitcoinLightning NetworkPayment infrastructureNormal
Repository coverage

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

125security candidates288second-pass queue413AI analyses
168commits · 30 days
317commits · 60 days
557commits · 180 days
897commits · 365 days
Backfill bands
Aug 8 → Feb 9247 seen22 candidatesComplete
Feb 9 → Jun 9197 seen39 candidatesComplete
Jun 9 → Jul 954 seen0 candidatesComplete
Jul 9 → Aug 865 seen16 candidatesComplete
Commit communication

Does the history explain itself?

Message quality measures whether a commit identifies its scope, purpose, rationale, testing, and supporting references. It does not change the security-severity score.

53/100 average clarity
90Strong · 80–100
213Adequate · 60–79
480Thin · 40–59
194Opaque · 0–39
10security 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.
Nicolas Dorier676793111048
Cerberus622290
Andrew Camilleri (Kukks)2233148
Andrew Camilleri1325160
ndeet111133
Chukwuleta Tobechi33714066
rockstardev33612049
Abhijay Jain26610087
thgO.O32512066
dstrukt726061
Tim522074
tumutech222067
Analysis record

Published AI watches

Last scanned 52 minutes ago

Informational 15 AI analysisMessage 18 · Opaque
BT BTCPay ServerBTCPay Server BitcoinLightning NetworkPayment infrastructure

Rename attribute

This commit is a simple rename of a code attribute from UseStoreLanguageAttribute to StorefrontRouteAttribute. It only changes the name used in source files and does not alter any program behavior, security settings, or access controls.

5854d8a3by Nicolas Dorier+24−2411 files
No security note in commit
Informational 19 AI analysisMessage 58 · Thin
BT BTCPay ServerBTCPay Server BitcoinLightning NetworkPayment infrastructure

Use server translations on the invoice checkout page (#7828)

This commit changes how the invoice checkout page is translated. Instead of loading translations from separate JSON files in the browser based on a language the customer picks, the page now uses the store's own server-side translation sett…

Removal of client-side language selection reduces attack surface for language-related query-string manipulation (e.g., lang=...)Server-side rendering of checkout strings may reduce exposure to DOM-based XSS via translation files, but no specific vulnerability is shownLarge deletion of locale files and i18next vendor scripts is a cleanup, not a patch
bb14f177by Chukwuleta Tobechi+219−585290 files
No security note in commit
Informational 12 AI analysisMessage 73 · Adequate
BT BTCPay ServerBTCPay Server BitcoinLightning NetworkPayment infrastructure

Update dependency and .NET 10 servicing images (#7831)

This commit updates two .NET runtime/SDK Docker images to newer patch versions and bumps a third-party library (CsvHelper) from 34.0.0 to 34.1.0. These are routine maintenance updates. The commit message does not say any of the updates fix…

Patch-level .NET runtime/SDK image update (potential servicing fixes, unspecified)Patch-level third-party NuGet package update (CsvHelper 34.0.0 -> 34.1.0, unspecified reason)
d5ecad56by Nicolas Dorier+4−43 files
No security note in commit
High 78 AI analysisMessage 45 · Thin
BT BTCPay ServerBTCPay Server BitcoinLightning NetworkPayment infrastructure

Harden account and payment handling

This is a large hardening patch for BTCPay Server that fixes several security weaknesses around account handling, payments, refunds, and plugins. Key changes include: preventing Blazor circuits from staying authenticated after a user's adm…

Blazor circuit principal revalidation against live user stateCookie principal rejection when user is administratively restrictedRefund creation serialized with SELECT FOR UPDATE and single open refund enforcement
20ae3337by Andrew Camilleri (Kukks)+1310−41655 files
Vendor flagged security relevance
Informational 19 AI analysisMessage 58 · Thin
BT BTCPay ServerBTCPay Server BitcoinLightning NetworkPayment infrastructure

Translate remaining public pages and remove invoice checkout language option (#7815)

This commit removes a per-invoice checkout language option and translates more public-facing text so it can be localized. It is a feature-cleanup and internationalization change, not a security fix. There is no evidence of a vulnerability …

1ab0a206by Chukwuleta Tobechi+122−9819 files
No security note in commit
Low 47 AI analysisMessage 73 · Adequate
BT BTCPay ServerBTCPay Server BitcoinLightning NetworkPayment infrastructure

Merge pull request #7780 from tumutech/fix-inventory-counts

This commit fixes a bug where BTCPay Server's Point of Sale and Crowdfund inventory counts could become wrong after unpaid or expired invoices. Previously, the system could add inventory back multiple times for the same invoice, making it …

Business-logic flaw: inventory counts could be inflated by duplicate restocking eventsState-machine fix: previous status now tracked to prevent double-countingRace/ordering concern mitigated by deterministic event-barrier for tests
0ba97eacby Nicolas Dorier+187−1611 files
No security note in commit
Low 44 AI analysisMessage 83 · Strong
BT BTCPay ServerBTCPay Server BitcoinLightning NetworkPayment infrastructure

Fix duplicate inventory returns when expired invoices are marked invalid

This commit fixes a bug in BTCPay Server where marking an already-expired invoice as 'invalid' could cause the app inventory to be restocked twice. The fix tracks each invoice's previous status during status transitions and skips the inven…

Business-logic bug causing duplicate inventory restockingStatus-transition event missing prior-state contextInventory manipulation possible through invoice state changes
6d4beac4by tumutech+187−1611 files
No security note in commit
Informational 24 AI analysisMessage 58 · Thin
BT BTCPay ServerBTCPay Server BitcoinLightning NetworkPayment infrastructure

Apply store’s language on customer-facing pages (#7656)

This commit adds a new store-level setting that lets merchants choose which language customers see on public pages such as invoices, payment requests, and pull payments. It also marks more text on those pages as translatable. There is no d…

New per-request language scoping via AsyncLocal with explicit BeginRequest/Restore disposalSignalR hub now applies store language to controller calls that bypass MVC filtersRouteStoreResolver centralizes route-value-to-store-id lookup with 10-minute sliding memory-cache
55d71e89by Chukwuleta Tobechi+449−10422 files
No security note in commit
Low 29 AI analysisMessage 73 · Adequate
BT BTCPay ServerBTCPay Server BitcoinLightning NetworkPayment infrastructure

Merge pull request #7810 from efeesrefinal/fix/wallet-transaction-filters

This commit fixes two bugs in BTCPay Server's wallet transaction API. First, when users filtered transactions by both status (confirmed/unconfirmed) and label, the same transaction could appear twice in the results because the filtering lo…

Fixes duplicate entries in API query results due to incorrect filter compositionReplaces unsafe uint256.Parse with uint256.TryParse to prevent unhandled exceptions on malformed inputAdds server-side input validation returning structured 404 API error for invalid transaction IDs
867209d1by Nicolas Dorier+27−93 files
No security note in commit
Informational 15 AI analysisMessage 38 · Opaque
BT BTCPay ServerBTCPay Server BitcoinLightning NetworkPayment infrastructure

Bump LND to v0.21.8-beta

This commit only updates the version tag of the LND (Lightning Network Daemon) Docker image used in test environments from v0.21.7-beta to v0.21.8-beta. It does not change any production application code, configuration logic, or runtime be…

4bcdc689by r1ckstardev+8−84 files
No security note in commit
Informational 11 AI analysisMessage 35 · Opaque
BT BTCPay ServerBTCPay Server BitcoinLightning NetworkPayment infrastructure

Update NuGet dependencies

This commit simply bumps the version numbers of three NuGet packages: a test reporting helper and two FIDO2 authentication libraries. There is no indication in the commit itself that these updates fix a security problem, and no external re…

9951be68by AlfredTheBot69+3−32 files
No security note in commit
Low 34 AI analysisMessage 45 · Thin
BT BTCPay ServerBTCPay Server BitcoinLightning NetworkPayment infrastructure

Update NuGet dependencies and compatibility

This commit updates many third-party software libraries (NuGet packages) to newer versions and makes small code adjustments so BTCPay Server stays compatible with those updates. The most notable security-relevant change is a rewrite of the…

Dependency version bumps for libraries with known security maintenance value (HtmlSanitizer, Fido2, MailKit, Microsoft.AspNetCore, System.Security.Cryptography.Pkcs)Manual CSV field escaping added to prevent formula/CSV injection in wallet transaction exportsFido2 configuration/AppID handling changed during Fido2 library upgrade
bef0935cby Alfred+55−4411 files
No security note in commit
Informational 24 AI analysisMessage 73 · Adequate
BT BTCPay ServerBTCPay Server BitcoinLightning NetworkPayment infrastructure

Merge pull request #7795 from tumutech/fix-api-key-permission-usage-analysis

This commit fixes a crash in BTCPay Server's admin page that shows how an API key has been used. The crash happened when an API key had permissions tied to more than one store. The fix also corrects how usage counts are recorded and displa…

Fixes a UI crash in an administrative API-key usage pageCorrects aggregation of permission usage records when permissions are scoped to specific storesChanges database upsert to persist full permission string including store scope
c9a45b12by Nicolas Dorier+128−484 files
No security note in commit
Informational 22 AI analysisMessage 50 · Thin
BT BTCPay ServerBTCPay Server BitcoinLightning NetworkPayment infrastructure

Fix API key View Usage crash with multi-store permission usage

This commit fixes a crash in BTCPay Server's admin page that shows how an API key has been used. The crash happened when the same permission (like 'view invoices') was used for more than one store. The fix also corrects how usage counts ar…

Fixes a runtime crash in an administrative API-key usage viewCorrects aggregation of permission usage records that previously could duplicate or conflate store-scoped entriesChanges upsert to persist full permission string including scope, preventing legacy-style policy-only rows from overwriting each other
0ade56dfby tumutech+128−484 files
No security note in commit
Moderate 51 AI analysisMessage 81 · Strong
BT BTCPay ServerBTCPay Server BitcoinLightning NetworkPayment infrastructure

Fix RoundToSignificant for negative amounts (#7782)

This commit fixes a math bug in how BTCPay Server rounds very small negative amounts. Previously, a helper called RoundToSignificant divided by the signed value instead of its absolute value, so negative numbers behaved differently from po…

Rounding/truncation bug in financial amount handlingNegative-amount handling asymmetry that could alter displayed or computed balancesFee-bump calculation could fall below Bitcoin incremental relay fee requirement
6899974aby Amartya Vikram Singh+30−23 files
No security note in commit
Low 49 AI analysisMessage 50 · Thin
BT BTCPay ServerBTCPay Server BitcoinLightning NetworkPayment infrastructure

Fix missing command in API key authorization

This commit fixes a crash in the API key authorization page. When a user submits the form without clicking either the 'Authorize' or 'Cancel' button, the server tries to read a missing command value, which could cause an error. The fix saf…

Null dereference in request handling pathUnhandled exception could lead to error disclosure or availability impactDefensive null-safety hardening in controller action
0f31ef51by Nicolas Dorier+1−11 file
No security note in commit
Moderate 59 AI analysisMessage 73 · Adequate
BT BTCPay ServerBTCPay Server BitcoinLightning NetworkPayment infrastructure

Merge pull request #7610 from TChukwuleta/ft/manifest-redirect-bcp47

This commit hardens how BTCPay Server downloads translation files from GitHub. It adds checks so the app only fetches files from the project's own trusted GitHub organization, blocks automatic web redirects, and supports a new optional red…

Server-side request forgery (SSRF) protection added: URI host/path validation before outbound fetchAutomatic HTTP redirects disabled for translation update clientManifest redirect field introduced with same-origin/org trust validation
381ad1f0by Nicolas Dorier+223−393 files
No security note in commit
Moderate 60 AI analysisMessage 73 · Adequate
BT BTCPay ServerBTCPay Server BitcoinLightning NetworkPayment infrastructure

Support translation repository redirects and BCP 47 identifiers

This commit hardens how BTCPay Server downloads translation files from the internet. It adds checks so the server only fetches language packs and manifest redirects from the trusted btcpayserver GitHub organization, turns off automatic HTT…

Server-side request forgery (SSRF) hardening: URI scheme, host, and path prefix are validated before outbound fetchOpen-redirect / HTTP redirect abuse mitigation: AllowAutoRedirect set to false on the translation HttpClientPath traversal mitigation: pack file paths resolved as relative URIs and validated against trusted org prefix
896299cdby Chukwuleta Tobechi+223−393 files
Vendor flagged security relevance
Low 29 AI analysisMessage 73 · Adequate
BT BTCPay ServerBTCPay Server BitcoinLightning NetworkPayment infrastructure

Merge pull request #7781 from NicolasDorier/cleanup-pre-1.12-migrations

This commit removes old database upgrade scripts (migrations) from before BTCPay Server version 1.12.0 and replaces them with a single consolidated starting schema. It also trims the startup migration task by deleting obsolete data-convers…

Large-scale deletion of database migration historyConsolidation of cumulative schema into a single init SQL scriptRemoval of legacy data-migration logic from startup task
9fbfc6c5by Nicolas Dorier+542−275243 files
No security note in commit
Low 34 AI analysisMessage 45 · Thin
BT BTCPay ServerBTCPay Server BitcoinLightning NetworkPayment infrastructure

Remove migrations prior to BTCPay Server 1.12.0

This commit is a large database cleanup: BTCPay Server removed all old EF Core migration files before version 1.12.0 and replaced them with a single consolidated SQL script that creates the current schema from scratch. It also trims the st…

Large schema consolidation could silently drop or alter constraints/indexes compared to the incremental migration historyRemoval of legacy migration executors means installations upgrading from very old versions must rely on the consolidated init script and any remaining IMigrationExecutor implementationsNo explicit security claim or CVE reference in commit message or diff
57234d0eby Nicolas Dorier+542−275243 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.

Security candidateHarden account and payment handlingby Andrew Camilleri (Kukks) · 20ae3337 · Nov 18, 2026 · 55 filesMessage 45 · ThinHigh 78Details
Commit message · Andrew Camilleri (Kukks)

Harden account and payment handling

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
defensive validationsigning or wallet pathauthentication path
AI analysis · High 78/100

This is a large hardening patch for BTCPay Server that fixes several security weaknesses around account handling, payments, refunds, and plugins. Key changes include: preventing Blazor circuits from staying authenticated after a user's admin rights or account status changes; stopping users from creating multiple simultaneous refunds for the same invoice; requiring extra permission when a payout approval specifies a custom exchange rate; preventing hot-wallet flags from being silently carried over to a different wallet; adding rate limits to anonymous monetization signups and LNURL invoice generation; fixing PayJoin transaction locking so funds are not accidentally double-spent; and making plugin dependency downloads safer against cycles and partial installs. The commit message and code comments frame these as hardening measures rather than a single critical vulnerability.

Security candidateMerge pull request #7780 from tumutech/fix-inventory-countsby Nicolas Dorier · 0ba97eac · Nov 17, 2026 · 11 filesMessage 73 · AdequateLow 47Details
Commit message · Nicolas Dorier

Merge pull request #7780 from tumutech/fix-inventory-counts

Fix Point of Sale and Crowdfund Perks inventory counts after unpaid invoices

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
boot or update pathauthentication pathmerge-commit duplicate discount
AI analysis · Low 47/100

This commit fixes a bug where BTCPay Server's Point of Sale and Crowdfund inventory counts could become wrong after unpaid or expired invoices. Previously, the system could add inventory back multiple times for the same invoice, making it look like more items were available than actually were. The fix tracks the invoice's previous status so inventory is only adjusted once. The commit also adds a way for tests to wait until background event processing is finished.

Security candidateFix duplicate inventory returns when expired invoices are marked invalidby tumutech · 6d4beac4 · Nov 17, 2026 · 11 filesMessage 83 · StrongLow 44Details
Commit message · tumutech

Fix duplicate inventory returns when expired invoices are marked invalid

Track previous invoice status consistently for transition events and verify inventory updates using cancellable event queue barriers.

Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>

83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
boot or update pathauthentication path
AI analysis · Low 44/100

This commit fixes a bug in BTCPay Server where marking an already-expired invoice as 'invalid' could cause the app inventory to be restocked twice. The fix tracks each invoice's previous status during status transitions and skips the inventory restock if the invoice was already expired. It also adds a test-only helper to wait for background event processing. The bug is a logic error, not an externally exploitable vulnerability, but it could let a merchant or customer manipulate inventory counts in point-of-sale apps.

Security candidateMerge pull request #7795 from tumutech/fix-api-key-permission-usage-analysisby Nicolas Dorier · c9a45b12 · Nov 11, 2026 · 4 filesMessage 73 · AdequateInformational 24Details
Commit message · Nicolas Dorier

Merge pull request #7795 from tumutech/fix-api-key-permission-usage-analysis

Fix API key View Usage crash with multi-store permission usage

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
credential or privilege statemerge-commit duplicate discount
AI analysis · Informational 24/100

This commit fixes a crash in BTCPay Server's admin page that shows how an API key has been used. The crash happened when an API key had permissions tied to more than one store. The fix also corrects how usage counts are recorded and displayed so store-specific permissions are counted separately instead of being lumped together. It is primarily a reliability/functional bug fix; there is no direct evidence it created or fixed a security vulnerability that an attacker could exploit.

Security candidateFix API key View Usage crash with multi-store permission usageby tumutech · 0ade56df · Nov 10, 2026 · 4 filesMessage 50 · ThinInformational 22Details
Commit message · tumutech

Fix API key View Usage crash with multi-store permission usage

50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
credential or privilege state
AI analysis · Informational 22/100

This commit fixes a crash in BTCPay Server's admin page that shows how an API key has been used. The crash happened when the same permission (like 'view invoices') was used for more than one store. The fix also corrects how usage counts are stored and displayed so that store-specific permissions are counted separately instead of being lumped together or duplicated. There is no direct evidence this was a security vulnerability, but the bug could have caused misleading usage statistics for API keys.

Security candidateFix missing command in API key authorizationby Nicolas Dorier · 0f31ef51 · Nov 2, 2026 · 1 fileMessage 50 · ThinLow 49Details
Commit message · Nicolas Dorier

Fix missing command in API key authorization

50/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Names security-relevant behavior explicitly! No meaningful explanatory body
Why it was queued
access control
AI analysis · Low 49/100

This commit fixes a crash in the API key authorization page. When a user submits the form without clicking either the 'Authorize' or 'Cancel' button, the server tries to read a missing command value, which could cause an error. The fix safely handles the missing value by using a question mark before converting it to lowercase. This is a defensive hardening change rather than a clear-cut security vulnerability, but an unhandled exception could potentially disrupt service or produce unexpected behavior.

Security candidateMerge pull request #7610 from TChukwuleta/ft/manifest-redirect-bcp47by Nicolas Dorier · 381ad1f0 · Oct 30, 2026 · 3 filesMessage 73 · AdequateModerate 59Details
Commit message · Nicolas Dorier

Merge pull request #7610 from TChukwuleta/ft/manifest-redirect-bcp47

Support translation repository redirects and language identifiers

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
boot or update pathmerge-commit duplicate discount
AI analysis · Moderate 59/100

This commit hardens how BTCPay Server downloads translation files from GitHub. It adds checks so the app only fetches files from the project's own trusted GitHub organization, blocks automatic web redirects, and supports a new optional redirect field in the manifest only if it also stays within that trusted organization. It also adds a new BCP47 language identifier field. The changes are defensive: they close paths where a malicious or compromised manifest could trick the server into downloading files from an attacker's site.

Security candidateSupport translation repository redirects and BCP 47 identifiersby Chukwuleta Tobechi · 896299cd · Oct 30, 2026 · 3 filesMessage 73 · AdequateModerate 60Details
Commit message · Chukwuleta Tobechi

Support translation repository redirects and BCP 47 identifiers

Allow translation manifests to delegate to another BTCPay Server repository and expose standardized language tags. Validate manifest and pack download destinations, disable automatic HTTP redirects, and resolve pack URIs relative to the manifest with BOM-aware decoding.

Co-authored-by: r1ckstardev <r1ckstardev@users.noreply.github.com>
Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
defensive validationboot or update path
AI analysis · Moderate 60/100

This commit hardens how BTCPay Server downloads translation files from the internet. It adds checks so the server only fetches language packs and manifest redirects from the trusted btcpayserver GitHub organization, turns off automatic HTTP redirects, and handles UTF-8 text files that start with a special byte marker. The changes appear to be defensive security improvements rather than a fix for a known active attack.

Security candidateFix JavaScript errors and browser warnings in payment workflowsby Nicolas Dorier · 177462e0 · Oct 29, 2026 · 12 filesMessage 50 · ThinInformational 21Details
Commit message · Nicolas Dorier

Fix JavaScript errors and browser warnings in payment workflows

50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
signing or wallet pathboot or update pathauthentication path
AI analysis · Informational 21/100

This commit fixes a collection of small UI and JavaScript bugs in BTCPay Server's payment workflows. The changes include correcting how dates are formatted in form fields, fixing a passphrase-confirmation validation bug, changing some HTTP status codes from 404 to 204, adding a missing JSON endpoint for payment-request labels, and cleaning up minor HTML/preload issues. Most fixes are functional or user-experience improvements rather than security vulnerabilities. The most security-relevant item is the passphrase-confirmation fix, which previously could have allowed a form to submit when passphrases did not match because of a JavaScript error, but the practical impact is limited because server-side validation would still apply.

Security candidateFix wallet address, email credential and invoice policy handling (#7768)by Nicolas Dorier · 7cc69750 · Oct 29, 2026 · 10 filesMessage 58 · ThinModerate 57Details
Commit message · Nicolas Dorier

Fix wallet address, email credential and invoice policy handling (#7768)

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
credential or privilege statesigning or wallet path
AI analysis · Moderate 57/100

This commit fixes several bugs in BTCPay Server. The most notable changes are: (1) email SMTP passwords are now only reused when the mail server hasn't changed, preventing a stored password from being sent to a different server; (2) anonymous BitPay API users can no longer override a store's invoice confirmation-speed policy; and (3) wallet change events are now published when payment methods are added or removed, and cached receive addresses are cleared when a wallet's derivation scheme changes, which helps prevent stale or wrong addresses from being handed out. The commit is described by the vendor as a bug-fix, not a security patch, and no CVE or independent researcher attribution is present in the materials.

Security candidateMerge branch 'fix/sanitize-rich-text-editors'by Nicolas Dorier · 814aaafb · Oct 29, 2026 · 12 filesMessage 45 · ThinHigh 71Details
Commit message · Nicolas Dorier

Merge branch 'fix/sanitize-rich-text-editors'

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
defensive validationboot or update pathmerge-commit duplicate discount
AI analysis · High 71/100

This commit hardens how BTCPay Server handles rich-text fields (like item descriptions and email bodies). It replaces a client-side editor filter with server-side HTML sanitization, strips out HTML form elements such as <input> and <button>, and removes inline <style> blocks from rich text. These changes reduce the risk that a store owner or attacker could inject malicious HTML that tricks users into unintended actions or leaks information. The patch also expands the list of allowed embedded video/social-media sites and adds unit tests for the new behavior.

Security candidateFix point of sale inventory undercount on multi-unit ordersby Andrew Camilleri (Kukks) · d76427a0 · Oct 28, 2026 · 1 fileMessage 50 · ThinLow 49Details
Commit message · Andrew Camilleri (Kukks)

Fix point of sale inventory undercount on multi-unit orders

50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
boot or update pathauthentication path
AI analysis · Low 49/100

This commit fixes a bug in BTCPay Server's point-of-sale inventory tracking. When a customer bought multiple units of an item in a single order, the system could mistakenly count the purchase as only one unit sold, causing the inventory count to stay too high. The fix ensures the full shopping cart is used to update inventory instead of a single-item fallback taking over.

Security candidateCap pre-authentication BitPay request body readby Andrew Camilleri (Kukks) · c93be370 · Oct 28, 2026 · 1 fileMessage 50 · ThinModerate 67Details
Commit message · Andrew Camilleri (Kukks)

Cap pre-authentication BitPay request body read

50/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Names security-relevant behavior explicitly! No meaningful explanatory body
Why it was queued
access controlauthentication path
AI analysis · Moderate 67/100

This change limits how much data BTCPay Server reads from a BitPay-compatible authentication request before the user is fully authenticated. Previously, the server could read an unbounded amount of request data into memory, which could let an attacker send a huge request body and waste server memory or disk space. The patch caps the body at 1 MB and rejects oversized requests.

Security candidateUpdate NBitcoin and avoid repeated PSBT finalization work (#7765)by Nicolas Dorier · 37bc0693 · Oct 28, 2026 · 4 filesMessage 58 · ThinInformational 23Details
Commit message · Nicolas Dorier

Update NBitcoin and avoid repeated PSBT finalization work (#7765)

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 boundarysigning or wallet path
AI analysis · Informational 23/100

This commit updates a Bitcoin library (NBitcoin) to a newer version and simplifies how the app checks whether a transaction proposal (PSBT) is properly finalized. It also tightens access control: if a wallet command is unrecognized, the request is now rejected with a bad-request error instead of falling back to a weaker 'view only' permission. The changes look like routine maintenance plus a small hardening fix, not a clear response to a disclosed security bug.

Security candidateFix LNURL authentication, rate expansion and subscription credit rounding (#7762)by Nicolas Dorier · f4a1b7c7 · Oct 28, 2026 · 13 filesMessage 63 · AdequateModerate 63Details
Commit message · Nicolas Dorier

Fix LNURL authentication, rate expansion and subscription credit rounding (#7762)

63/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Links an issue, advisory, or supporting reference✓ Names security-relevant behavior explicitly! No meaningful explanatory body
Why it was queued
access controlauthentication path
AI analysis · Moderate 63/100

This commit fixes several unrelated bugs in BTCPay Server. The most security-relevant changes are: (1) LNURL authentication now uses expiring challenges tied to a user's security stamp, preventing old or stale login challenges from being reused; (2) notifications are now filtered by store permission policy, so users without the right role no longer receive sensitive payout/invoice notifications; (3) subscription credit rounding is changed so customers cannot be credited more than they actually paid; and (4) a memory-cache fix prevents lightning address lookups from returning stale null results. The rate-rule change adds a length limit to prevent very large nested rate expressions from being processed.

Security candidateFix form permissions, payment updates and onion validation (#7759)by Nicolas Dorier · 3b84c69a · Oct 28, 2026 · 11 filesMessage 58 · ThinModerate 65Details
Commit message · Nicolas Dorier

Fix form permissions, payment updates and onion validation (#7759)

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
credential or privilege state
AI analysis · Moderate 65/100

This commit fixes three separate issues in BTCPay Server: (1) private forms could be submitted by unauthorized users because permission checks were missing, (2) payment updates could trigger errors or incorrect events when multiple payments belonged to the same invoice, and (3) Tor (.onion) address validation was too simple and could be bypassed or misused. It also fixes two JavaScript error messages so they display as plain text instead of HTML, preventing possible cross-site scripting (XSS) when error content is shown to users.

Security candidateFix store isolation and wallet policy enforcement (#7754)by Nicolas Dorier · 0d8b801a · Oct 28, 2026 · 13 filesMessage 58 · ThinModerate 65Details
Commit message · Nicolas Dorier

Fix store isolation and wallet policy enforcement (#7754)

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 pathboot or update path
AI analysis · Moderate 65/100

This commit fixes several authorization and isolation bugs in BTCPay Server. The most important changes prevent a user from seeing other users' store apps, stop non-admins from creating cold wallets when the server policy forbids it, and prevent a malicious store's custom CSS from being loaded in the admin backend. It also fixes a few data-update bugs that could let a request change fields it shouldn't, and a cancellation-token leak.

Security candidateHarden Bitpay compatibility APIby Nicolas Dorier · f3d09d93 · Oct 28, 2026 · 3 filesMessage 35 · OpaqueModerate 61Details
Commit message · Nicolas Dorier

Harden Bitpay compatibility API

35/100 · OpaqueMessage clarity
✓ Descriptive subject! No meaningful explanatory body! Opaque security-relevant change
Why it was queued
defensive validationauthentication path
AI analysis · Moderate 61/100

This commit tightens the Bitpay-compatible authentication path in BTCPay Server. Previously, a request authenticated with a valid cryptographic SIN could act as the first token linked to that account, regardless of which token the caller actually supplied. The patch now reads the token from the request and only authorizes the matching token, preventing one token's privileges from being used in place of another's. The commit title says 'Harden' and no explicit security disclosure is provided, so the exact vulnerability is inferred from the code change rather than stated by the vendor.

Security candidateHandle store authorization resourcesby Nicolas Dorier · 814321cb · Oct 28, 2026 · 1 fileMessage 40 · ThinModerate 63Details
Commit message · Nicolas Dorier

Handle store authorization resources

40/100 · ThinMessage clarity
✓ Descriptive subject✓ Names security-relevant behavior explicitly! No meaningful explanatory body
Why it was queued
access controlauthentication path
AI analysis · Moderate 63/100

This commit changes how BTCPay Server figures out which store a user is acting on behalf of during permission checks. Previously, when an authorization policy checked a scoped permission, the code only looked at the raw 'resource' object as a plain string. The patch adds a fallback: if the resource is a StoreData object, use that store's ID as the scope. This likely fixes a bug where store-scoped permissions were not being resolved correctly in certain code paths, which could allow a user with permission on one store to perform actions on another store or have their permissions evaluated incorrectly. However, the diff is tiny and partial, so the exact attack path is not visible from this commit alone.

Security candidateSeparate password lockouts from account restrictionsby Nicolas Dorier · f7b8f4cf · Oct 27, 2026 · 19 filesMessage 50 · ThinModerate 61Details
Commit message · Nicolas Dorier

Separate password lockouts from account restrictions

50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
access controlauthentication path
AI analysis · Moderate 61/100

This commit rewrites how BTCPay Server blocks users. Previously, the app reused ASP.NET Identity's password-lockout mechanism to disable accounts permanently (for admin bans) and for subscription/monetization reasons. That caused a side effect: too many wrong password attempts could lock an account and also disable its API keys. The change introduces a separate 'user access restrictions' table so that password lockouts and account disabling are independent. API keys now keep working during a temporary password lockout, while admin or monetization restrictions still block access. The commit also adds a migration that converts existing permanent lockouts into the new restriction records.

Security candidateRespect rejected API key permissions (#7744)by Nicolas Dorier · 629a0f48 · Oct 27, 2026 · 2 filesMessage 53 · ThinModerate 62Details
Commit message · Nicolas Dorier

Respect rejected API key permissions (#7744)

53/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
Why it was queued
credential or privilege state
AI analysis · Moderate 62/100

This commit fixes a bug in BTCPay Server's API key authorization flow. When a user was asked to approve a set of permissions for an app, unchecking (rejecting) certain permissions was being ignored. As a result, the issued API key could end up with permissions the user explicitly rejected. The fix ensures rejected permissions are not granted and that the system correctly asks again later if an app requests a previously rejected permission.

Security candidateMerge pull request #7743 from NicolasDorier/harden-json-parsingby Nicolas Dorier · 6ab61a90 · Oct 27, 2026 · 48 filesMessage 73 · AdequateModerate 63Details
Commit message · Nicolas Dorier

Merge pull request #7743 from NicolasDorier/harden-json-parsing

Harden JSON parsing against date coercion and excessive nesting

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
defensive validationcryptography-sensitive pathsigning or wallet pathparser or protocol pathmerge-commit duplicate discount
AI analysis · Moderate 63/100

This commit replaces many direct JSON parsing calls across BTCPay Server with a new, stricter helper called JsonParser. The helper prevents two specific problems: it no longer turns strings that look like dates into real date values automatically, and it limits how deeply nested JSON structures can be. These changes reduce the risk that an attacker could craft unusual JSON data that causes the server to misinterpret values or crash during processing. The commit also adds a test showing that deeply nested and date-like strings are handled safely.

Security candidateHarden JSON parsingby Nicolas Dorier · 9aac2c81 · Oct 27, 2026 · 48 filesMessage 28 · OpaqueModerate 63Details
Commit message · Nicolas Dorier

Harden JSON parsing

28/100 · OpaqueMessage clarity
✓ Subject identifies a change! No meaningful explanatory body! Opaque security-relevant change
Why it was queued
defensive validationcryptography-sensitive pathsigning or wallet pathparser or protocol path
AI analysis · Moderate 63/100

This commit replaces many uses of the standard Newtonsoft JSON parser with a new, stricter 'JsonParser' helper across the BTCPay Server codebase. The new parser prevents date-looking strings from being silently turned into real dates, rejects JSON that contains extra trailing content, and limits how deeply nested JSON can be. These changes are defensive hardening: they reduce the chance that stored data changes its meaning after being saved and reloaded, and they block unusually deep JSON that could be used to exhaust server resources. The commit does not by itself fix a specific, known exploit, but it closes several risky parsing behaviors.

Security candidateFix Basic auth passwords containing colonsby Nicolas Dorier · 5e9d4c4a · Oct 26, 2026 · 2 filesMessage 50 · ThinLow 47Details
Commit message · Nicolas Dorier

Fix Basic auth passwords containing colons

50/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Names security-relevant behavior explicitly! No meaningful explanatory body
Why it was queued
access controlauthentication path
AI analysis · Low 47/100

This commit fixes a bug in BTCPay Server's Basic authentication handling. Previously, if a user's password contained a colon character (like 'Kitten0@:with:colons'), the system would split the username:password string at every colon and only use the part before the second colon as the password. This meant users with colons in their passwords could not log in properly through the Greenfield API's Basic auth. The fix now splits only on the first colon, treating everything after it as the password.

Security candidateHandle missing API key command permissionsby Nicolas Dorier · 26920fac · Oct 26, 2026 · 3 filesMessage 45 · ThinLow 44Details
Commit message · Nicolas Dorier

Handle missing API key command permissions

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
credential or privilege state
AI analysis · Low 44/100

This commit fixes a bug in BTCPay Server's API key management page. Previously, if a user removed a permission checkbox from the form and then clicked a related command button, the server would crash with an error because it assumed the permission was always present. The fix checks whether the permission is missing and returns a clean 'Bad Request' error instead of crashing.