# GHSA-9gxr-rhx6-4jgv: Sandbox Breakout / Prototype Pollution in notevil

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-04T15:18:57.000Z
- Modified: 2020-08-31T18:55:36.000Z
- Weaknesses: CWE-1321

## Description

Versions of `notevil` prior to 1.3.3 are vulnerable to Sandbox Escape leading to Prototype pollution. The package fails to restrict access to the main context, allowing attacker to add or modify an object's prototype.

Evaluating the payload ```try{a[b];}catch(e){e.constructor.constructor('return __proto__.arguments.callee.__proto__.polluted=true')()}``` add the `polluted` property to Function.


## Recommendation

Upgrade to version 1.3.3 or later.

(As written by GitHub Advisory Database.)

## Affected

- notevil (npm): before 1.3.3

## References

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

## Sources

- GitHub Advisory Database: [GHSA-9gxr-rhx6-4jgv](https://github.com/advisories/GHSA-9gxr-rhx6-4jgv), CC-BY-4.0, modified 2020-08-31

---

Page: https://cve.day/GHSA-9gxr-rhx6-4jgv · Whole record: https://cve.day/GHSA-9gxr-rhx6-4jgv.json · Rebuilt by cve.day 2026-11-25T22:56:44.919Z
