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
    • 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-2026-31943

CVE-2026-31943: LibreChat SSRF Vulnerability

CVE-2026-31943 is a server-side request forgery flaw in LibreChat that allows authenticated users to bypass SSRF protections and access internal network resources. This article covers technical details, affected versions, and patches.

Published: April 2, 2026

CVE-2026-31943 Overview

CVE-2026-31943 is a Server-Side Request Forgery (SSRF) vulnerability in LibreChat, a popular open-source ChatGPT clone with enhanced features. The vulnerability exists in the isPrivateIP() function within packages/api/src/auth/domain.ts, which fails to properly detect IPv4-mapped IPv6 addresses in their hex-normalized form. This security flaw allows any authenticated user to bypass SSRF protection mechanisms and force the server to issue HTTP requests to internal network resources.

Critical Impact

Authenticated attackers can access cloud metadata services (e.g., AWS 169.254.169.254), loopback interfaces, and RFC1918 private network ranges, potentially leading to credential theft, internal service enumeration, and lateral movement within cloud environments.

Affected Products

  • LibreChat versions prior to 0.8.3
  • LibreChat 0.8.3-rc1
  • LibreChat 0.8.3-rc2

Discovery Timeline

  • 2026-03-27 - CVE-2026-31943 published to NVD
  • 2026-03-31 - Last updated in NVD database

Technical Details for CVE-2026-31943

Vulnerability Analysis

This vulnerability is classified under CWE-918 (Server-Side Request Forgery). The core issue lies in incomplete IP address validation within LibreChat's SSRF protection logic. The isPrivateIP() function is designed to block requests to internal network addresses, but it fails to account for IPv4-mapped IPv6 addresses when represented in their hex-normalized format.

IPv4-mapped IPv6 addresses (e.g., ::ffff:127.0.0.1 or ::ffff:169.254.169.254) can be expressed in multiple representations, including hexadecimal notation. When an attacker supplies these addresses in hex-normalized form, the validation function does not recognize them as internal addresses, allowing the request to pass through unfiltered.

The attack scope is particularly concerning because it allows access across security boundaries, enabling authenticated users to reach resources that should be strictly isolated from user-controlled requests.

Root Cause

The root cause is insufficient input validation in the IP address parsing logic. The isPrivateIP() function in packages/api/src/auth/domain.ts only checks for common IPv4 private address representations and standard IPv6 loopback addresses, but fails to normalize and validate IPv4-mapped IPv6 addresses before comparison. This creates a validation bypass where attackers can craft requests using alternative address representations that evade the blocklist checks.

Attack Vector

The attack vector is network-based and requires low-privilege authentication. An authenticated user can craft HTTP requests containing IPv4-mapped IPv6 addresses in hex-normalized form to target internal resources. The attack complexity is low, requiring no user interaction, and can be executed remotely against any vulnerable LibreChat instance.

Typical attack scenarios include:

  • Accessing AWS/GCP/Azure metadata services to steal cloud credentials
  • Probing internal network services via loopback (::ffff:7f00:0001)
  • Scanning RFC1918 ranges for internal infrastructure discovery
  • Accessing internal APIs and administrative interfaces not exposed to the internet

The vulnerability enables significant confidentiality impact through access to sensitive internal data and limited integrity impact through potential manipulation of internal services.

Detection Methods for CVE-2026-31943

Indicators of Compromise

  • Outbound HTTP requests from LibreChat to cloud metadata endpoints (e.g., 169.254.169.254, 169.254.170.2)
  • Requests containing IPv6 addresses in hex format targeting private ranges (e.g., ::ffff:7f00:0001)
  • Unusual server-side requests to RFC1918 addresses (10.x.x.x, 172.16-31.x.x, 192.168.x.x)
  • Access logs showing repeated requests to internal service endpoints from the LibreChat application

Detection Strategies

  • Monitor network traffic for outbound connections from LibreChat servers to cloud metadata IP ranges
  • Implement WAF rules to detect and block IPv4-mapped IPv6 addresses in hex-normalized format
  • Review application logs for SSRF-related error messages or unusual URL patterns
  • Deploy network segmentation monitoring to detect unauthorized internal service access

Monitoring Recommendations

  • Configure cloud provider security tools to alert on metadata service access from application instances
  • Enable detailed logging for the LibreChat API server, particularly for outbound HTTP requests
  • Implement anomaly detection for unusual internal network traffic patterns originating from web application servers
  • Set up alerts for any access to loopback or link-local addresses from application contexts

How to Mitigate CVE-2026-31943

Immediate Actions Required

  • Upgrade LibreChat to version 0.8.3 or later immediately
  • Review access logs for potential exploitation attempts targeting internal resources
  • If upgrade is not immediately possible, restrict outbound network access from LibreChat servers using firewall rules
  • Audit any cloud credentials that may have been exposed through metadata service access

Patch Information

The vulnerability is fixed in LibreChat version 0.8.3. Users should upgrade from any version prior to 0.8.3, including release candidates 0.8.3-rc1 and 0.8.3-rc2. The official security advisory is available at the GitHub Security Advisory for GHSA-w5r7-4f94-vp4c.

Workarounds

  • Implement network-level SSRF protection by blocking outbound connections to private IP ranges and cloud metadata endpoints from LibreChat servers
  • Deploy a web application firewall (WAF) with rules to detect and block IPv4-mapped IPv6 address patterns
  • Use cloud provider metadata service hardening features (e.g., AWS IMDSv2 with hop limit restrictions)
  • Apply network segmentation to limit LibreChat server access to only necessary external services
bash
# Example iptables rules to block metadata service access
iptables -A OUTPUT -d 169.254.169.254 -j DROP
iptables -A OUTPUT -d 169.254.170.2 -j DROP

# Block RFC1918 ranges from application server
iptables -A OUTPUT -d 10.0.0.0/8 -j DROP
iptables -A OUTPUT -d 172.16.0.0/12 -j DROP
iptables -A OUTPUT -d 192.168.0.0/16 -j DROP

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

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechLibrechat

  • SeverityHIGH

  • CVSS Score8.5

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-918
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-31945: Librechat SSRF Vulnerability

  • CVE-2025-69222: LibreChat SSRF Vulnerability

  • CVE-2026-31950: LibreChat Auth Bypass Vulnerability

  • CVE-2026-31951: LibreChat Information Disclosure Flaw
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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