Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessStand up malicious MCP server
-
DeliveryLure operator to add server
-
ExploitServe crafted RFC 9728 resource metadata
-
ExecutionLibreChat skips resource validation
-
PersistCapture token meant for legitimate server
-
ImpactReplay token against trusted server
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Origin validation
|
| Exploitation Conditions | Exploitation requires that LibreChat (prior to 0.8.5) be configured to use its MCP OAuth integration and that an operator/user connect the instance to an attacker-controlled MCP server - that act of trusting and adding the malicious server is the core prerequisite (reflected as UI:R in the CVSS vector). The attacker must control an MCP server that returns crafted RFC 9728 Protected Resource metadata advertising a 'resource' value for the targeted legitimate server. Limiting factors: it is not exploitable against default installs that do not use MCP OAuth or only connect to trusted servers; it is not automatable at scale (SSVC Automatable=no) because each compromise depends on a victim adding the rogue server; and there must be a legitimate OAuth-protected MCP server whose tokens are worth stealing. |
| Impact | Signals are mixed and should be read together. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N, score 9.3) reflects a network-reachable, low-complexity flaw with a scope change (token crosses an authorization boundary to a different server) but requiring user interaction - specifically an operator electing to connect to the malicious MCP server. SSVC marks Exploitation=poc, Automatable=no, Technical Impact=total, which is consistent: severe consequence per event, but not mass-exploitable because each compromise needs a victim to add an attacker-controlled server. Counterbalancing the 9.3, EPSS is only 0.11% (1st percentile) and the CVE is not on CISA KEV - no public exploit identified and no evidence of active exploitation. Net: this is a genuinely high-impact origin-validation bug, but real-world risk is gated by the social/configuration step of trusting a malicious server, making it a priority for environments that enable MCP integrations rather than a broad emergency. The UI:R requirement and 'no public exploit' status mean the headline 9.3 overstates likelihood relative to impact. |
| Exploit ScenarioDerived | An attacker stands up a malicious MCP server and lures a LibreChat administrator into adding it (e.g., advertised as a useful tool integration). When the operator initiates the OAuth flow, the rogue server returns Protected Resource metadata whose 'resource' value points at a legitimate server; LibreChat, not validating the resource against the configured URL, hands over or exposes the access token, which the attacker then replays against the trusted server. A proof-of-concept is referenced in the SSVC data, though no weaponized public exploit was identified. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 30, 2026
Access-token theft in LibreChat before 0.8.5 lets a malicious MCP (Model Context Protocol) server hijack OAuth tokens minted for a legitimate server, because the client never checks that the RFC 9728 resource parameter matches the configured MCP server URL. Any LibreChat operator who connects their instance to an attacker-controlled MCP server can have the OAuth access tokens intended for a trusted server silently exfiltrated. SSVC rates technical impact as total and a proof-of-concept is referenced, but there is no public exploit weaponization and EPSS exploitation probability is very low (0.11%); it is fixed in 0.8.5.
Earlier versions of this analysis (2)
Access token theft in LibreChat before 0.8.5 lets a malicious MCP (Model Context Protocol) server hijack OAuth tokens intended for a legitimate server, because the OAuth client never verifies that the RFC 9728 Protected Resource Metadata 'resource' parameter matches the configured MCP server URL. An operator who connects LibreChat to an attacker-controlled or compromised MCP endpoint can have the resulting access tokens redirected and captured, exposing the targeted upstream service. SSVC rates this proof-of-concept stage with total technical impact; publicly available exploit code exists (GHSA advisory), but EPSS is low at 0.11%, and it is not on CISA KEV.
Access token theft in LibreChat (danny-avila/librechat) before 0.8.5 allows a malicious MCP server to capture OAuth access tokens intended for a legitimate server. The flaw lives in LibreChat's Model Context Protocol (MCP) OAuth client, which fails to validate that the 'resource' parameter advertised via RFC 9728 OAuth Protected Resource metadata matches the configured MCP server URL, so tokens can be redirected to an attacker-controlled audience. No public exploit identified at time of analysis, and it is not listed in CISA KEV; the issue is fixed in 0.8.5.
RemediationAI
Vendor-released patch: upgrade to LibreChat 0.8.5, which adds validation that the OAuth Protected Resource metadata 'resource' parameter matches the configured MCP server URL; see the advisory at https://github.com/danny-avila/LibreChat/security/advisories/GHSA-gvpj-vm2f-2m23. If you cannot upgrade immediately, the most effective compensating control is to disable or remove MCP server integrations that use OAuth, or restrict configured MCP servers to a vetted allowlist of trusted, operator-controlled endpoints only - the trade-off is loss of third-party MCP connectivity for users. Additionally, treat any OAuth tokens that may have been exposed to untrusted MCP servers as compromised and rotate/revoke them at the legitimate resource server. Avoid connecting LibreChat to MCP servers received from untrusted parties until patched.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw lives in LibreChat's MCP OAuth client flow. MCP servers advertise their authorization requirements via OAuth 2.0 Protected Resource Metadata (RFC 9728), which includes a 'resource' indicator identifying the audience the issued token is bound to. LibreChat failed to validate that this advertised resource value matched the MCP server URL the user actually configured, an instance of CWE-346 (Origin Validation Error). Because the audience/resource binding goes unverified, a rogue MCP server can present metadata pointing the OAuth dance at a legitimate server's resource, causing LibreChat to forward (or expose) tokens scoped for the trusted server to the attacker. The affected component is cpe:2.3:a:danny-avila:librechat across all versions prior to 0.8.5.
Know when Librechat gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Network OAuth flow with no attacker privileges but requires an operator to add the malicious server (UI:R); token theft crosses to another server (S:C) breaching confidentiality and enabling integrity actions, no availability impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorNVD
Lifecycle Timeline
5DescriptionNVD
LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.5, LibreChat's MCP OAuth implementation does not validate that the resource parameter from OAuth Protected Resource metadata (RFC 9728) matches the configured MCP server URL, allowing a malicious MCP server to steal access tokens intended for a legitimate server. This vulnerability is fixed in 0.8.5.
Executive ViewAI
LibreChat before version 0.8.5 can have its OAuth credentials stolen if operators connect to a compromised external server, exposing any services that LibreChat authenticates to. Publicly available exploit code exists for this vulnerability, and organizations using LibreChat with external integrations should immediately upgrade to prevent potential compromise of critical third-party services.
Apply vendor patch: LibreChat 0.8.5
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
A vulnerability in danny-avila/librechat version git 81f2936 allows for path traversal due to improper sanitization of f
An arbitrary file deletion vulnerability exists in danny-avila/librechat version v0.7.5-rc2, specifically within the /ap
LibreChat before v0.8.2-rc2 allows any authenticated user to execute shell commands as root inside the container through
LibreChat 0.7.9 lets an authenticated user turn off two-factor authentication on their own account without supplying a v
Stored cross-site scripting and tracker injection in LibreChat 0.8.0 and earlier allow a user who can create a chat to c
LibreChat is a ChatGPT clone with additional features. Rated high severity (CVSS 8.6), this vulnerability is remotely ex
LibreChat 0.8.1-rc2 has SSRF in the Actions feature that allows authenticated users to make the server perform requests
In danny-avila/librechat version git 0c2a583, there is an improper input validation vulnerability. Rated high severity (
A mass assignment vulnerability exists in danny-avila/librechat, affecting all versions. Rated high severity (CVSS 7.5),
Unbounded `key` and `value` parameters on the LibreChat 0.7.9 memory API (`POST /api/memories` and `PATCH /api/memories/
An unhandled exception in the danny-avila/librechat repository, version git 600d217, can cause the server to crash, lead
An improper access control vulnerability (IDOR) exists in the delete attachments functionality of danny-avila/librechat
EUVD-2026-39457
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB