mcp-cve-project

CVE-2026-31951 | LibreChat malicious MCP server OAuth token exfiltration (header placeholders) | Medium |

CVE Information

Field Value
CVE / NVD CVE-2026-31951
Date (index) 2026-03-27
Affected product (index) LibreChat
GHSA ID GHSA-pmw7-gqwj-f954
OWASP MCP Top 10 (2025) MCP01 — Token Mismanagement & Secret Exposure
Published / disclosed 2026-03-27
Ecosystem Application (vendor product)
Component LibreChat
EPSS score 0.002440000 (FIRST EPSS, 2026-06-30)
CVSS score Medium — 6.8 — CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N (NVD CVSS 3.1)
CWE CWE-200
Affected versions LibreChat 0.8.2-rc1 through 0.8.3-rc1 (per NVD)
Fixed versions 0.8.3-rc2 and later (per NVD)
Fix status Patched (per NVD description)
Exploit status Public CVE record
Notes Details below are aligned to the English NVD description at indexing time; re-check NVD for CNA updates.

CVE Breakdown


What is the vulnerability?

LibreChat is a ChatGPT clone with additional features. In versions 0.8.2-rc1 through 0.8.3-rc1, user-created MCP (Model Context Protocol) servers can include arbitrary HTTP headers that undergo credential placeholder substitution. An attacker can create a malicious MCP server with headers containing `` (and others), causing victims who call tools on that server to have their OAuth tokens exfiltrated. Version 0.8.3-rc2 fixes the issue.

Attack prerequisites / exposure

Depends on deployment: many MCP issues require a reachable HTTP/SSE listener, a malicious remote MCP server, a poisoned project/workspace config, or a victim opening attacker-influenced content. Treat developer workstations and shared CI runners as high-value targets when MCP servers run with host access.

CVE is because of what bug?

See the NVD description and linked references for the upstream root cause; CWE rows above summarize the weakness mapping published by NVD.

MCP-specific impact / why it matters

MCP extends an agent’s reach into tools, hosts, and cloud APIs. Failures in transport authentication, logging, URL validation, session binding, or local config loading frequently become RCE, credential theft, SSRF, or session hijacking in MCP-shaped deployments.

Where was the bug? (source + snippet)

Add a minimal vulnerable code snippet here after reviewing the linked upstream commit / tag diff (do not paste weaponized payloads).

Fix / Remediation

Upgrade to vendor-fixed versions where available, reduce network exposure (bind to localhost, require auth on HTTP transports), and apply standard MCP deployment hygiene (tool allowlists, egress controls, separate secrets from logs).

Upstream fix (open source)