CVE-2026-31951 LibreChat's MCP Server Header Injection Enables OAuth Token Theft
MediumCVSS 5.7
EPSS 0.26%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| LibreChat | = 0.8.3-rc1; >= 0.8.2, < 0.8.3 | 0.8.3 | Fixed |
| danny-avila LibreChat | = >= v0.8.2-rc1, <= v0.8.3-rc1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| danny-avila LibreChat | = >= v0.8.2-rc1, <= v0.8.3-rc1 | No fix listed |
| LibreChat | >= 0.8.2, < 0.8.3 | 0.8.3 |
| LibreChat | = 0.8.3-rc1 | No fix listed |
References
- https://github.com/danny-avila/LibreChat/security/advisories/GHSA-pmw7-gqwj-f954 exploit vendor-advisory