BreachSpiderVerified, not vibes

CVE-2026-31944 in Librechat

High 7.6

LibreChat is a ChatGPT clone with additional features. From 0.8.2 to 0.8.2-rc3, The MCP (Model Context Protocol) OAuth callback endpoint accepts the redirect from the identity provider and stores OAuth tokens for the user who initiated the flow, without verifying that the browser hitting the redirect URL is logged i...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.17.6
EPSS0.3%
EPSS percentile21th
FixUnknown

Remotely exploitable over the network, low complexity, low privileges required, requires user interaction, can impact systems beyond the vulnerable component, full confidentiality impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Librechat Librechat 0.8.2

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

LibreChat is a ChatGPT clone with additional features. From 0.8.2 to 0.8.2-rc3, The MCP (Model Context Protocol) OAuth callback endpoint accepts the redirect from the identity provider and stores OAuth tokens for the user who initiated the flow, without verifying that the browser hitting the redirect URL is logged in or that the logged-in user matches the initiator. An attacker can send the authorization URL to a victim; when the victim completes the flow, the victim’s OAuth tokens are stored on the attacker’s LibreChat account, enabling account takeover of the victim’s MCP-linked services (e.g. Atlassian, Outlook). This vulnerability is fixed in 0.8.3-rc1.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-31944
BreachSpider IDBS-2026-GLOBAL-081130-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
Published2026-03-13
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-306: Missing Authentication for Critical Function

Software does not perform any authentication for functionality that requires a verified identity.

Related attack patterns (CAPEC)

CAPEC-12 Choosing Message Identifier via CWE-306

CAPEC-36 Using Unpublished Interfaces or Functionality via CWE-306

CAPEC-62 Cross Site Request Forgery via CWE-306

CAPEC-166 Force the System to Reset Values via CWE-306

CAPEC-216 Communication Channel Manipulation via CWE-306

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

LibreChat versions 0.8.2 to 0.8.2-rc3 are vulnerable to an OAuth token hijacking attack due to improper validation of the redirect URL and user session during the OAuth callback process.

An attacker can exploit this vulnerability by intercepting the OAuth callback process. By sending a malicious redirect URL, the attacker can obtain OAuth tokens intended for a different user, potentially gaining unauthorized access to the user's account.

Questions

What is CVE-2026-31944?

LibreChat versions 0.8.2 to 0.8.2-rc3 are vulnerable to an OAuth token hijacking attack due to improper validation of the redirect URL and user session during the OAuth callback process.

What is the CVSS score for CVE-2026-31944?

CVE-2026-31944 has CVSS 7.6 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N. EPSS: 0.3%.

Is CVE-2026-31944 actively exploited?

No confirmed active exploitation of CVE-2026-31944 as of 2026-09-25.

How do I remediate CVE-2026-31944?

Priority: HIGH. PSIRT: [email protected]

What systems are affected by CVE-2026-31944?

CVE-2026-31944 affects Librechat Librechat.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Librechat","product":"Librechat","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.