VYPR

Serialize Javascript

by Yahoo

Source repositories

CVEs (6)

  • CVE-2026-34043MedMar 31, 2026
    risk 0.31cvss 5.9epss 0.01

    Serialize JavaScript to a superset of JSON that includes regular expressions and functions. Prior to version 7.0.5, there is a Denial of Service (DoS) vulnerability caused by CPU exhaustion. When serializing a specially crafted "array-like" object (an object that inherits from…

  • CVE-2024-11831MedFeb 10, 2025
    risk 0.28cvss 5.4epss 0.01

    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…

  • CVE-2019-16769MedDec 5, 2019
    risk 0.27cvss 4.2epss 0.01

    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…

  • CVE-2026-115754MedOct 23, 2026
    risk 0.24cvss 4.7epss 0.00

    serialize-javascript from 7.0.1 before 7.1.3 contains a cross-site scripting vulnerability that allows attackers to break out of HTML script elements by ending serialized function source text with an unescaped </script. Attackers controlling a function's source via a spoofed…

  • CVE-2026-97711LowSep 29, 2026
    risk 0.08cvss —epss 0.00

    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-2026-115897LowOct 23, 2026
    risk 0.07cvss —epss 0.00

    Serialize JavaScript serializes JavaScript values to a superset of JSON that includes regular expressions and functions. Prior to 7.1.3, the function-source escaping logic does not neutralize a bare closing-script prefix when attacker-influenced function source text ends exactly…