Quick answers
- Is CVE-2026-54025 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-54025 being exploited in the wild.
- How severe is CVE-2026-54025?
- Medium severity, with a CVSS score of 5.4, published 25 June 2026.
- Which products and versions are affected?
- LibreChat < 0.8.4-rc1.
- Is there a fix for CVE-2026-54025?
- No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
- How is CVE-2026-54025 attacked?
- It is attacked over the network, in a network appliance.
- Am I affected by CVE-2026-54025?
- Check whether you run LibreChat at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
A stored Cross-Site Scripting (XSS) vulnerability exists in LibreChat's markdown artifact preview pipeline due to improper escaping in the 'marked' library (v15.0.12). When the 'generateMarkdownHtml' function in 'client/src/utils/markdown.ts' uses a custom image renderer that falls back to the default renderer for safe URLs, the default renderer fails to HTML-escape double-quote characters in the image 'alt' text. An authenticated attacker can import a crafted conversation JSON containing a malicious markdown artifact and generate a public share link. When a victim views the shared link, the unescaped 'alt' text breaks out of the attribute to inject an 'onload' event handler, executing arbitrary JavaScript within the Sandpack preview iframe. This can be used to perform a top-level window redirection since LibreChat lacks restrictive Content-Security-Policy (CSP) or X-Frame-Options headers. The issue is fixed in version 0.8.4-rc1.
Affected products
- danny-avila LibreChat < 0.8.4-rc1
Timeline
- 2026-06-02: advisory: GitHub Security Advisory published
- 2026-06-25: disclosed: NVD publication date