{"id":"GHSA-mmqv-m45h-q2hp","aliases":[],"status":"published","title":"Sandbox Breakout / Arbitrary Code Execution in localeval","description":"All versions of `localeval` are vulnerable to Sandbox Escape leading to Remote Code Execution. The package fails to restrict access to the main context through `constructor.constructor`. This may allow attackers to execute arbitrary code in the system.  Evaluating the payload \n```\nconstructor.constructor(\"return process.env\")()\n``` \n\nreturns 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:22:40Z","modified":"2026-02-03T03:17:19Z","fixes":[{"ecosystem":"npm","package":"localeval","fixed_in":["15.3.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"localeval","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"15.3.0"}]}]},{"source":"osv","ecosystem":"npm","package":"localeval","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"15.3.0"}]}]}],"references":[{"url":"https://github.com/espadrine/localeval/issues/9","tags":["web"]},{"url":"https://github.com/espadrine/localeval/commit/823f112c793b8fae051eeddad61d4ed29804a56c","tags":["web"]},{"url":"https://github.com/espadrine/localeval/commit/ce985eba77a5f89a7f718727cbaa7fb14da40335","tags":["web"]},{"url":"https://github.com/advisories/GHSA-mmqv-m45h-q2hp"},{"url":"https://github.com/espadrine/localeval","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-mmqv-m45h-q2hp","title":"Sandbox Breakout / Arbitrary Code Execution in localeval","description":"All versions of `localeval` are vulnerable to Sandbox Escape leading to Remote Code Execution. The package fails to restrict access to the main context through `constructor.constructor`. This may allow attackers to execute arbitrary code in the system.  Evaluating the payload \n```\nconstructor.constructor(\"return process.env\")()\n``` \n\nreturns 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:22:40Z","modified":"2026-01-16T14:47:32Z","updated_at":"2026-11-02T14:39:17.333958Z"}],"osv":[{"id":"GHSA-mmqv-m45h-q2hp","title":"Sandbox Breakout / Arbitrary Code Execution in localeval","description":"All versions of `localeval` are vulnerable to Sandbox Escape leading to Remote Code Execution. The package fails to restrict access to the main context through `constructor.constructor`. This may allow attackers to execute arbitrary code in the system.  Evaluating the payload \n```\nconstructor.constructor(\"return process.env\")()\n``` \n\nreturns 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:22:40Z","modified":"2026-02-03T03:17:19.972456Z","updated_at":"2026-11-02T15:46:52.170928Z"}]}}
