CVE-2026-22252 LibreChat MCP Stdio Remote Command Execution

Critical 9.1 Published Updated

Authenticated users can execute arbitrary shell commands as root via the MCP stdio transport due to lack of input validation.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-22252?

CVE-2026-22252 is a critical command injection vulnerability in Librechat Librechat, published on 12 Jan 2026. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

LibreChat is a ChatGPT clone with additional features. Prior to v0.8.2-rc2, LibreChat's MCP stdio transport accepts arbitrary commands without validation, allowing any authenticated user to execute shell commands as root inside the container through a single API request. This vulnerability is fixed in v0.8.2-rc2.

Weakness: CWE-285

Which versions are affected by CVE-2026-22252?

It affects 1 product.

Products include Librechat Librechat.

How do I fix CVE-2026-22252?

No fix has been published for CVE-2026-22252 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-22252 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-22252 exists.

All Librechat Librechat vulnerabilities

Sources

Also known as GHSA-cxhj-j78r-p88f.

Is CVE-2026-22252 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free