The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-32013

CVE-2025-32013: LNbits SSRF Vulnerability

CVE-2025-32013 is a Server-Side Request Forgery flaw in LNbits that allows attackers to access internal network resources through unvalidated callback URLs. This article covers technical details, affected versions, and mitigations.

Updated: May 15, 2026

CVE-2025-32013 Overview

CVE-2025-32013 is a Server-Side Request Forgery (SSRF) vulnerability in LNbits, a Lightning Network wallet and accounts system. The flaw resides in the LNURL authentication handling functionality, where the application accepts a callback URL parameter and issues an HTTP request to that URL using the httpx library with redirect following enabled. The application fails to validate the callback URL, allowing attackers to direct requests at internal network addresses and access internal resources. The vulnerability is tracked as CWE-918: Server-Side Request Forgery.

Critical Impact

Unauthenticated remote attackers can coerce LNbits servers into making arbitrary HTTP requests to internal services, exposing sensitive data and metadata endpoints.

Affected Products

  • LNbits (lnbits/lnbits) Lightning wallet and accounts system
  • Deployments exposing the LNURL authentication endpoint
  • Self-hosted LNbits instances reachable from untrusted networks

Discovery Timeline

  • 2025-04-06 - CVE-2025-32013 published to NVD
  • 2025-04-08 - Last updated in NVD database

Technical Details for CVE-2025-32013

Vulnerability Analysis

The vulnerability exists in the LNURL authentication request handler within LNbits. LNURL is a protocol that uses bech32-encoded URLs to facilitate Lightning Network interactions, including authentication flows. When a client initiates an LNURL-auth request, LNbits parses a callback URL parameter and dispatches an outbound HTTP request to that endpoint using the httpx HTTP client.

The handler enables redirect following on the httpx request without restricting the destination scheme, host, or IP range. An attacker can supply a callback URL pointing to private network ranges such as 127.0.0.1, 169.254.169.254, or RFC 1918 subnets. The server then performs the request on the attacker's behalf and may return the response body or observable side effects.

Root Cause

The root cause is missing URL validation before issuing server-side HTTP requests. The application trusts attacker-controlled input as a destination address and does not enforce an allowlist of permitted hosts or block private, loopback, and link-local IP ranges. Enabling automatic redirect following compounds the issue, because an attacker-controlled public host can return a 302 response that redirects the server to an internal target, bypassing naive host-based filters.

Attack Vector

Exploitation requires only network access to the LNbits LNURL authentication endpoint. No authentication, user interaction, or elevated privileges are required. An attacker crafts an LNURL-auth request containing a callback URL targeting an internal asset, then submits it to a vulnerable LNbits instance. Common targets include cloud metadata services (such as http://169.254.169.254/latest/meta-data/), internal admin panels, and unauthenticated internal APIs. The response or timing differences leak information about the internal network.

No verified public exploit code is available. Refer to the LNbits GitHub Security Advisory GHSA-qp8j-p87f-c8cc for the upstream technical description.

Detection Methods for CVE-2025-32013

Indicators of Compromise

  • Outbound HTTP requests from LNbits processes targeting private IP ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), loopback 127.0.0.0/8, or cloud metadata IP 169.254.169.254.
  • LNURL-auth request logs containing callback parameters with non-public hostnames or raw IP literals.
  • Unexpected HTTP 3xx redirect chains in LNbits outbound traffic followed by connections to internal services.

Detection Strategies

  • Inspect LNbits application logs for LNURL authentication callback URLs and flag entries whose resolved host falls outside expected public Lightning service domains.
  • Correlate egress firewall or proxy logs with LNbits process identifiers to surface anomalous server-initiated requests to internal subnets.
  • Deploy network detection rules that alert when application servers issue requests to cloud metadata endpoints or RFC 1918 ranges they have no business reaching.

Monitoring Recommendations

  • Forward LNbits access logs, outbound proxy logs, and egress NetFlow records to a centralized analytics platform for correlation.
  • Baseline LNbits outbound destinations and alert on deviations such as new internal IP targets or metadata service contact.
  • Monitor for spikes in LNURL-auth endpoint traffic from single source IPs, which may indicate SSRF probing.

How to Mitigate CVE-2025-32013

Immediate Actions Required

  • Upgrade LNbits to the patched release identified in the GitHub Security Advisory GHSA-qp8j-p87f-c8cc.
  • Restrict outbound network access from the LNbits host to only the Lightning service endpoints it requires.
  • Block LNbits egress to cloud metadata services, loopback, and private IP ranges at the network or host firewall layer.

Patch Information

The LNbits maintainers have published a fix referenced in the GitHub Security Advisory GHSA-qp8j-p87f-c8cc. Operators should consult the advisory for the exact fixed version and apply the upgrade promptly. Verify the upgrade by confirming that callback URLs targeting internal addresses are rejected by the LNURL authentication handler.

Workarounds

  • Place LNbits behind an egress proxy that enforces a strict allowlist of permitted outbound destinations.
  • Run LNbits in a network segment with no route to internal management networks or cloud metadata services.
  • Disable or firewall the LNURL authentication endpoint at the reverse proxy until the patch is applied.
  • For cloud deployments, enforce Instance Metadata Service v2 (IMDSv2) with hop limit 1 to prevent SSRF-based credential theft.
bash
# Example iptables rule blocking LNbits egress to internal and metadata ranges
iptables -A OUTPUT -m owner --uid-owner lnbits -d 169.254.169.254 -j REJECT
iptables -A OUTPUT -m owner --uid-owner lnbits -d 127.0.0.0/8 -j REJECT
iptables -A OUTPUT -m owner --uid-owner lnbits -d 10.0.0.0/8 -j REJECT
iptables -A OUTPUT -m owner --uid-owner lnbits -d 172.16.0.0/12 -j REJECT
iptables -A OUTPUT -m owner --uid-owner lnbits -d 192.168.0.0/16 -j REJECT

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechLnbits

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-918
  • Technical References
  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2026-46333: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-2586: Eclipse Glassfish RCE Vulnerability

  • CVE-2026-2587: Eclipse Glassfish RCE Vulnerability

  • CVE-2026-45255: FreeBSD bsdinstall/bsdconfig RCE Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English