| Field | Value |
|---|---|
| CVE / NVD | CVE-2026-31945 |
| Date (index) | 2026-03-27 |
| Affected product (index) | LibreChat MCP server-side request forgery via DNS resolution |
| GHSA ID | GHSA-f92m-jpv7-55p2 |
| OWASP MCP Top 10 (2025) | MCP05 — Command Injection & Execution |
| Published / disclosed | 2026-03-27 |
| Ecosystem | Application (vendor product) |
| Component | LibreChat MCP server-side request forgery via DNS resolution |
| EPSS score | 0.002490000 (FIRST EPSS, 2026-06-30) |
| CVSS score | High — 7.7 |
| CWE | CWE-918 |
| Affected versions | LibreChat >= 0.8.2-rc2, < 0.8.3-rc1; 0.8.2 |
| Fixed versions | No fixed version listed in NVD/GitHub advisory |
| Fix status | Unfixed |
| Exploit status | Public CVE record; do not mirror weaponized payloads |
| Notes | Added during the 2026-06-24 Tier 1 missing-CVE review from NVD MCP keyword results. Re-check NVD before using this entry for compliance reporting. |
LibreChat is a ChatGPT clone with additional features. Versions 0.8.2-rc2 through 0.8.2 are vulnerable to a server-side request forgery (SSRF) attack when using agent actions or MCP. Although a previous SSRF vulnerability (https://github.com/danny-avila/LibreChat/security/advisories/GHSA-rgjq-4q58-m3q8) was reported and patched, the fix only introduced hostname validation. It does not verify whether DNS resolution results in a private IP address. As a result, an attacker can still bypass the protection and gain access to internal resources, such as an internal RAG API or cloud instance metadata endpoints. Version 0.8.3-rc1 contains a patch.
Exposure depends on how the affected MCP server, client, gateway, plugin, or adjacent AI tool is deployed. Prioritize systems reachable by untrusted users or networks, systems that accept attacker-controlled tool arguments, and systems with access to credentials, browsers, cloud APIs, Kubernetes clusters, databases, email, or desktop automation.
Primary mapped weakness: MCP05 — Command Injection & Execution. Confirm the exact CWE and affected code path in the NVD record and upstream advisory before adding exploit-specific detail.
MCP components bridge model output to privileged tools. Vulnerabilities in authentication, scope enforcement, command execution, SSRF validation, secret handling, or tool registration can turn prompt/tool input into host compromise, credential disclosure, unauthorized cloud/database access, or persistent malicious tool execution.
Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory. Do not paste weaponized payloads.
Upgrade to the vendor-fixed version where available. If no fixed version is listed, restrict the affected component to trusted users and trusted networks, disable risky tools, validate tool arguments, and run the service with least-privilege credentials until upstream remediation is confirmed.
If a public PoC exists, prefer vendor advisories and defensive write-ups; do not host weaponized exploit code in this repository.
Track NVD references for CVE-2026-31945 and apply the upstream patched release or commit recommended by the vendor/CNA.