{"id":"GHSA-r3x4-wr4h-pw33","summary":"Sandbox Breakout / Arbitrary Code Execution in safer-eval","details":"Versions of `safer-eval` prior to 1.3.4 are vulnerable to Sandbox Escape leading to Remote Code Execution. A payload using constructor properties can escape the sandbox and execute arbitrary code. For example, evaluating he string `console.constructor.constructor('return process')().env` prints `process.env` to the console.\n\n\n## Recommendation\n\nUpgrade to version 1.3.4 or later.","aliases":["CVE-2019-10759","SNYK-JS-SAFEREVAL-173772"],"modified":"2026-09-10T03:48:27.545287374Z","published":"2019-10-21T21:58:34Z","database_specific":{"cwe_ids":["CWE-94"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2019-10-17T17:06:35Z","nvd_published_at":"2019-10-15T15:15:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-10759"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-SAFEREVAL-173772"},{"type":"WEB","url":"https://www.npmjs.com/advisories/1021"}],"affected":[{"package":{"name":"safer-eval","ecosystem":"npm","purl":"pkg:npm/safer-eval"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.3.4"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/10/GHSA-r3x4-wr4h-pw33/GHSA-r3x4-wr4h-pw33.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"}]}