{"id":"GHSA-gc25-3vc5-2jf9","aliases":[],"status":"published","title":"Sandbox Breakout / Arbitrary Code Execution in sandbox","description":"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.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2020-09-04T15:00:58Z","modified":"2026-02-03T17:47:48Z","fixes":[{"ecosystem":"npm","package":"sandbox","fixed_in":["1.0.0"],"sources":["ghsa"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"sandbox","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.0"},{"fixed":"1.0.0"}]}]},{"source":"osv","ecosystem":"npm","package":"sandbox","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0"}]}]}],"references":[{"url":"https://www.npmjs.com/advisories/1318","tags":["web"]},{"url":"https://github.com/advisories/GHSA-gc25-3vc5-2jf9"}],"sources":{"ghsa":[{"id":"GHSA-gc25-3vc5-2jf9","title":"Sandbox Breakout / Arbitrary Code Execution in sandbox","description":"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.","status":"published","published":"2020-09-04T15:00:58Z","modified":"2026-02-02T23:12:41Z","updated_at":"2026-11-02T14:39:21.558748Z"}],"osv":[{"id":"GHSA-gc25-3vc5-2jf9","title":"Sandbox Breakout / Arbitrary Code Execution in sandbox","description":"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.","status":"published","published":"2020-09-04T15:00:58Z","modified":"2026-02-03T17:47:48.61946Z","updated_at":"2026-11-02T15:46:47.472172Z"}]}}
