hacksparrow/safe-eval

hacksparrow/safe-eval

Releases5
Frequency8 months 3 weeks
Last Release
Stars265
Safer version of eval()

CVE History

CVEPublishedCVSS v3CVSS v2
7.5 HIGH

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

8.8 HIGH

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:** __defineGetter__, stack(), toLocaleString(), propertyIsEnumerable.call(), valueOf().

7.5 HIGH

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 properties of the Object.prototype.

8.1 HIGH7.5 HIGH

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

10 HIGH

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.