GHSA-9gxr-rhx6-4jgv Sandbox Breakout / Prototype Pollution in notevil
A sandbox escape vulnerability in the notevil library allows attackers to execute arbitrary code and pollute prototypes via crafted payloads.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-9gxr-rhx6-4jgv?
GHSA-9gxr-rhx6-4jgv is a code injection vulnerability in notevil, published on 4 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by GHSA-9gxr-rhx6-4jgv?
2 open source packages ship an affected version, including notevil.
| Package | Affected | Fixed in |
|---|---|---|
notevil npm | All versions | 1.3.3 |
notevil npm | All versions | 1.3.3 |
How do I fix GHSA-9gxr-rhx6-4jgv?
Upgrade notevil to 1.3.3 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is GHSA-9gxr-rhx6-4jgv being exploited?
There is no known exploitation of GHSA-9gxr-rhx6-4jgv in the wild and no public exploit code.