CVE Catalog

CVE-2024-11831

MediumCVSS 5.4
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
1.08%

62th percentile - higher than 62% of all known CVEs

Summary

A flaw was found in npm-serialize-javascript where the module does not properly sanitize certain inputs like regex or other JavaScript object types, allowing an attacker to inject malicious code. This code can be executed during deserialization in a web browser, leading to Cross-site scripting (XSS) attacks.

Risk Assessment

The risk for the organization is the potential execution of malicious scripts in users' browsers, which could lead to session data theft, account takeover, or website defacement. Applications that send serialized data to web clients are particularly vulnerable.

Recommendation

It is recommended to immediately update the serialize-javascript package to the latest version that includes a security fix. Also review the code for any use of unsanitized input in serialization contexts.

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS