CVE-2024-11831

Medium

Description

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.

SeverityMedium
CVSS5.4
Exploit probability—
ProductSerialize-javascript
PublishedFeb 10, 2025
First seenFeb 10, 2025

How to fix

Affected products

ProductAffected versionsFixed in
serialize-javascriptnpm6.0.0 ≤ v < 6.0.26.0.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.