Cross-site Scripting (XSS) Affecting node-serialize-javascript package, versions *


Severity

Recommended
0.0
medium
0
10

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

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 Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DEBIAN12-NODESERIALIZEJAVASCRIPT-8710259
  • published12 Feb 2025
  • disclosed10 Feb 2025

Introduced: 10 Feb 2025

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

How to fix?

There is no fixed version for Debian:12 node-serialize-javascript.

NVD Description

Note: Versions mentioned in the description apply only to the upstream node-serialize-javascript package and not the node-serialize-javascript package as distributed by Debian. See How to fix? for Debian:12 relevant fixed versions and status.

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.

CVSS Scores

version 3.1