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

CVE-2026-31951: LibreChat Information Disclosure Flaw

CVE-2026-31951 is an information disclosure vulnerability in LibreChat that allows malicious MCP servers to exfiltrate OAuth tokens through HTTP headers. This post covers technical details, affected versions, and mitigation.

Published: April 2, 2026

CVE-2026-31951 Overview

CVE-2026-31951 is an information disclosure vulnerability in LibreChat, an open-source ChatGPT clone with additional features. The vulnerability exists in versions 0.8.2-rc1 through 0.8.3-rc1 and allows attackers to exfiltrate OAuth tokens from victims through maliciously crafted Model Context Protocol (MCP) servers.

User-created MCP servers in LibreChat can include arbitrary HTTP headers that undergo credential placeholder substitution. An attacker can create a malicious MCP server with headers containing sensitive credential placeholders such as {{LIBRECHAT_OPENID_ACCESS_TOKEN}}, causing victims who call tools on that server to have their OAuth tokens sent to attacker-controlled infrastructure.

Critical Impact

Successful exploitation allows attackers to steal OAuth access tokens from LibreChat users, potentially enabling account takeover, unauthorized access to connected services, and compromise of user data across integrated platforms.

Affected Products

  • LibreChat versions 0.8.2-rc1 through 0.8.3-rc1
  • LibreChat 0.8.3-rc1 (specifically vulnerable)
  • Self-hosted and cloud-deployed LibreChat instances running affected versions

Discovery Timeline

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

Technical Details for CVE-2026-31951

Vulnerability Analysis

This vulnerability represents a classic information disclosure flaw (CWE-200) stemming from improper handling of credential placeholder substitution in user-controlled input. The core issue lies in LibreChat's MCP server implementation, which allows users to define custom HTTP headers for their MCP servers.

The MCP (Model Context Protocol) servers in LibreChat support dynamic credential injection through placeholder variables. When a user creates an MCP server, they can specify custom HTTP headers that are processed during API calls. The application performs credential substitution on these headers, replacing placeholders like {{LIBRECHAT_OPENID_ACCESS_TOKEN}} with actual OAuth tokens.

The vulnerability arises because this substitution occurs on headers defined by any user, not just the token owner. When a victim interacts with a malicious MCP server (by calling tools hosted on it), the victim's OAuth credentials are substituted into the attacker-defined headers and sent to the attacker's endpoint.

Root Cause

The root cause is insufficient access control and input validation in the MCP server header processing logic. The application fails to restrict which credential placeholders can be used in user-created MCP server configurations. There is no validation to ensure that credential placeholders in headers should only resolve to the creating user's credentials, rather than the calling user's credentials.

The design flaw allows the separation between MCP server creator and MCP server consumer to be exploited, as credential substitution happens in the context of the consumer (victim) rather than being limited to the creator's own credentials.

Attack Vector

The attack requires an authenticated attacker to create a malicious MCP server within LibreChat. The attack vector is network-based and requires low privileges (a valid LibreChat account) along with user interaction (the victim must call a tool on the malicious MCP server).

The attack flow proceeds as follows: First, the attacker creates an MCP server with custom HTTP headers containing credential placeholders pointing to an attacker-controlled endpoint. When a victim user browses available MCP servers and invokes a tool on the malicious server, LibreChat processes the request and substitutes the victim's OAuth token into the attacker-defined headers. The request is then sent to the attacker's endpoint with the victim's credentials embedded in the headers, allowing the attacker to capture and abuse the OAuth token.

Detection Methods for CVE-2026-31951

Indicators of Compromise

  • Unusual MCP server configurations containing credential placeholder strings in HTTP headers (e.g., {{LIBRECHAT_OPENID_ACCESS_TOKEN}})
  • MCP servers with headers pointing to external or untrusted endpoints
  • Unexpected outbound HTTP requests from LibreChat to unfamiliar domains
  • OAuth token reuse from different IP addresses or geographic locations

Detection Strategies

  • Monitor MCP server creation events for headers containing credential placeholder patterns
  • Implement logging for all MCP server tool invocations to identify unusual access patterns
  • Analyze network traffic for outbound requests containing OAuth tokens in custom headers
  • Review MCP server configurations periodically for suspicious header definitions

Monitoring Recommendations

  • Enable verbose logging for MCP server interactions and header substitution events
  • Set up alerts for MCP servers created with headers pointing to non-whitelisted domains
  • Monitor for anomalous OAuth token usage patterns that may indicate token theft
  • Implement network egress monitoring to detect data exfiltration attempts

How to Mitigate CVE-2026-31951

Immediate Actions Required

  • Upgrade LibreChat to version 0.8.3-rc2 or later immediately
  • Audit existing MCP server configurations for malicious header definitions
  • Rotate OAuth tokens and OpenID credentials for all users who may have interacted with untrusted MCP servers
  • Review access logs to identify potential token exfiltration incidents

Patch Information

The vulnerability has been fixed in LibreChat version 0.8.3-rc2. The patch addresses the credential substitution logic to prevent user-created MCP servers from accessing other users' credential placeholders. Organizations should upgrade to this version or later as soon as possible.

For detailed patch information and the security advisory, see the GitHub Security Advisory GHSA-pmw7-gqwj-f954.

Workarounds

  • Disable user-created MCP servers until the patch can be applied
  • Implement network-level restrictions to block outbound requests from LibreChat to untrusted external endpoints
  • Review and remove any existing MCP servers with suspicious header configurations
  • Consider implementing an allowlist for MCP server endpoints until patching is complete
bash
# Review MCP server configurations for suspicious headers
# Search for credential placeholder patterns in your LibreChat deployment
grep -r "LIBRECHAT_OPENID" /path/to/librechat/data/
grep -r "ACCESS_TOKEN" /path/to/librechat/mcp-servers/

# Verify LibreChat version
cat /path/to/librechat/package.json | grep version

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechLibrechat

  • SeverityMEDIUM

  • CVSS Score5.7

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-200
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-69221: LibreChat Information Disclosure Flaw

  • CVE-2026-31943: LibreChat SSRF Vulnerability

  • CVE-2026-31945: Librechat SSRF Vulnerability

  • CVE-2026-31950: LibreChat Auth Bypass Vulnerability
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