{"id":"GHSA-mmqv-m45h-q2hp","aliases":[],"url":"https://o3.security/vulnerability/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.","published":"2020-09-04T15:22:40Z","modified":"2026-02-03T03:17:19.972456Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"npm","name":"localeval","fixedVersion":"15.3.0"}],"fix":{"url":"https://github.com/espadrine/localeval/commit/823f112c793b8fae051eeddad61d4ed29804a56c","label":"espadrine/localeval@823f112"},"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-02-03T03:17:19.972456Z"}}