{"id":"GHSA-mmqv-m45h-q2hp","summary":"Sandbox Breakout / Arbitrary Code Execution in localeval","details":"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.","modified":"2026-02-03T03:17:19.972456Z","published":"2020-09-04T15:22:40Z","database_specific":{"github_reviewed_at":"2020-08-31T18:55:41Z","nvd_published_at":null,"cwe_ids":[],"severity":"CRITICAL","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/espadrine/localeval/issues/9"},{"type":"WEB","url":"https://github.com/espadrine/localeval/commit/823f112c793b8fae051eeddad61d4ed29804a56c"},{"type":"WEB","url":"https://github.com/espadrine/localeval/commit/ce985eba77a5f89a7f718727cbaa7fb14da40335"},{"type":"PACKAGE","url":"https://github.com/espadrine/localeval"}],"affected":[{"package":{"name":"localeval","ecosystem":"npm","purl":"pkg:npm/localeval"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"15.3.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-mmqv-m45h-q2hp/GHSA-mmqv-m45h-q2hp.json"}}],"schema_version":"1.9.0"}