Cross-site Scripting (XSS) Affecting librechat package, versions <0.8.7-r1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.38% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CHAINGUARDLATEST-LIBRECHAT-17708337
  • published30 Jun 2026
  • disclosed14 Jul 2026

Introduced: 30 Jun 2026

CVE-2026-49458  (opens in a new tab)
CWE-79  (opens in a new tab)
CWE-501  (opens in a new tab)
CWE-693  (opens in a new tab)

How to fix?

Upgrade Chainguard librechat to version 0.8.7-r1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream librechat package and not the librechat package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Prior to 3.4.6, DOMPurify.sanitize(node, { IN_PLACE: true }) accepted same-origin foreign-realm DOM nodes while follow-on checks used parent-realm constructors, causing instanceof checks for forms, named node maps, document fragments, and elements to fail and skip clobber, template-content, and shadow-DOM sanitization branches so executable markup could survive. This issue is fixed in version 3.4.6.

CVSS Base Scores

version 3.1