Vulnerability · Published Apr 6, 2025 · Assigned by GitHub_M
CVE-2025-32013Server-Side Request Forgery via LNURL Authentication Callback in LNbits Lightning Network Payment System
Critical 9.3
In plain English
A critical-severity server-side request forgery in lnbits from lnbits. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
LNbits is a Lightning wallet and accounts system. A Server-Side Request Forgery (SSRF) vulnerability has been discovered in LNbits' LNURL authentication handling functionality. When processing LNURL authentication requests, the application accepts a callback URL parameter and makes an HTTP request to that URL using the httpx library with redirect following enabled. The application doesn't properly validate the callback URL, allowing attackers to specify internal network addresses and access internal resources.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | lnbits | no fix listed | GHSA-qp8j-p87f-c8cc |
| PyPI | lnbits | 0.12.12 | PYSEC-2025-16 |
Affected products (as reported)
Weakness: CWE-918 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
References
- https://github.com/lnbits/lnbits/security/advisories/GHSA-qp8j-p87f-c8cc x_refsource_CONFIRM