PT-2020-19732 · Npm · Safe-Eval

Anirudh Anand

·

Published

2020-08-21

·

Updated

2021-07-21

·

CVE-2020-7710

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions safe-eval versions all
Description The issue allows an attacker to run arbitrary commands on the host machine due to a lack of restriction on access to the main context through Error objects. This can lead to Remote Code Execution. An example exploit involves evaluating a payload that manipulates the Error object's prototype and stack property to execute arbitrary code, such as printing the contents of process.env.
Recommendations For all versions of safe-eval, consider using an alternative package until a fix is made available. As a temporary workaround, consider restricting or disabling the use of the safe-eval package to minimize the risk of exploitation.

Exploit

Fix

Code Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2020-7710
GHSA-HRPQ-R399-WHGW
SNYK-JS-SAFEEVAL-608076

Affected Products

Safe-Eval