Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-54025— LibreChat: Stored XSS via unescaped image alt text in markdown artifact preview

Quick assessment

Affected
danny-avila LibreChat
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

danny-avila LibreChat是danny-avila个人开发者的 Danny Avila LibreChat 0.8.4-rc1之前版本存在跨站脚本漏洞,该漏洞源于markdown artifact预览管道中marked库对图片alt文本内的双引号字符未进行HTML转义,导致攻击者可通过构造特制的alt文本注入任意事件处理器,从而在受害者浏览器中执行有效载荷。

CVSS 5.4 · Medium EPSS 0.24% · P13

Affected Version Matrix 1

VendorProduct Version RangeStatus
danny-avila LibreChat < 0.8.4-rc1 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-54025

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
LibreChat: Stored XSS via unescaped image alt text in markdown artifact preview
Source: CVE Program / CVE List V5
Vulnerability Description
LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.4-rc1, there is a vulnerability in LibreChat's markdown artifact preview pipeline. The marked library v15.0.12 does not HTML-escape double-quote characters in image alt text when a custom renderer falls through to the default renderer. LibreChat's generateMarkdownHtml function (in client/src/utils/markdown.ts) installs a custom image renderer that returns false for URLs passing the isSafeUrl allowlist check, which causes marked to fall back to its built-in renderer. That built-in renderer inserts the raw alt text into the alt="..." attribute without escaping double-quote characters. An attacker can craft an alt text such as " onload="payload to break out of the attribute and inject an arbitrary event handler. The resulting HTML is then assigned to document.getElementById('content').innerHTML inside the Sandpack preview iframe, causing the payload to execute in the victim's browser. This vulnerability is fixed in 0.8.4-rc1.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5
Vulnerability Title
Danny Avila LibreChat 跨站脚本漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
danny-avila LibreChat是danny-avila个人开发者的 Danny Avila LibreChat 0.8.4-rc1之前版本存在跨站脚本漏洞,该漏洞源于markdown artifact预览管道中marked库对图片alt文本内的双引号字符未进行HTML转义,导致攻击者可通过构造特制的alt文本注入任意事件处理器,从而在受害者浏览器中执行有效载荷。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
danny-avila LibreChat < 0.8.4-rc1 -

II. Public POCs for CVE-2026-54025

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-54025

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-54025 (1)

Same Patch Batch · danny-avila · 2026-06-25 · 9 CVEs total

CVE-2026-54030 8.0 HIGH LibreChat: Missing Resource Parameter Validation in MCP OAuth Flow
CVE-2026-54033 7.7 HIGH LibreChat: SSRF via User-Provided Custom Endpoint baseURL — no private IP validation on us
CVE-2026-54027 6.5 MEDIUM LibreChat: Image Upload Route Bypasses Agent Permission Check — Incomplete Fix for File Up
CVE-2026-54037 6.5 MEDIUM LibreChat: Incomplete Fix for CVE-2025-7105 — /api/convos/duplicate Lacks Rate Limiting Ap
CVE-2026-54024 6.5 MEDIUM LibreChat: Incomplete Fix for CVE-2024-11171 — Conversation Import Multer Instance Missing
CVE-2026-54040 5.9 MEDIUM LibreChat: 2FA Backup Code Regeneration Without OTP Verification Allows 2FA Bypass
CVE-2026-54036 5.3 MEDIUM LibreChat: 2FA Re-enrollment Allows Full Account 2FA Takeover Without OTP Verification
CVE-2026-54029 5.3 MEDIUM LibreChat: IDOR in Message Deletion — Incomplete Fix for CVE-2024-41703 Leaves deleteMessa

IV. Related Vulnerabilities

V. Comments for CVE-2026-54025

No comments yet


Leave a comment