Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. lnbits
  4. ›
  5. CVE-2025-32013

CVE-2025-32013: LNbits Lightning Network Payment System Vulnerable to Server-Side Request Forgery via LNURL Authentication Callback

April 7, 2025 (updated April 10, 2025)

A Server-Side Request Forgery (SSRF) vulnerability has been discovered in LNbits’ LNURL authentication handling functionality. The vulnerability exists in the LNURL authentication callback process where the application makes HTTP requests to user-provided callback URLs and follows redirects without proper validation.

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.

This vulnerability allows an attacker to make the application send HTTP requests to arbitrary internal network locations, potentially exposing sensitive information or accessing internal services that should not be accessible from the internet.

References

  • github.com/advisories/GHSA-qp8j-p87f-c8cc
  • github.com/lnbits/lnbits
  • github.com/lnbits/lnbits/security/advisories/GHSA-qp8j-p87f-c8cc
  • github.com/pypa/advisory-database/tree/main/vulns/lnbits/PYSEC-2025-16.yaml
  • nvd.nist.gov/vuln/detail/CVE-2025-32013

Code Behaviors & Features

Detect and mitigate CVE-2025-32013 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.12.12

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

pypi/lnbits/CVE-2025-32013.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:43 +0000.