Cross-site Scripting (XSS) Affecting langfuse-fips-2 package, versions <2.95.12-r16


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.34% (26th 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-LANGFUSEFIPS2-15566147
  • published15 Mar 2026
  • disclosed3 Mar 2026

Introduced: 3 Mar 2026

CVE-2026-0540  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade Chainguard langfuse-fips-2 to version 2.95.12-r16 or higher.

NVD Description

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

DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8, fixed in commit 2726c74, contain a cross-site scripting vulnerability that allows attackers to bypass attribute sanitization by exploiting five missing rawtext elements (noscript, xmp, noembed, noframes, iframe) in the SAFE_FOR_XML regex. Attackers can include payloads like </noscript><img src=x onerror=alert(1)> in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts.

CVSS Base Scores

version 3.1