# GHSA-gc25-3vc5-2jf9: Sandbox Breakout / Arbitrary Code Execution in sandbox

- 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-04T15:00:58.000Z
- Modified: 2026-02-03T17:47:48.619Z

## Description

All versions of `sandbox` are vulnerable to Sandbox Escape leading to Remote Code Execution. The package fails to restrict access to the main context through `this.constructor.constructor` . This may allow attackers to execute arbitrary code in the system. Evaluating the payload `this.constructor.constructor('return process.env')()` prints the contents of `process.env`.


## Recommendation

No fix is currently available. Consider using an alternative package until a fix is made available.

(As written by GitHub Advisory Database.)

## Affected

- sandbox (npm): from 0.0.0

## References

- <https://www.npmjs.com/advisories/1318> (web)

## Sources

- GitHub Advisory Database: [GHSA-gc25-3vc5-2jf9](https://github.com/advisories/GHSA-gc25-3vc5-2jf9), CC-BY-4.0, modified 2026-02-03

---

Page: https://cve.day/GHSA-gc25-3vc5-2jf9 · Whole record: https://cve.day/GHSA-gc25-3vc5-2jf9.json · Rebuilt by cve.day 2026-11-25T22:56:45.413Z
