CVE-2021-23771 Sandbox Bypass

Medium 6.5 Published Updated

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.

PackageAffectedFixed in
argencoders-notevil npmAll versions to 2.5.0None
argencoders-notevil npmAll versions to 2.5.0None
notevil npmAll versions to 1.3.3None
notevil npmAll versions to 1.3.3None

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.

Is CVE-2021-23771 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free