GHSA-876r-hj45-fw7g
CRITICALSandbox Breakout / Arbitrary Code Execution in safer-eval
All versions of safer-eval are vulnerable to Sandbox Escape leading to Remote Code Execution. It is possible to escape the sandbox by forcing exceptions recursively in the evaluated code. This may allow attacker to execute arbitrary code in the system.
Recommendation
The package is not suited to receive arbitrary user input. Consider using an alternative package.
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | safer-eval | >= 0.0.0 |
References
- https://gist.github.com/JLLeitschuh/609bb2efaff22ed84fe182cf574c023a · WEB
- https://www.npmjs.com/advisories/1221 · WEB
History
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 3 Sep 2020)