Skip to content
MediumVulnerabilityLLM-specific

CVE-2026-54025: LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.4-rc1, there is a…

Identifier
CVE-2026-54025
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%

Summary

LibreChat versions before 0.8.4-rc1 are affected by a flaw in the markdown artifact preview pipeline. When the custom image renderer in generateMarkdownHtml (client/src/utils/markdown.ts) falls back to marked v15.0.12's built-in renderer, double-quote characters in image alt text are not HTML-escaped. An attacker can craft alt text that breaks out of the alt attribute and injects an event handler, which runs in the victim's browser when the HTML is assigned to innerHTML in the Sandpack preview iframe.

Mitigation

Fixed in 0.8.4-rc1.