All vulnerabilities

Servers and applications

CVE-2026-54032

Remote MCP Server Description XSS via Unsanitized dangerouslySetInnerHTML; secondary Admin Banner sink lacks DOMPurify

Severity
Medium 6.1
Published
17 Nov 2026
Last changed
17 Nov 2026
Added to UpHeron
17 Nov 2026
Fixed in
0.8.6
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · No login needed · Needs someone to click or open something
Attacker can
Read some data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Also known as
GHSA-vfg3-f8h3-2683
Sources
Project advisories (GitHub)

Description

LibreChat renders remote MCP server descriptions using dangerouslySetInnerHTML without DOMPurify sanitization. A malicious MCP server can inject JavaScript via its description field when the configuration dialog is opened. The admin banner renderer has the same missing-sanitization sink and should be fixed in the same patch, but the remotely supplied MCP description is the primary security boundary.

The same codebase correctly uses DOMPurify in CustomUserVarsSection.tsx:107 (sanitizedDescription) — this is a defense propagation failure within a single component library.

File: client/src/components/Chat/Input/MCPConfigDialog.tsx (line 86)

details.description from MCP server metadata rendered as raw HTML. Malicious MCP server returns .

File: client/src/components/Banners/Banner.tsx (line 48)

Admin banner message rendered for ALL users without DOMPurify.

From LibreChat-AI/LibreChat's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
LibreChatServers and applications · github:librechat-ai/librechat
  • Every version before 0.8.6

About LibreChat

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

From its GitHub repository.
Docker Hub pulls
669,094Docker Hub, 15 Nov 2026
GitHub stars
47,138GitHub, 15 Nov 2026
Forks
9,706GitHub, 15 Nov 2026
License
MITGitHub
First published on GitHub
12 Feb 2023GitHub

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-54032
  • GitHub Advisory Database https://github.com/advisories/GHSA-vfg3-f8h3-2683
  • github.com https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-vfg3-f8h3-2683