Skip to main content

LibreChat EUVDEUVD-2026-131847

| CVE-2026-54032 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-20 security-advisories@github.com
6.1
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker hosts malicious MCP server
  2. Delivery
    Victim adds server URL in LibreChat
  3. Exploit
    Opens MCP config dialog (UI:R)
  4. Execution
    onerror payload runs in LibreChat origin
  5. Impact
    Exfiltrate cookies / alter displayed content

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Primary (MCP) sink: a user must add an attacker-controlled remote MCP server and open its configuration dialog in LibreChat (versions prior to 0.8.6), at which point details.description is rendered via dangerouslySetInnerHTML with no DOMPurify sanitization - the limiting factors are the required user interaction (UI:R, opening the dialog) and the user's choice to add the malicious server. Secondary (banner) sink: requires an administrator to set banner.message, which is then rendered unsanitized to all users, so exploitation of this path is gated by administrative privilege. Both sinks exist in default configurations below 0.8.6; the single complete fix is upgrading to 0.8.6, which adds DOMPurify sanitization (allowed tags/attributes allowlist) to both locations.

Impact

This is a CWE-79 XSS with a provided CVSS 3.1 vector of AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N (base 6.1, medium), and the vendor (GHSA-vfg3-f8h3-2683) independently assessed it as medium. The signals are internally consistent and point to a real-but-bounded issue rather than an emergency: the vuln.today decision label is 'this_month' (not act_now/emergency), there is no CISA KEV listing in the input, and no EPSS score was supplied. The UI:R metric is well-supported by the description - the primary MCP-description sink only fires when a user opens the MCP configuration dialog, and the secondary banner sink requires an administrator to author the banner message. A public PoC reference exists in the GHSA advisory (a jsdom browser-sink demonstration mirroring the two React sinks); it is not verified as a working end-to-end exploit against a running LibreChat instance, and the maintainer explicitly notes the queue audit did not rerun a full application exploit. One nuance worth flagging: PR:N is defensible for the MCP sink because the malicious payload originates from a remote attacker-controlled MCP server, but exploitation still depends on the victim choosing to add that server and open the dialog, so real-world reach is gated by user action rather than being fully unauthenticated-remote. The S:C (scope change) is justified because script executes in the LibreChat browser origin, a different security authority than the MCP server supplying the data. Overall this is a legitimate medium-priority fix (session/cookie exposure, content tampering, phishing within a trusted origin) but not a drop-everything issue given no confirmed active exploitation and the user/admin-interaction prerequisites.

Exploit ScenarioDerived

An attacker stands up a malicious remote MCP server whose metadata description contains an HTML payload such as <img src=x onerror='...'>; when a LibreChat user adds that server and opens its configuration dialog, the unsanitized dangerouslySetInnerHTML render executes the script in the LibreChat origin, exposing browser-context data like cookies. A PoC reference exists demonstrating the sink in a jsdom browser-like environment, though it is not verified as a working exploit against a live deployment. Separately, an administrator-supplied banner.message is rendered unsanitized to all users, so a malicious or compromised admin account yields stored XSS affecting every user loading the page.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 20, 2026

Cross-site scripting in LibreChat versions prior to 0.8.6 allows a malicious remote MCP server to execute script in the LibreChat browser origin when a user opens that server's configuration dialog, because details.description is rendered through dangerouslySetInnerHTML without sanitization; the same unsanitized pattern exists for administrator-controlled banner.message shown to all users. The CVSS 3.1 vector is AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N (6.1, medium), reflecting required user interaction rather than a direct unauthenticated attack, and the banner path additionally requires administrative privilege. Version 0.8.6 adds DOMPurify allowlist sanitization to both sinks; a public PoC reference exists (a jsdom browser-sink demonstration), it is not verified as working exploit code, and no CISA KEV entry is present.

RemediationAI

Upgrade LibreChat to 0.8.6, which sanitizes both sinks with DOMPurify; the fix commit is an ancestor of the v0.8.6 tag per the advisory, and package metadata lists 0.8.6 as the fixed version. The advisory frames updating as the complete fix for both the MCP description and admin banner paths, and no separate vendor workaround is documented in the supplied data. Deployments on stale container images or third-party builds should verify the running source contains commit 619f28d76d rather than assuming a tag name alone, because the advisory limits source-release containment to the published tag. The priority label is this_month, so schedule the upgrade within the current month. Advisory: https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-vfg3-f8h3-2683.

Affected VersionsENISA

LibreChat < 0.8.6

Affected Packages

euvd librechat fix: 0.8.6

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 affected code is the LibreChat React client. In MCPConfigDialog.tsx, metadata from a remote Model Context Protocol (MCP) server, specifically details.description, is passed as __html to dangerouslySetInnerHTML, so HTML supplied by that server is parsed in the LibreChat origin instead of being treated as text. Banner.tsx has the same pattern for banner.message, an administrator-supplied value rendered to every user. Both are CWE-79 (improper neutralization of input during web page generation). The fix commit 619f28d76d adds DOMPurify with explicit ALLOWED_TAGS and ALLOWED_ATTR lists (a, strong, b, em, i, br, code, span, and p in the MCP dialog) and rewrites anchor target/rel attributes, showing that the intended rendering model is sanitized HTML, not raw HTML. The advisory notes the codebase already used DOMPurify in CustomUserVarsSection.tsx, so this is a defense-propagation failure rather than an absence of a sanitizer library. The trigger requires rendering the malicious description or banner in the browser; the CVSS vector's UI:R captures the dialog-open step for the MCP path, and the banner path is gated by admin rights.

Know when the next one hits your stack

  • 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

Vendor (github) PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 6.1 MEDIUM

Primary MCP sink is reachable from a remote attacker-controlled server (PR:N) but needs the user to open the config dialog (UI:R); script crosses into the LibreChat origin (S:C) with limited C/I impact and no availability loss.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
Nov 20, 2026 - 22:04 EUVD

DescriptionCVE.org

LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.6, client/src/components/Chat/Input/MCPConfigDialog.tsx renders the remote MCP details.description value through dangerouslySetInnerHTML without sanitization, allowing a malicious MCP server to execute script when a user opens the configuration dialog. The secondary client/src/components/Banners/Banner.tsx sink similarly renders administrator-controlled banner.message HTML without sanitization for all users. Script execution occurs in the LibreChat browser origin and can expose browser-context data or alter displayed content. This issue is fixed in version 0.8.6.

Threat Intelligence Overview

EPSS Score
0.4%
Top 61% exploitable
Prevalence
Medium
popular self-hosted open-source ChatGPT clone, common but not ubiquitous
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy