{"id":"GHSA-jp99-5h8w-gmxc","aliases":[],"status":"published","title":"Sandbox Breakout / Arbitrary Code Execution in @zhaoyao91/eval-in-vm","description":"All versions of `@zhaoyao91/eval-in-vm` 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":false},"published":"2020-09-04T15:03:13Z","modified":"2023-01-09T05:03:51Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"@zhaoyao91/eval-in-vm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.0"}]}]},{"source":"osv","ecosystem":"npm","package":"@zhaoyao91/eval-in-vm","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0"}]}]}],"references":[{"url":"https://www.npmjs.com/advisories/1320","tags":["web"]},{"url":"https://github.com/advisories/GHSA-jp99-5h8w-gmxc"}],"sources":{"ghsa":[{"id":"GHSA-jp99-5h8w-gmxc","title":"Sandbox Breakout / Arbitrary Code Execution in @zhaoyao91/eval-in-vm","description":"All versions of `@zhaoyao91/eval-in-vm` 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:03:13Z","modified":"2023-01-09T05:03:51Z","updated_at":"2026-11-02T14:36:06.884904Z"}],"osv":[{"id":"GHSA-jp99-5h8w-gmxc","title":"Sandbox Breakout / Arbitrary Code Execution in @zhaoyao91/eval-in-vm","description":"All versions of `@zhaoyao91/eval-in-vm` 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:03:13Z","modified":"2020-08-31T18:55:02Z","updated_at":"2026-11-02T15:46:50.687609Z"}]}}
