6.8medium
LibreChat's MCP Server Header Injection Enables OAuth Token Theft
- Severity
- 6.8medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.29% (higher than 23% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| danny-avila LibreChat | >= v0.8.2-rc1, <= v0.8.3-rc1 | CVE List |
| librechat librechat | from 0.8.2 before 0.8.3, 0.8.3 | NVD |
All scores
| GitHub_M | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N |
| NVD | 5.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
LibreChat es un clon de ChatGPT con características adicionales. En las versiones 0.8.2-rc1 a 0.8.3-rc1, los servidores MCP (Model Context Protocol) creados por el usuario pueden incluir encabezados HTTP arbitrarios que sufren sustitución de marcadores de posición de credenciales. Un atacante puede crear un servidor MCP malicioso con encabezados que contienen ’{{LIBRECHAT_OPENID_ACCESS_TOKEN}}’ (y otros), lo que provoca que las víctimas que llaman a herramientas en ese servidor vean sus tokens OAuth exfiltrados. La versión 0.8.3-rc2 corrige el problema.
References
| https://github.com/danny-avila/LibreChat/security/advisories/GHSA-pmw7-gqwj-f954 | exploit, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-31951 changed 2026-03-31 | CVE Terms of Use |
| NVD | CVE-2026-31951 changed 2026-10-26 | Public domain |