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.

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

  3. Oct 15, 2026 · CIRCL Vulnerability Lookup

    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

  4. Oct 15, 2026 · GitHub Advisory Database

    Fix available

    serialize-javascript fixed in 6.0.2

  5. Oct 15, 2026 · GitHub Advisory Database

    Fix available

    serialize-javascript fixed in 6.0.2

  6. Oct 15, 2026 · GitHub Advisory Database

    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

Affected

  • npm serialize-javascript6.0.0 → 6.0.2
  • vendor Red Hat Red Hat Advanced Cluster Security 4.4version unspecified
  • vendor Red Hat Red Hat Advanced Cluster Security 4.5version unspecified
  • vendor Red Hat Red Hat Ceph Storage 7.1version unspecified
  • vendor Red Hat Red Hat Ceph Storage 8.1version unspecified
  • vendor Red Hat Red Hat Ceph Storage 9.0version unspecified
  • vendor Red Hat Red Hat Enterprise Linux 8version unspecified
  • vendor Red Hat Red Hat Enterprise Linux 9version unspecified

Sources

  • CIRCL Vulnerability LookupVulnerability 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

    vulnerability.circl.lu
  • CVE.orgVulnerability recordCVE-2024-11831

    Official CVE identifier

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2024-11831

    30-day exploitation probability 1.1%

    first.org
  • GitHub Advisory DatabasePackage advisoryGHSA-76p7-773f-r4q5

    GitHub Advisory Database record mirrored by OSV.

    github.com
  • GitLab Advisory DatabasePackage advisorynpm/serialize-javascript/CVE-2024-11831.yml

    A flaw was found in npm-serialize-javascript. The vulnerability oc 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." -date: "2026-09-01" +date: "2026-10-15" pubdate: "2025-02-10" affected_range: ">=6.0.0 <6.0.2" fixed_versions: @@ -49,6 +49,7 @@ u

    gitlab.com
  • 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
  • OSV.devPackage advisoryGHSA-76p7-773f-r4q5

    Cross-site Scripting (XSS) in serialize-javascript

    osv.dev

References