{"id":"GHSA-mmqv-m45h-q2hp","aliases":["GHSA-mmqv-m45h-q2hp"],"related":[],"kind":"vulnerability","state":"published","title":"Sandbox Breakout / Arbitrary Code Execution in localeval","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2020-09-04T15:22:40.000Z","modified":"2026-02-03T03:17:19.972Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"CRITICAL"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"15.3.0"}],"ecosystem":"npm","package":"localeval","purl":"pkg:npm/localeval","source":"ghsa"}],"references":[{"url":"https://github.com/espadrine/localeval/issues/9","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/espadrine/localeval/commit/823f112c793b8fae051eeddad61d4ed29804a56c","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/espadrine/localeval/commit/ce985eba77a5f89a7f718727cbaa7fb14da40335","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/espadrine/localeval","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mmqv-m45h-q2hp","url":"https://github.com/advisories/GHSA-mmqv-m45h-q2hp","licence":"CC-BY-4.0","modified":"2026-02-03T03:17:19.972Z"}],"updatedAt":"2026-11-25T22:56:45.973Z"}