Lightning, BTCPay: is your bitcoin safe?
In short: in early November 2026, attackers drained the hot wallets of merchants using BTCPay Server, the free software for accepting bitcoin without an intermediary. The targeted servers ran version 2.4.1 or older. It is the third alert in three months: in August, Lightning nodes connected to BTCPay had already been drained, and in October Core Lightning reported attacks on unpatched nodes. The common thread: flaws found faster, often with the help of artificial intelligence. If you self-host: update to BTCPay 2.4.7, and if you were on 2.4.1 or below, move to a new server and a new wallet. And keep only the bare minimum online.
Updated on 6 November 2026. This article is not financial advice.
Three alerts in three months
| Date (2026) | Software | What happened |
|---|---|---|
| 7 August | BTCPay Server 2.4.2 | Fix for a critical flaw already exploited: an attacker could remotely obtain the access keys (macaroons) of the LND Lightning node and drain it |
| 28 August and 22 September | Core Lightning 26.06.7 then 26.06.8 | Fixes for several flaws, after a flood of reports, many of them generated by AI |
| 2 October | Core Lightning | Alert: attackers are targeting nodes on 26.06.7 or older |
| 22 October | Bitcoin Core | New policy: flaws that an AI finds easily will be fixed and disclosed without a long embargo |
| 29 October | BTCPay Server 2.4.7 | Emergency update: one critical and several medium-severity flaws, reported by Anthropic's open-source code scanner |
| 1 and 2 November | BTCPay Server | Hot wallets drained on servers running 2.4.1 or older |
Sources: Cointelegraph (2026a, 2026b); Forklog (2026a, 2026b); Decrypt (2026); Lakshmanan (2026).
According to Bitquery data reported by The Hacker News, the November wave took 18.38 BTC and 3,405 LTC, about $1.62 million, in 682 transfers; 87% of the funds left on 1 November (Lakshmanan, 2026). BTCPay has not published an official loss figure or the technical details of the intrusion.
BTCPay Server: what was attacked
BTCPay Server is free software that a merchant installs on their own server, or with a hosting provider, to accept bitcoin and Lightning payments without a provider holding the funds. That is its strength, and here its weakness: nobody but the operator is responsible for its security.
August: the Lightning node's keys
The flaw fixed in 2.4.2 allowed an unauthenticated attacker to obtain the macaroons, the files that act as access keys to the LND Lightning node. With them, the attacker could close channels and take the funds. At least two well-known operators, Foundation (maker of the Passport wallet) and Citadel21, had their node drained (Cointelegraph, 2026a). Important point: updating was not enough. Keys already stolen stayed valid until they were regenerated; version 2.4.2 does this automatically on standard installations, but not for access opened by other routes (Cointelegraph, 2026a).
November: the hot wallets
A hot wallet stores the spending key on the server, so that BTCPay can send payments automatically (refunds, payouts). BTCPay's own documentation labels this option as dangerous (Decrypt, 2026). According to its founder Nicolas Dorier, the attackers logged in with administrator rights on servers running 2.4.1 or older; BTCPay says they exploited, by a different method, the flaw fixed in 2.4.2 (Analytics Insight, 2026; Lakshmanan, 2026). No credible theft has been reported on version 2.4.7.
Why now: AI finds flaws faster
This is no coincidence. Since the summer, AI tools have been scanning open-source code and finding flaws in bulk:
- Core Lightning received a wave of reports in August, largely AI-generated, some of which turned out to be real (Forklog, 2026a).
- BTCPay 2.4.7 fixes flaws reported by Anthropic's open-source code scanner (BleepingComputer, 2026).
- Bitcoin Core changed its policy on 22 October: keeping a flaw secret for months no longer protects anyone when an AI can find it again with one prompt. These "easily discoverable" flaws will now be fixed and announced at the same time (Zimmerman, 2026).
The consequence for users: the time between a fix being published and the first attack is shrinking. At BTCPay, the first theft observed came less than a day after version 2.4.7 was released (Lakshmanan, 2026). Updating "when there's time" is no longer an option for software that handles money.
These announcements do not mean that Bitcoin itself is broken: its cryptography and protocol are not in question. It is the software around it (payment servers, Lightning nodes) that has flaws.
Who carries the risk? You do
When you self-host, there is no licensed provider, no insurance and no recourse: if your server is drained, the money is lost, unless the thief is found.
| Option | Who holds the keys | Main risk | Recourse |
|---|---|---|---|
| Self-hosted BTCPay or Lightning node | You (on the server) | Unpatched flaw, compromised server | None |
| BTCPay with a hosting provider | You (on a rented server) | Same; some hosts shut down old versions automatically | Depends on the host's contract, often limited |
| Payments through a MiCA-licensed provider | The provider | Provider bankruptcy or hack | Liability of the licensed provider for incidents attributable to it |
| Custodial Lightning wallet (run by a company) | The company | It may be unlicensed, close down or change its terms | Depends on its status |
The choice is not "safe" versus "risky": each option shifts the risk. Our article Binance hack: what it means for Belgians shows what a provider's promise is worth, and what it is not. To check whether a crypto payment provider is licensed:
On the European side, the Cyber Resilience Act has required manufacturers of digital products to report actively exploited vulnerabilities since 11 September 2026; its other obligations apply from 11 December 2027. It will not make self-hosted free software liable for your losses.
Merchants: the BTCPay checklist
- Check your version (at the bottom of the interface) and update to 2.4.7 or later: Server Settings > Maintenance > Update, or
./btcpay-update.shon a Docker installation (BleepingComputer, 2026). - If you were on 2.4.1 or older, BTCPay recommends moving to a new server with a new wallet, even if you have not noticed any theft. In case of theft or suspected access, treat the whole machine and all its secrets as compromised (Lakshmanan, 2026).
- Turn on two-factor authentication, change administrator passwords and rotate API keys.
- If you use Lightning with LND, regenerate the macaroons, especially if the node is reachable by a route other than BTCPay (proxy, Tor, open port).
- Limit the hot wallet to what day-to-day operations require; move the rest to a wallet whose keys are not on the server, such as a hardware wallet.
- Send your logs to BTCPay's security team if you are affected.
Individuals with a Lightning node or wallet
- Core Lightning: upgrade to 26.06.8 or later. If you cannot update right away, the team recommends restarting with the
--offlineoption rather than switching the node off: it keeps watching the blockchain and can react if a peer tries to cheat (Forklog, 2026a; Crowdfund Insider, 2026). - Docker: check the image digest. Some images tagged 26.06.7 between late August and early September did not contain the fixes (Crowdfund Insider, 2026).
- Lightning wallet on your phone: update the app, and remember that a wallet where you have no recovery phrase is usually custodial: the company holds your funds.
- Keep only pocket money on Lightning. For savings, a classic bitcoin wallet on a hardware device remains easier to secure. Traps at signing time are covered in Speed up a bitcoin payment without being robbed.
True or false?
"Bitcoin was hacked." False. The attacks targeted outdated payment software and Lightning nodes, not the Bitcoin protocol.
"Updating BTCPay is enough to protect me." Not always. If keys or access credentials were stolen before the update, they remain valid: they must be renewed, or even the server and wallet replaced.
"A hot wallet on my server is like my bank account." False. Nobody pays you back if it is stolen; it is cash in a till connected to the internet.
"Flaws found by AI are science fiction." False. BTCPay, Core Lightning and Bitcoin Core all adapted their security handling in 2026 because of flaws found with AI tools.
"Switching off my Lightning node is the safest option." Not necessarily. A node that is off cannot see a peer publishing an old channel state; Core Lightning's offline mode keeps that watch going.
Test yourself
Disclaimer
This article is for information only and is neither investment advice nor personalised technical advice. The information comes from security advisories and articles published as of 6 November 2026; BTCPay had not yet published the technical details of the November attacks. Crypto-assets carry significant risks, including total loss.
Sources
Analytics Insight. (2026). BTCPay Server hot wallets drained as old versions face attacks. https://www.analyticsinsight.net/news/btcpay-server-hot-wallets-drained-as-old-versions-face-attacks
BleepingComputer. (2026, November 2). BTCPay Server warns of hot wallet crypto thefts on outdated instances. https://bleepingcomputer.com/news/security/btcpay-server-warns-of-hot-wallet-thefts-targeting-outdated-instances
Cointelegraph. (2026a, August 9). BTCPay restricts remote Lightning access after attackers steal funds. https://cointelegraph.com/news/btcpay-restricts-remote-lightning-access-after-attackers-steal-funds
Cointelegraph. (2026b, October 2). Core Lightning warns attackers are targeting unpatched Bitcoin nodes. https://cointelegraph.com/news/core-lightning-urges-upgrade-amid-reports-attackers-targeting-unpatched-nodes
Crowdfund Insider. (2026, October). Open-source Bitcoin Lightning implementation Core Lightning warns that attackers are targeting unpatched nodes. https://crowdfundinsider.com/2026/10/315000-open-source-bitcoin-lightning-implementation-core-lightning-warns-that-attackers-are-targeting-unpatched-nodes
Decrypt. (2026, November). BTCPay tells merchants to switch off servers amid hot wallet attack reports. https://decrypt.co/382324/btcpay-tells-merchants-to-switch-off-servers-amid-hot-wallet-attack-reports
Forklog. (2026a, October). Core Lightning warns of attacks on unpatched nodes. https://forklog.com/en/core-lightning-warns-of-attacks-on-unpatched-nodes/
Forklog. (2026b, October). Bitcoin Core updates vulnerability disclosure policy due to AI. https://forklog.com/en/bitcoin-core-updates-vulnerability-disclosure-policy-due-to-ai/
Lakshmanan, R. (2026, November 3). Hackers exploit BTCPay Server flaw to steal Bitcoin and Litecoin from hot wallets. The Hacker News. https://thehackernews.com/2026/11/hackers-exploit-btcpay-server-flaw-to.html
Zimmerman, M. (2026, October 23). Bitcoin Core ends long embargoes for bugs AI can rediscover. Bitcoin Magazine. https://bitcoinmagazine.com/news/bitcoin-core-ends-long-embargoes