A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2024-32965

CVE-2024-32965: Lobehub Lobe Chat SSRF Vulnerability

CVE-2024-32965 is an SSRF flaw in Lobehub Lobe Chat that allows unauthenticated attackers to scan internal networks and leak sensitive data. This article covers technical details, affected versions, and patches.

Published: June 2, 2026

CVE-2024-32965 Overview

Lobe Chat is an open-source AI chat framework used to build conversational interfaces over large language model providers. Versions prior to 1.19.13 contain an unauthenticated Server-Side Request Forgery (SSRF) vulnerability [CWE-918]. Attackers can craft malicious requests without authentication to coerce the application into making outbound HTTP calls. The flaw resides in the proxy route handler, which accepts a target URL and forwards the request server-side. Remote attackers can use this primitive to probe internal network services and exfiltrate sensitive information. The issue was fixed in release 1.19.13.

Critical Impact

Unauthenticated attackers can pivot through the Lobe Chat proxy endpoint to scan internal networks, access intranet services, and leak sensitive data such as the OpenAI API key stored in the X-Lobe-Chat-Auth JWT header.

Affected Products

  • LobeHub Lobe Chat versions prior to 1.19.13
  • Self-hosted Lobe Chat web deployments exposing /api/proxy
  • Containerized Lobe Chat instances accessible from untrusted networks

Discovery Timeline

  • 2024-11-26 - CVE-2024-32965 published to NVD
  • 2025-09-23 - Last updated in NVD database

Technical Details for CVE-2024-32965

Vulnerability Analysis

The vulnerability is a Server-Side Request Forgery in the Lobe Chat proxy API route. The endpoint accepts an attacker-controlled URL in the request body and resolves it server-side. The original implementation attempted to mitigate SSRF by resolving the hostname through dns.lookup and checking the result against the isPrivate helper from the ip package. This single-stage validation is insufficient. Attackers can bypass it using DNS rebinding, redirect chains, IPv6-mapped addresses, or alternative encodings of loopback and RFC1918 ranges. The proxy then issues the outbound request on behalf of the attacker, returning the response body and headers.

Root Cause

The pre-patch handler in src/app/api/proxy/route.ts performed a Time-of-Check to Time-of-Use (TOCTOU) DNS check. The hostname was resolved once for validation, but the subsequent fetch call performed an independent resolution. A malicious DNS server can return a public address on the first lookup and a private address on the second, defeating the private-IP filter. The check also missed loopback aliases such as 127.0.0.1.nip.io and link-local ranges.

Attack Vector

The attack requires no authentication and no user interaction. An attacker sends a POST request to the proxy endpoint with a target URL. The X-Lobe-Chat-Auth JWT header storing the proxy address and OpenAI API key can be tampered with to redirect requests at internal infrastructure. Successful exploitation enables internal network reconnaissance, cloud metadata service access, and disclosure of upstream API credentials.

typescript
// Pre-patch handler (vulnerable) - src/app/api/proxy/route.ts
-import { isPrivate } from 'ip';
-import { NextResponse } from 'next/server';
-import dns from 'node:dns';
-import { promisify } from 'node:util';
-
-const lookupAsync = promisify(dns.lookup);
-
-export const runtime = 'nodejs';
-
-export const POST = async (req: Request) => {
-  const url = new URL(await req.text());
-  let address;
-
-  try {
-    const lookupResult = await lookupAsync(url.hostname);
-    address = lookupResult.address;
-  } catch (err) {
-    console.error(`${url.hostname} DNS parser error:`, err);
-    return NextResponse.json({ error: 'DNS parser error' }, { status: 504 });
-  }
-
-  const isInternalHost = isPrivate(address);
-
-  if (isInternalHost)
-    return NextResponse.json({ error: 'Not support internal host proxy' }, { status: 400 });
-
// Source: https://github.com/lobehub/lobe-chat/commit/e960a23b0c69a5762eb27d776d33dac443058faf

Detection Methods for CVE-2024-32965

Indicators of Compromise

  • Unexpected outbound connections from the Lobe Chat server to RFC1918 ranges, 169.254.169.254, or 127.0.0.0/8
  • POST requests to /api/proxy or /webapi/proxy containing URLs pointing to internal hosts, cloud metadata endpoints, or DNS rebinding domains such as *.nip.io and *.xip.io
  • Modified or anomalous X-Lobe-Chat-Auth JWT headers with attacker-controlled proxy fields
  • HTTP 200 responses from the proxy endpoint returning content sourced from internal services

Detection Strategies

  • Inspect web access logs for high-volume requests to the proxy route with varied target URLs indicating internal port scanning
  • Alert on DNS queries from the application host that resolve external hostnames to private IP addresses
  • Correlate JWT header modifications with outbound connection patterns at the network egress point

Monitoring Recommendations

  • Capture egress NetFlow from the Lobe Chat host and baseline expected destinations, alerting on deviations
  • Enable verbose logging on the proxy route handler to record full target URLs and resolved IPs
  • Forward application and network telemetry to a centralized analytics platform for correlation across host and network signals

How to Mitigate CVE-2024-32965

Immediate Actions Required

  • Upgrade Lobe Chat to version 1.19.13 or later across all deployments
  • Rotate any OpenAI API keys and other upstream credentials that were configured in vulnerable instances
  • Restrict outbound network access from the Lobe Chat host to only the required LLM provider endpoints
  • Place the application behind an authenticating reverse proxy if it is exposed to untrusted networks

Patch Information

The fix is included in release 1.19.13. The patch replaces the custom DNS validation with the request-filtering-agent package, which enforces SSRF protection inside node-fetch itself. The new implementation blocks private, loopback, and link-local destinations at connection time, eliminating the TOCTOU window. Details are available in the GitHub Security Advisory GHSA-2xcc-vm3f-m8rw and the patch commit.

Workarounds

  • No vendor-provided workarounds exist; upgrading is the only supported remediation
  • As a compensating control, enforce egress firewall rules that deny traffic from the application host to internal CIDR ranges and cloud metadata endpoints
bash
# Upgrade Lobe Chat to a fixed version
npm install lobe-chat@1.19.13

# Or pull the patched container image
docker pull lobehub/lobe-chat:1.19.13
docker stop lobe-chat && docker rm lobe-chat
docker run -d --name lobe-chat -p 3210:3210 lobehub/lobe-chat:1.19.13

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

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechLobehub Lobe Chat

  • SeverityHIGH

  • CVSS Score8.6

  • EPSS Probability3.12%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-918
  • Vendor Resources
  • GitHub Commit Details

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2024-32964: Lobehub Lobe Chat SSRF Vulnerability
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