MidnightBSD

Advisories for safe-eval_project

CVE-2017-16088 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.

CVSS 2.0

Severity: HIGH

Problem Type: CWE-610,NVD-CWE-noinfo,

Products Affected

Vendor Product Version
safe-eval_project safe-eval 0.1.0
safe-eval_project safe-eval 0.3.0
safe-eval_project safe-eval 0.0.0
safe-eval_project safe-eval 0.2.0
CVE-2020-7710 HIGH

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

CVSS 3.x

Source Score Severity Vector Exploitability Impact
report@snyk.io 8.1 HIGH CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H 2.2 5.9
nvd@nist.gov 9.8 CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 3.9 5.9

CVSS 2.0

Severity: HIGH

Problem Type: CWE-94,

Products Affected

Vendor Product Version
safe-eval_project safe-eval *
CVE-2022-25904

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.

Products Affected

Vendor Product Version
safe-eval_project safe-eval *
CVE-2023-26121

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

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 10.0 CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H 3.9 6.0
report@snyk.io 7.5 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 3.9 3.6

Products Affected

Vendor Product Version
safe-eval_project safe-eval *
CVE-2023-26122

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().

CVSS 3.x

Source Score Severity Vector Exploitability Impact
report@snyk.io 8.8 HIGH CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H 2.8 5.9

Products Affected

Vendor Product Version
safe-eval_project safe-eval *