Information disclosure in LibreChat - CVE-2026-31951
Published: April 27, 2026
LibreChat
Detailed vulnerability description
The vulnerability allows a remote user to disclose sensitive information.
The vulnerability exists due to improper access control in MCP server header processing when handling tool calls to user-created MCP servers. A remote user can create a malicious MCP server with crafted header placeholders to disclose sensitive information.
User interaction is required, and credential substitution in headers occurs during subsequent tool calls rather than initial connection or inspection. OAuth token exposure requires OpenID SSO to be configured and the victim to be authenticated through it.