CVE-2021-23771 Sandbox Bypass
An attacker can bypass the sandbox and pollute prototypes to execute arbitrary code or escalate privileges in applications using the notevil library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-23771?
CVE-2021-23771 is a medium-severity code injection vulnerability in argencoders-notevil, published on 17 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
This affects all versions of package notevil; all versions of package argencoders-notevil. It is vulnerable to Sandbox Escape leading to Prototype pollution. The package fails to restrict access to the main context, allowing an attacker to add or modify an object's prototype. **Note:** This vulnerability derives from an incomplete fix in [SNYK-JS-NOTEVIL-608878](https://security.snyk.io/vuln/SNYK-JS-NOTEVIL-608878).
Weakness: CWE-1321
Which versions are affected by CVE-2021-23771?
4 open source packages ship an affected version, including argencoders-notevil and notevil. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
argencoders-notevil npm | All versions to 2.5.0 | None |
argencoders-notevil npm | All versions to 2.5.0 | None |
notevil npm | All versions to 1.3.3 | None |
notevil npm | All versions to 1.3.3 | None |
Products include Argencoders-Notevil Project Argencoders-Notevil, Notevil Project Notevil.
How do I fix CVE-2021-23771?
No fix has been published for CVE-2021-23771 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2021-23771 being exploited?
There is no known exploitation of CVE-2021-23771 in the wild and no public exploit code.
Sources
Also known as GHSA-8g4m-cjm2-96wq.