VYPR

npm package

serialize-javascript

pkg:npm/serialize-javascript

Vulnerabilities (4)

  • CVE-2026-97711LowSep 29, 2026
    affected >= 7.1.1, < 7.1.2fixed 7.1.2

    Serialize JavaScript serializes JavaScript values to a superset of JSON that includes regular expressions and functions. From 7.1.1 until 7.1.2, function values serialized by serialize-javascript are not fully protected against script-closing tags in attacker-influenced function

  • CVE-2024-11831MedFeb 10, 2025
    affected >= 6.0.0, < 6.0.2fixed 6.0.2

    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

  • CVE-2020-7660HigJun 1, 2020
    affected < 3.1.0fixed 3.1.0

    serialize-javascript prior to 3.1.0 allows remote attackers to inject arbitrary code via the function "deleteFunctions" within "index.js".

  • CVE-2019-16769MedDec 5, 2019
    affected < 2.1.1fixed 2.1.1

    The serialize-javascript npm package before version 2.1.1 is vulnerable to Cross-site Scripting (XSS). It does not properly mitigate against unsafe characters in serialized regular expressions. This vulnerability is not affected on Node.js environment since Node.js's implementati