CVE-2021-25912 Prototype pollution in dotty
Prototype pollution in the dotty npm library allows attackers to cause denial of service and potentially execute remote code.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-25912?
CVE-2021-25912 is a critical code injection vulnerability in dotty, published on 2 Feb 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Prototype pollution vulnerability in 'dotty' versions 0.0.1 through 0.1.0 allows attackers to cause a denial of service and may lead to remote code execution.
Weakness: CWE-1321
Which versions are affected by CVE-2021-25912?
2 open source packages ship an affected version, including dotty. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
dotty npm | All versions | 0.1.1 |
dotty npm | All versions | 0.1.1 |
Products include Dotty Project Dotty.
How do I fix CVE-2021-25912?
Upgrade dotty to 0.1.1 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2021-25912 being exploited?
There is no known exploitation of CVE-2021-25912 in the wild and no public exploit code.
Other vulnerabilities in dotty
Sources
Also known as GHSA-f5c9-x9j6-87qp.