CVE-2026-31950

LibreChat's IDOR in SSE Stream Subscription Allows Reading Other Users' Chats

Published Mar 27, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
LibreChat is a ChatGPT clone with additional features. In versions 0.8.2-rc2 through 0.8.2-rc3, the SSE streaming endpoint `/api/agents/chat/stream/:streamId` does not verify that the requesting user owns the stream. Any authenticated user who obtains or guesses a valid stream ID can subscribe and read another user's real-time chat content, including messages, AI responses, and tool invocations. Version 0.8.2 patches the issue.

Analysis

AI-generated

Technical impact

The vulnerability is an Insecure Direct Object Reference in LibreChat's SSE streaming endpoint, permitting an authenticated user who knows or guesses a stream identifier to receive real‑time chat data belonging to another user. This leak can reveal private messages, AI responses, and tool usage, thereby compromising confidentiality. The weakness corresponds to CWE‑284 (Improper Access Control) and CWE‑639 (Privilege Dropping).

Affected Systems

The affected product is LibreChat by Danny Avila, specifically the release candidates version 0.8.2‑rc2 and 0.8.2‑rc3. The issue is resolved in the stable 0.8.2 release. No other vendors or products are listed as affected.

Risk and Exploitability

The CVSS v3.1 base score is 5.3, indicating moderate severity. The EPSS score is less than 1%, suggesting a low probability of exploitation. The vulnerability is not present in CISA’s KEV catalog. An attacker must be authenticated and must determine a valid stream ID; the missing ownership check allows subscription to any stream ID, which is the likely attack vector for insider or compromised account scenarios.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade LibreChat to version 0.8.2 or later, which contains the fix.
  • Verify that all deployed instances have been updated to the patched release.
  • Audit application logs for unexpected SSE connections that may indicate exploitation.
  • If an immediate update is not possible, restrict access to the SSE endpoint to users with verified ownership or implement manual authorization checks.

Generated by OpenCVE AI on March 31, 2026 at 05:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Librechat
Librechat librechat
Weaknesses CWE-639
CPEs cpe:2.3:a:librechat:librechat:0.8.2:rc2:*:*:*:*:*:*
cpe:2.3:a:librechat:librechat:0.8.2:rc3:*:*:*:*:*:*
Vendors & Products Librechat
Librechat librechat
Type Values Removed Values Added
First Time appeared Danny-avila
Danny-avila libre Chat
Vendors & Products Danny-avila
Danny-avila libre Chat
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description LibreChat is a ChatGPT clone with additional features. In versions 0.8.2-rc2 through 0.8.2-rc3, the SSE streaming endpoint `/api/agents/chat/stream/:streamId` does not verify that the requesting user owns the stream. Any authenticated user who obtains or guesses a valid stream ID can subscribe and read another user's real-time chat content, including messages, AI responses, and tool invocations. Version 0.8.2 patches the issue.
Title LibreChat's IDOR in SSE Stream Subscription Allows Reading Other Users' Chats
Weaknesses CWE-284
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-284

    Improper Access Control

  • CWE-639

    Authorization Bypass Through User-Controlled Key

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 27, 2026, 7:55 PM
Reserved
Mar 10, 2026, 3:10 PM
Status
Analyzed
Published
Mar 27, 2026, 8:16 PM
Modified
Oct 26, 2026, 9:10 PM