Cross-site Scripting (XSS) The advisory has been revoked - it doesn't affect any version of package opensearch-dashboards-2  (opens in a new tab)


Threat Intelligence

EPSS
1.12% (64th 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-WOLFILATEST-OPENSEARCHDASHBOARDS2-16890504
  • published27 May 2026
  • disclosed10 Feb 2025

Introduced: 10 Feb 2025

CVE-2024-11831  (opens in a new tab)
CWE-79  (opens in a new tab)

Amendment

The Wolfi security team deemed this advisory irrelevant for Wolfi:latest.

NVD Description

Note: Versions mentioned in the description apply only to the upstream opensearch-dashboards-2 package and not the opensearch-dashboards-2 package as distributed by Wolfi.

A flaw was found in npm-serialize-javascript. The vulnerability occurs because the serialize-javascript module does not properly sanitize certain inputs, such as regex or other JavaScript object types, allowing an attacker to inject malicious code. This code could be executed when deserialized by a web browser, causing Cross-site scripting (XSS) attacks. This issue is critical in environments where serialized data is sent to web clients, potentially compromising the security of the website or web application using this package.