VYPR

npm package

serialize-javascript

pkg:npm/serialize-javascript

Vulnerabilities (3)

  • 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-7660Jun 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-16769Dec 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