VDB
Sign up
HIGH7.5

PYSEC-2025-16

Quick fix

PYSEC-2025-16 — lnbits: upgrade to the fixed version with the command below.

pip install --upgrade 'lnbits>=0.12.12'

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/lnbits
Introduced in: 0Fixed in: 0.12.12
Fixpip install --upgrade 'lnbits>=0.12.12'

References