Findings

CVE-2024-11831

A flaw was found in npm-serialize-javascript.

Published Feb 10, 2025 · updated Oct 15, 2026

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.

Code

The project this record applies to. Exploit listings stay in References.

No public source repository is identified for this product.

Timeline

Detection, updates, and resolution for this record.

  1. Feb 10, 2025 · NIST NVD

    Detected

    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 wher

  2. Oct 15, 2026 · NIST NVD

    Updated

    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 wher

Sources

  • CVE.orgVulnerability recordCVE-2024-11831

    Official CVE identifier

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2024-11831

    30-day exploitation probability 1.1%

    first.org
  • NIST NVDVulnerability recordCVE-2024-11831

    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 whe

    nvd.nist.gov

References

CVE-2024-11831 · ZeroDay Findings