CVE-2021-25916 Prototype pollution vulnerability in 'patchmerge'
Prototype pollution in patchmerge 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-25916?
CVE-2021-25916 is a critical code injection vulnerability in patchmerge, published on 16 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Prototype pollution vulnerability in 'patchmerge' versions 1.0.0 through 1.0.1 allows an attacker to cause a denial of service and may lead to remote code execution.
Weakness: CWE-1321
Which versions are affected by CVE-2021-25916?
2 open source packages ship an affected version, including patchmerge. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
patchmerge npm | From 1.0.0 | 1.0.2 |
patchmerge npm | From 1.0.0 | 1.0.2 |
Products include Patchmerge Project Patchmerge.
How do I fix CVE-2021-25916?
Upgrade patchmerge to 1.0.2 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2021-25916 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-25916 exists.
Sources
Also known as GHSA-84g3-cv89-m9gm.