This article breaks down what happened, who was affected, what emergency actions operators needed to take, and the broader security landscape during that tumultuous week.
The flaw exploited in BTCPay Server was a logic error in the API authentication layer of the Greenfield API, the interface used by external integrators, automated systems, and wallet backends . Crucially, it allowed an unauthenticated remote attacker to exfiltrate LND
.macaroon credential files — the access tokens that govern permissions on Lightning Network nodes .
Once attackers obtained the macaroon credentials, they could take full control of the connected LND node and empty its channel balances . The vulnerability was discovered and responsibly disclosed by the Bitcoin Red Team
.
Important clarification: This was a software/application-layer flaw. Bitcoin's underlying protocol was not compromised
. The attack targeted the self-hosted payment processor's authentication logic, not the Bitcoin blockchain or the Lightning Network protocol itself.
The vulnerability specifically affected configurations that used LND (Lightning Network Daemon), the most widely used software for operating a Lightning node .
Several well-known Bitcoin organizations running BTCPay confirmed that their Lightning nodes had been drained. Foundation, a hardware wallet manufacturer, and Citadel21, a bitcoin publication, were among the confirmed victims .
BTCPay Server and its lead maintainer Nicolas Dorier issued an urgent advisory with two imperatives :
Additionally, operators were told they must also revoke and regenerate all LND macaroon credentials, because patching only stopped new credential theft. Credentials already stolen during the exploit window remained valid and could still be used to drain funds . The project also recommended upgrading NBXplorer, BTCPay's wallet-tracking backend, to version 2.6.10
.
The BTCPay exploit was the second major Bitcoin infrastructure breach within roughly ten days. Both occurred in late July and early August 2026, creating what some in the press called Bitcoin's "exploit week" .
A critical vulnerability in Coldcard firmware version 4.0.0, present since March 2021, caused the device to bypass its dedicated hardware randomness chip during key generation, instead using a predictable software substitute . This made seed phrases enumerable by attackers.
Attackers exploited this to steal over $116 million in Bitcoin from more than 5,200 addresses across four waves of thefts that began on July 30 . Galaxy Research tracked the on-chain movements and identified at least 15 different attackers exploiting the flaw
. The estimated total stolen ranged from $116 million to over $130 million depending on the valuation at the time of reporting
.
In direct response to the Coldcard and BTCPay incidents, a volunteer group of Bitcoin developers launched a coordinated security audit using AI tooling. Within 24 hours, they identified nearly 5,000 security vulnerabilities across roughly 400 projects, with the situation described as "extremely bad" . The findings included 85 critical and 635 high-severity bugs, most of which were already verified by project owners
.
The BTCPay Server incident and the parallel Coldcard exploit represent a watershed moment for Bitcoin infrastructure security. The events have intensified calls for more rigorous code review, automated security tooling, and faster response protocols across the open-source Bitcoin ecosystem.