{"id":"GHSA-c3hq-7mxh-mqxf","aliases":[],"status":"published","title":"Sandbox Breakout / Arbitrary Code Execution in lighter-vm","description":"All versions of `lighter-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-04T14:59:50Z","modified":"2023-01-09T05:04:01Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"lighter-vm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.0"}]}]},{"source":"osv","ecosystem":"npm","package":"lighter-vm","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0"}]}]}],"references":[{"url":"https://www.npmjs.com/advisories/1317","tags":["web"]},{"url":"https://github.com/advisories/GHSA-c3hq-7mxh-mqxf"}],"sources":{"ghsa":[{"id":"GHSA-c3hq-7mxh-mqxf","title":"Sandbox Breakout / Arbitrary Code Execution in lighter-vm","description":"All versions of `lighter-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-04T14:59:50Z","modified":"2023-01-09T05:04:01Z","updated_at":"2026-11-02T14:36:08.267721Z"}],"osv":[{"id":"GHSA-c3hq-7mxh-mqxf","title":"Sandbox Breakout / Arbitrary Code Execution in lighter-vm","description":"All versions of `lighter-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-04T14:59:50Z","modified":"2020-08-31T18:54:55Z","updated_at":"2026-11-02T15:46:44.571161Z"}]}}
