CVE-2021-23470 Prototype Pollution
Attackers can exploit prototype pollution in putil-merge to potentially execute code or escalate privileges via malicious constructor properties.
- 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-23470?
CVE-2021-23470 is a high-severity vulnerability in putil-merge, published on 4 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
This affects the package putil-merge before 3.8.0. The merge() function does not check the values passed into the argument. An attacker can supply a malicious value by adjusting the value to include the constructor property. Note: This vulnerability derives from an incomplete fix in https://security.snyk.io/vuln/SNYK-JS-PUTILMERGE-1317077
Weakness: CWE-1321
Which versions are affected by CVE-2021-23470?
2 open source packages ship an affected version, including putil-merge. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
putil-merge npm | All versions | 3.8.0 |
putil-merge npm | All versions | 3.8.0 |
Products include Putil-Merge Project Putil-Merge.
How do I fix CVE-2021-23470?
Upgrade putil-merge to 3.8.0 or later.
Is CVE-2021-23470 being exploited?
There is no known exploitation of CVE-2021-23470 in the wild and no public exploit code.
Other vulnerabilities in putil-merge
Sources
Also known as GHSA-4g77-cvgw-grvw, SNYK-JS-PUTILMERGE-2391487.