# GHSA-54qm-37qr-w5wq: Sandbox Breakout / Arbitrary Code Execution in veval

- 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:04:20.000Z
- Modified: 2020-08-31T18:55:05.000Z

## Description

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

- veval (npm): from 0.0.0

## References

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

## Sources

- GitHub Advisory Database: [GHSA-54qm-37qr-w5wq](https://github.com/advisories/GHSA-54qm-37qr-w5wq), CC-BY-4.0, modified 2020-08-31

---

Page: https://cve.day/GHSA-54qm-37qr-w5wq · Whole record: https://cve.day/GHSA-54qm-37qr-w5wq.json · Rebuilt by cve.day 2026-11-25T22:56:44.120Z
