CVE-2026-22252CWE-285

LibreChat MCP Stdio Remote Command Execution

Critical · published January 12, 2026

CVSS v3.1
9.1
EPSS
4%
Percentile
91.0
In the wild
Unconfirmed
What it is

🚨 A single API request is all it takes for an authenticated user to execute shell commands as root in LibreChat! 🔥 Think of it like a restaurant where a diner can walk into the kitchen and cook whatever dish they want without anyone stopping them — absolutely chaotic! This vulnerability enables a malicious user to take complete control of the server, allowing them to read sensitive data, install malicious software, or even wipe the entire system clean. The potential impact is devastating, as it effectively gives away the keys to the kingdom!

Put simply

Think of it like a restaurant where a diner can walk into the kitchen and cook whatever dish they want without anyone stopping them — absolutely chaotic! In LibreChat prior to version 0.8.2-rc2, the MCP stdio transport accepts arbitrary commands without any validation, meaning authenticated users can exploit this flaw to run shell commands with root privileges. This is a classic case of insufficient input validation allowing a full takeover.

What to do

This vulnerability enables a malicious user to take complete control of the server, allowing them to read sensitive data, install malicious software, or even wipe the entire system clean. The potential impact is devastating, as it effectively gives away the keys to the kingdom! Immediately update LibreChat to version 0.8.2-rc2 to secure against this vulnerability. Additionally, review your authentication mechanisms to ensure only trusted users have access to sensitive APIs. Regularly audit your systems to catch any lingering vulnerabilities! You've got this! Take these steps, and you'll be back in control in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.04223 · 91.0th percentile
Weakness
CWE-285 · Improper Authorization
Published
2026-01-12T18:01Z
EPSS history
Timeline
  • 12 JAN 18:01Z
    LibreChat MCP Stdio Remote Command Execution
    cvelistv5