# GHSA-876r-hj45-fw7g: Sandbox Breakout / Arbitrary Code Execution in safer-eval

- Severity: Critical (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-03T21:18:41.000Z
- Modified: 2020-08-31T18:51:25.000Z

## Description

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.

(As written by GitHub Advisory Database.)

## Affected

- safer-eval (npm): from 0.0.0

## References

- <https://gist.github.com/JLLeitschuh/609bb2efaff22ed84fe182cf574c023a> (web)
- <https://www.npmjs.com/advisories/1221> (web)

## Sources

- GitHub Advisory Database: [GHSA-876r-hj45-fw7g](https://github.com/advisories/GHSA-876r-hj45-fw7g), CC-BY-4.0, modified 2020-08-31

---

Page: https://cve.day/GHSA-876r-hj45-fw7g · Whole record: https://cve.day/GHSA-876r-hj45-fw7g.json · Rebuilt by cve.day 2026-11-25T22:56:44.678Z
