VYPR

npm package

safe-eval

pkg:npm/safe-eval

Vulnerabilities (5)

  • CVE-2023-26122Apr 11, 2023
    affected <= 0.4.2

    All versions of the package safe-eval are vulnerable to Sandbox Bypass due to improper input sanitization. The vulnerability is derived from prototype pollution exploitation. Exploiting this vulnerability might result in remote code execution ("RCE"). **Vulnerable functions:**

  • CVE-2023-26121Apr 11, 2023
    affected <= 0.4.2

    All versions of the package safe-eval are vulnerable to Prototype Pollution via the safeEval function, due to improper sanitization of its parameter content.

  • CVE-2022-25904Dec 21, 2022
    affected <= 0.4.1

    All versions of package safe-eval are vulnerable to Prototype Pollution which allows an attacker to add or modify properties of the Object.prototype.Consolidate when using the function safeEval. This is because the function uses vm variable, leading an attacker to modify properti

  • CVE-2020-7710Aug 21, 2020
    affected <= 0.4.1

    This affects all versions of package safe-eval. It is possible for an attacker to run an arbitrary command on the host machine.

  • CVE-2017-16088Jun 7, 2018
    affected <= 0.3.0

    The safe-eval module describes itself as a safer version of eval. By accessing the object constructors, un-sanitized user input can access the entire standard library and effectively break out of the sandbox.