PyPA Advisory Database
PYSEC-2025-16
Details
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
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | lnbits | All versions before 0.12.12 (fixed in 0.12.12) |