mediumCVSS 6.8NVD status: Analyzed

CVE-2026-31951

LibreChat is a ChatGPT clone with additional features.

ComponentLibreChat
Severitymedium (CVSS 6.8)
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N
Published (NVD)2026-03-27
Last modified2026-06-17
Affected versions
librechat >= 0.8.2, < 0.8.3
librechat = 0.8.3
Fixed in0.8.3
WeaknessCWE-200
CISA KEVnot listed

NVD description

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 `{{LIBRECHAT_OPENID_ACCESS_TOKEN}}` (and others), causing victims who call tools on that server to have their OAuth tokens exfiltrated. Version 0.8.3-rc2 fixes the issue.

Does CVE-2026-31951 hit the version you run?Paste your docker-compose.yml, requirements.txt or package.json. The scanner checks your pinned versions against this CVE and every other one we track for LibreChat.
Check my stack

What to do

  • Upgrade LibreChat to 0.8.3 or later.
  • Do not expose the component's API or UI to the internet without authentication in front of it.

Sources

Other LibreChat CVEs

All LibreChat CVEs