{"id":"GHSA-gc25-3vc5-2jf9","summary":"Sandbox Breakout / Arbitrary Code Execution in sandbox","details":"All versions of `sandbox` are vulnerable to Sandbox Escape leading to Remote Code Execution. The package fails to restrict access to the main context through `this.constructor.constructor` . This may allow attackers to execute arbitrary code in the system. Evaluating the payload `this.constructor.constructor('return process.env')()` prints 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.","modified":"2026-02-03T17:47:48.619460Z","published":"2020-09-04T15:00:58Z","database_specific":{"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2020-08-31T18:54:57Z","nvd_published_at":null,"cwe_ids":[]},"references":[{"type":"WEB","url":"https://www.npmjs.com/advisories/1318"}],"affected":[{"package":{"name":"sandbox","ecosystem":"npm","purl":"pkg:npm/sandbox"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0"}]}],"database_specific":{"last_known_affected_version_range":"\u003c 1.0.0","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-gc25-3vc5-2jf9/GHSA-gc25-3vc5-2jf9.json"}}],"schema_version":"1.9.0"}