CVE-2020-7710
highpriority · track · 40EPSS 0.014 · 73 %ileEUUSEPSS · scored 2026-10-27
This affects all versions of package safe-eval. It is possible for an attacker to run an arbitrary command on the host machine.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 7.5–9.8
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-hrpq-r399-whgwSandbox Breakout / Arbitrary Code Execution in safe-eval2020-08-25ghsa · osvUS
All versions of `safe-eval` are vulnerable to Sandbox Escape leading to Remote Code Execution. The package fails to restrict access to the main context through Error objects. This may allow attackers to execute arbitrary code in the system. Evaluating the payload ```js (function (){ var ex = new Error ex.__proto__ = null ex.stack = { match: x => { return x.constructor.constructor("throw process.env")() } } return ex })() ``` prints the contents of `process.env`. ## Recommendation No fix is currently available. Consider using an alternative package until a fix is made available.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://github.com/hacksparrow/safe-eval/issues/19cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2020-7710cnnvd
- https://snyk.io/vuln/SNYK-JS-SAFEEVAL-608076cnnvd
- https://github.com/hacksparrow/safe-eval/issues/19enisa_euvd
- https://snyk.io/vuln/SNYK-JS-SAFEEVAL-608076enisa_euvd
- https://github.com/hacksparrow/safe-eval/issues/19ExploitThird Party Advisorynvd
- https://snyk.io/vuln/SNYK-JS-SAFEEVAL-608076Third Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan