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.3% (23rd 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-17708341
  • published30 Jun 2026
  • disclosed14 Jul 2026

Introduced: 30 Jun 2026

CVE-2026-49459  (opens in a new tab)
CWE-79  (opens in a new tab)
CWE-693  (opens in a new tab)
CWE-1321  (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(root, { IN_PLACE: true }) could preserve event-handler attributes on an attacker-controlled <form> root when a descendant name clobbered properties checked by _isClobbered, because _forceRemove no-opped on the parent-less root and _sanitizeAttributes returned early. This issue is fixed in version 3.4.6.

CVSS Base Scores

version 3.1