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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-200"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31951.json"
}{
"source": [
"CPE_RANGE",
"CPE_STRING"
],
"cpe": [
"cpe:2.3:a:librechat:librechat:*:*:*:*:*:*:*:*",
"cpe:2.3:a:librechat:librechat:0.8.3:rc1:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "0.8.2"
},
{
"fixed": "0.8.3"
},
{
"introduced": "0.8.3-rc1"
},
{
"last_affected": "0.8.3-rc1"
}
]
}