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