CVE-2024-11831
Executive Summary
CVE-2024-11831 exposes a critical XSS flaw in npm-serialize-javascript. The library fails to sanitize inputs such as regex or other JavaScript object types, enabling attackers to inject malicious code that executes during deserialization in browsers. Any application that serializes data with this module and sends it to clients is at risk of compromising user data and site integrity. No KEV listing yet, but the vulnerability warrants immediate patching or mitigation.
Authoritative CVE Metadata
- CVSS Base Score: 5.4 (MEDIUM)
- Last Modified: 27-10-26
Original 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.