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

CVE-2026-31950: LibreChat Auth Bypass Vulnerability

CVE-2026-31950 is an authentication bypass flaw in LibreChat that allows authenticated users to access other users' real-time chat streams. This article covers the technical details, affected versions, and mitigation.

Published: April 2, 2026

CVE-2026-31950 Overview

CVE-2026-31950 is an Insecure Direct Object Reference (IDOR) vulnerability affecting LibreChat, an open-source ChatGPT clone with additional features. The vulnerability exists in the Server-Sent Events (SSE) streaming endpoint /api/agents/chat/stream/:streamId, which fails to verify that the requesting user owns the stream they are attempting to access. This authorization bypass allows any authenticated user who obtains or guesses a valid stream ID to subscribe and read another user's real-time chat content, including messages, AI responses, and tool invocations.

Critical Impact

Authenticated attackers can intercept and read other users' private chat conversations, AI responses, and tool invocations in real-time by exploiting missing authorization checks on streaming endpoints.

Affected Products

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

Discovery Timeline

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

Technical Details for CVE-2026-31950

Vulnerability Analysis

This vulnerability is classified under CWE-284 (Improper Access Control) and CWE-639 (Authorization Bypass Through User-Controlled Key). The root issue lies in the SSE streaming endpoint's failure to implement proper ownership verification. When a user initiates a chat session with LibreChat, a unique stream ID is generated to facilitate real-time communication between the client and server. However, the endpoint responsible for serving this stream does not validate whether the authenticated user making the request is the legitimate owner of that stream.

The attack requires network access and valid authentication credentials, though the complexity is elevated because the attacker must obtain or successfully guess a valid stream ID. If stream IDs follow predictable patterns or can be enumerated, the attack becomes significantly more feasible. Upon successful exploitation, the attacker gains unauthorized read access to highly sensitive data including private conversations, AI-generated responses, and any tool invocations occurring within the victim's chat session.

Root Cause

The vulnerability stems from a missing authorization check in the streaming endpoint handler. The endpoint at /api/agents/chat/stream/:streamId accepts the stream ID as a URL parameter and establishes an SSE connection without verifying that the requesting user's session corresponds to the stream's owner. This represents a classic Insecure Direct Object Reference pattern where a user-controlled identifier (the stream ID) is used to access resources without proper access control validation.

Attack Vector

The attack is conducted over the network and requires the attacker to have valid authentication credentials for the LibreChat instance. The attacker must then obtain a valid stream ID belonging to another user, either through enumeration (if IDs are predictable), interception, or other means. Once a valid stream ID is acquired, the attacker can subscribe to the SSE endpoint and receive all real-time data transmitted through that stream.

The vulnerability mechanism involves sending an authenticated request to the streaming endpoint with another user's stream ID. Without proper ownership validation, the server establishes the SSE connection and begins transmitting the victim's chat data to the attacker in real-time. For detailed technical information, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-31950

Indicators of Compromise

  • Anomalous SSE connection patterns where a single user session connects to multiple stream IDs
  • Authentication logs showing users accessing stream endpoints for conversations they did not initiate
  • Unusual spikes in /api/agents/chat/stream/:streamId endpoint access from individual user accounts

Detection Strategies

  • Implement logging that correlates stream ID ownership with the authenticated user making requests to the streaming endpoint
  • Monitor for brute-force or enumeration attempts against stream IDs by tracking rapid sequential requests to different stream endpoints
  • Deploy web application firewall (WAF) rules to detect and alert on abnormal streaming endpoint access patterns

Monitoring Recommendations

  • Enable detailed access logging for all SSE streaming endpoints with user context
  • Configure alerting for users accessing stream IDs outside their normal session activity
  • Review authentication and authorization logs for the /api/agents/chat/stream/ path regularly

How to Mitigate CVE-2026-31950

Immediate Actions Required

  • Upgrade LibreChat to version 0.8.2 or later, which contains the security patch
  • If immediate upgrade is not possible, consider temporarily disabling the affected streaming endpoint
  • Audit access logs to identify any potential exploitation that may have occurred

Patch Information

LibreChat version 0.8.2 addresses this vulnerability by implementing proper authorization checks on the SSE streaming endpoint. The patch ensures that the server validates stream ownership before establishing connections, preventing unauthorized users from accessing streams they do not own. For complete details about the fix, consult the GitHub Security Advisory.

Workarounds

  • Implement network-level access controls to restrict access to the streaming endpoint if patching is delayed
  • Add a reverse proxy rule to validate stream ownership before requests reach the application
  • Consider implementing rate limiting on the streaming endpoint to impede enumeration attacks
bash
# Example nginx rate limiting for streaming endpoint
limit_req_zone $binary_remote_addr zone=stream_limit:10m rate=10r/s;

location /api/agents/chat/stream/ {
    limit_req zone=stream_limit burst=5 nodelay;
    proxy_pass http://librechat_backend;
}

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechLibrechat

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-284

  • CWE-639
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-41258: LibreChat Auth Bypass Vulnerability

  • CVE-2026-33265: LibreChat Auth Bypass Vulnerability

  • CVE-2026-31944: LibreChat Auth Bypass Vulnerability

  • CVE-2025-69220: 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