BTCPay Server Docker deployments before 2.4.2 publicly proxy the Lightning Network Daemon (LND) REST API at /lnd-rest/btc/ through the bundled nginx reverse proxy, exposing the LND node control API to unauthenticated remote callers. This is the vector behind CVE-2026-119757 (LND macaroon credential disclosure), which was actively exploited in the wild to steal funds. BTCPay Server 2.4.2 removed the public /lnd-rest/btc/ proxy ("Do not expose LND anymore") and force-regenerated all macaroons. This template detects the exposed proxy by eliciting LND's unauthenticated "expected 1 macaroon, got 0" error from /lnd-rest/btc/v1/getinfo.
id: CVE-2026-119757
info:
name: BTCPay Server < 2.4.2 - Unauthenticated LND REST API Exposure
author: purnendu-rai
severity: critical
description: |
BTCPay Server Docker deployments before 2.4.2 publicly proxy the Lightning Network Daemon (LND) REST API at /lnd-rest/btc/ through the bundled nginx reverse proxy, exposing the LND node control API to unauthenticated remote callers. This is the vector behind CVE-2026-119757 (LND macaroon credential disclosure), which was actively exploited in the wild to steal funds. BTCPay Server 2.4.2 removed the public /lnd-rest/btc/ proxy ("Do not expose LND anymore") and force-regenerated all macaroons. This template detects the exposed proxy by eliciting LND's unauthenticated "expected 1 macaroon, got 0" error from /lnd-rest/btc/v1/getinfo.
impact: |
The LND node control API is reachable by unauthenticated remote attackers. Together with the macaroon credential exposure addressed by the fix, an attacker can gain full control of the LND node and move or steal funds.
remediation: |
Upgrade BTCPay Server to 2.4.2 or later (and LND to 0.21.1 or later), which removes the public LND REST proxy and regenerates all macaroons. Rotate LND credentials and move funds if the instance was ever exposed. Never expose the LND API to untrusted networks.
reference:
- https://nvd.nist.gov/vuln/detail/CVE-2026-119757
- https://blog.btcpayserver.org/security-advisory-btcpay-server-2-4-2/
- https://www.vulncheck.com/advisories/btcpay-server-lnd-macaroon-credential-file-disclosure
- https://github.com/btcpayserver/btcpayserver-docker/commit/21ea2e122
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2026-119757
epss-score: 0.02335
epss-percentile: 0.84109
cwe-id: CWE-552
metadata:
verified: true
max-request: 1
vendor: btcpayserver
product: btcpayserver
shodan-query: http.title:"BTCPay Server"
fofa-query: title="BTCPay Server"
tags: cve,cve2026,btcpay,btcpayserver,lnd,lightning,exposure,unauth,vkev
http:
- method: GET
path:
- "{{BaseURL}}/lnd-rest/btc/v1/getinfo"
matchers-condition: and
matchers:
- type: word
part: body
words:
- "expected 1 macaroon, got 0"
- type: word
part: content_type
words:
- "application/json"
- type: status
status:
- 500
# digest: 4b0a00483046022100d6b2511b5f42e044e8ca4552771304fd9168fb16e0e46e67622aec393eef5fe90221009bc9cbb074232bb8abc8d611e7096355317efb90baf90569cd34e6ef43e439f5:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.