GHSA-9gxr-rhx6-4jgv
medium
Sandbox Breakout / Prototype Pollution in notevil
- Severity
- medium rating by GitHub
- Published
- Last changed
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| notevil (npm) | before 1.3.3 | GitHub Advisory Database |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-9gxr-rhx6-4jgv changed 2020-08-31 | CC-BY-4.0 |