# GHSA-c3hq-7mxh-mqxf: Sandbox Breakout / Arbitrary Code Execution in lighter-vm

- 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-04T14:59:50.000Z
- Modified: 2020-08-31T18:54:55.000Z

## Description

All versions of `lighter-vm` 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

- lighter-vm (npm): from 0.0.0

## References

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

## Sources

- GitHub Advisory Database: [GHSA-c3hq-7mxh-mqxf](https://github.com/advisories/GHSA-c3hq-7mxh-mqxf), CC-BY-4.0, modified 2020-08-31

---

Page: https://cve.day/GHSA-c3hq-7mxh-mqxf · Whole record: https://cve.day/GHSA-c3hq-7mxh-mqxf.json · Rebuilt by cve.day 2026-11-25T22:56:45.018Z
