Input validation error in LibreChat - CVE-2026-22252
Published: April 27, 2026
LibreChat
Detailed vulnerability description
The vulnerability allows a remote user to execute arbitrary shell commands as root inside the container.
The vulnerability exists due to improper input validation in the MCP stdio transport when handling crafted API requests for MCP server creation. A remote privileged user can send a specially crafted HTTP request with an arbitrary command to execute arbitrary shell commands as root inside the container.
The issue works on the default installation and is triggered during MCP server creation during inspection.