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-31945

CVE-2026-31945: Librechat SSRF Vulnerability

CVE-2026-31945 is a server-side request forgery flaw in Librechat that bypasses hostname validation, allowing attackers to access internal resources. This post covers technical details, affected versions, impact, and mitigation.

Published: April 2, 2026

CVE-2026-31945 Overview

CVE-2026-31945 is a Server-Side Request Forgery (SSRF) vulnerability affecting LibreChat, an open-source ChatGPT clone with additional features. The vulnerability exists in versions 0.8.2-rc2 through 0.8.2 when using agent actions or Model Context Protocol (MCP) features. Despite a previous SSRF fix that introduced hostname validation, the patch failed to verify whether DNS resolution results in a private IP address, allowing attackers to bypass protections through DNS rebinding techniques.

Critical Impact

Attackers can exploit this vulnerability to access internal resources including internal RAG APIs and cloud instance metadata endpoints, potentially exposing sensitive credentials and configuration data.

Affected Products

  • LibreChat version 0.8.2
  • LibreChat version 0.8.2-rc2
  • LibreChat version 0.8.2-rc3

Discovery Timeline

  • 2026-03-27 - CVE-2026-31945 published to NVD
  • 2026-03-30 - Last updated in NVD database

Technical Details for CVE-2026-31945

Vulnerability Analysis

This SSRF vulnerability arises from an incomplete fix for a previously reported security issue (GHSA-rgjq-4q58-m3q8). The original patch implemented hostname validation to prevent SSRF attacks, but the mitigation was insufficient because it only validated the hostname string without verifying the actual IP address returned during DNS resolution.

The vulnerability is classified under CWE-918 (Server-Side Request Forgery), which occurs when a web application fetches a remote resource without sufficiently validating the user-supplied URL. In this case, the application's agent actions and MCP functionality make outbound requests that can be manipulated by an attacker.

Root Cause

The root cause stems from a Time-of-Check to Time-of-Use (TOCTOU) race condition in the URL validation logic. The hostname is validated at check time, but DNS resolution occurs later at use time. An attacker can leverage DNS rebinding techniques where the initial DNS response returns a valid external IP address (passing validation), but subsequent resolutions return internal/private IP addresses.

The validation logic checks if the hostname matches known internal patterns (like localhost, 127.0.0.1, or reserved domain names) but fails to verify that the resolved IP address is not within private IP ranges (RFC 1918 addresses like 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) or other reserved address spaces.

Attack Vector

The attack is network-based and requires low-privileged access to the LibreChat application. An authenticated user can craft malicious URLs targeting agent actions or MCP endpoints. The attacker sets up a DNS server that initially resolves their controlled domain to a public IP address, then quickly switches to resolve to an internal IP address.

The exploitation flow involves the attacker submitting a URL with their controlled domain to LibreChat's agent action feature. LibreChat validates the hostname, which appears legitimate, and the attacker's DNS server initially returns a public IP. When LibreChat makes the actual request, the DNS response returns an internal IP address such as 169.254.169.254 (cloud metadata endpoint) or internal service addresses, granting the attacker access to internal resources.

This technique is particularly dangerous in cloud environments where metadata endpoints at 169.254.169.254 contain sensitive information including IAM credentials, instance configuration, and API tokens.

Detection Methods for CVE-2026-31945

Indicators of Compromise

  • Unusual outbound requests from LibreChat services to internal IP ranges or metadata endpoints
  • DNS queries from the LibreChat server to suspicious or recently registered domains
  • Access attempts to cloud metadata services (169.254.169.254) from application containers
  • Network connections to RFC 1918 private address ranges originating from LibreChat

Detection Strategies

  • Monitor network traffic from LibreChat instances for connections to private IP ranges that should not be accessible
  • Implement DNS logging and alert on rapid DNS changes (TTL abuse) for domains accessed by the application
  • Deploy web application firewalls (WAF) rules to detect SSRF patterns in agent action or MCP requests
  • Enable cloud provider metadata endpoint protection and audit logs

Monitoring Recommendations

  • Configure network segmentation monitoring to detect lateral movement attempts via SSRF
  • Implement egress filtering alerts for LibreChat application servers attempting to access internal services
  • Review application logs for agent action requests containing suspicious URLs or patterns
  • Monitor for increased DNS resolution failures or TTL anomalies associated with DNS rebinding attempts

How to Mitigate CVE-2026-31945

Immediate Actions Required

  • Upgrade LibreChat to version 0.8.3-rc1 or later, which contains the security patch
  • If immediate upgrade is not possible, disable agent actions and MCP features until patching is complete
  • Implement network-level controls to restrict outbound connections from LibreChat servers
  • Block access to cloud metadata endpoints from application containers using firewall rules

Patch Information

The vulnerability has been addressed in LibreChat version 0.8.3-rc1. The patch implements proper IP address validation after DNS resolution to ensure the resolved address is not within private or reserved IP ranges. Organizations should upgrade to this version or later to remediate the vulnerability.

For detailed patch information and security advisory, refer to the GitHub Security Advisory GHSA-f92m-jpv7-55p2.

Workarounds

  • Deploy network-level SSRF protections using a proxy that validates resolved IP addresses before allowing requests
  • Configure firewall rules to prevent the LibreChat application from accessing internal networks and metadata endpoints
  • Implement DNS pinning or resolution caching to prevent DNS rebinding attacks at the infrastructure level
bash
# Example: Block metadata endpoint access using iptables
# Run on LibreChat server to prevent metadata endpoint access
iptables -A OUTPUT -d 169.254.169.254 -j DROP

# Block common private IP 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 Score7.7

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-918
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-31943: 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