CVE-2026-32625

LibreChat Exfiltrates Server Secrets via MCP Server URL Injection

Published Jun 2, 2026 CVSS 3.1 · 9.6 Critical EPSS 2.8% KEV · Not listed
Description
LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. In versions up to and including 0.8.3, the Model Context Protocol (MCP) server integration resolves ${VAR} placeholders against the server's process.env during Zod schema validation of user-supplied MCP server URLs. Any authenticated user can create a malicious MCP server configuration with a URL pointing to an attacker-controlled domain containing environment variable references, causing the LibreChat server to connect to the attacker's server and transmit critical secrets such as CREDS_KEY, CREDS_IV, JWT_SECRET, and MONGO_URI in the request URL. This enables full compromise of the installation's cryptographic materials and database credentials without requiring administrative privileges. This is patched in version 0.8.4-rc1.

Analysis

AI-generated

Technical impact

LibreChat up to version 0.8.3 allows authenticated users to inject environment variable references into MCP server URLs during Zod schema validation, enabling the server to transmit critical secrets such as CREDS_KEY, CREDS_IV, JWT_SECRET, and MONGO_URI to an attacker‑controlled domain. This results in full compromise of cryptographic materials and database credentials without requiring administrative privileges.

Affected Systems

The vulnerability affects the LibreChat platform provided by danny-avila. Users running version 0.8.3 or earlier are impacted; the fix is in 0.8.4-rc1.

Risk and Exploitability

The CVSS score is 9.6 indicating a high severity. The EPSS score is < 1%, indicating a low probability of exploitation, and the vulnerability is not listed in KEV. Attackers can exploit the flaw by configuring a malicious MCP server URL that references environment variables, causing the LibreChat server to make outbound HTTP requests to a controlled domain and capture credential data. No privilege escalation is required; any authenticated user can create such a configuration.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to LibreChat 0.8.4‑rc1 or later
  • If an upgrade cannot be performed immediately, disable or restrict authenticated MCP server configuration to trusted domains and prevent environment variable interpolation
  • Monitor outbound HTTP traffic for requests that include environment variable placeholders or secret URLs and investigate any suspicious activity

Generated by OpenCVE AI on November 26, 2026 at 05:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Librechat
Librechat librechat
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:a:librechat:librechat:*:*:*:*:*:*:*:*
Vendors & Products Librechat
Librechat librechat
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Danny-avila
Danny-avila libre Chat
Vendors & Products Danny-avila
Danny-avila libre Chat
Type Values Removed Values Added
Description LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. In versions up to and including 0.8.3, the Model Context Protocol (MCP) server integration resolves ${VAR} placeholders against the server's process.env during Zod schema validation of user-supplied MCP server URLs. Any authenticated user can create a malicious MCP server configuration with a URL pointing to an attacker-controlled domain containing environment variable references, causing the LibreChat server to connect to the attacker's server and transmit critical secrets such as CREDS_KEY, CREDS_IV, JWT_SECRET, and MONGO_URI in the request URL. This enables full compromise of the installation's cryptographic materials and database credentials without requiring administrative privileges. This is patched in version 0.8.4-rc1.
Title LibreChat Exfiltrates Server Secrets via MCP Server URL Injection
Weaknesses CWE-200
References
Metrics cvssV3_1

{'score': 9.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 3, 2026, 2:07 PM
Reserved
Mar 12, 2026, 3:29 PM
Status
Analyzed
Published
Jun 2, 2026, 11:16 PM
Modified
Jul 22, 2026, 7:10 PM