Skip to content
MediumVulnerabilityLLM-specific

CVE-2026-31951: LibreChat OAuth token exfiltration through user-created MCP server headers

Identifier
CVE-2026-31951
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%

Summary

CVE-2026-31951 affects LibreChat versions 0.8.2-rc1 through 0.8.3-rc1. User-created MCP (Model Context Protocol) servers can set arbitrary HTTP headers that undergo credential placeholder substitution, so a malicious server using `{{LIBRECHAT_OPENID_ACCESS_TOKEN}}` in its headers can exfiltrate the OAuth tokens of users who call tools on that server. The weakness is classified as CWE-200, Exposure of Sensitive Information to an Unauthorized Actor.

Mitigation

Fixed in 0.8.3-rc2.