CVE-2021-23419 Prototype Pollution
Prototype pollution in the open-graph library allows attackers to modify Object.prototype, potentially leading to code execution or privilege escalation.
- 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-23419?
CVE-2021-23419 is a high-severity vulnerability in open-graph, published on 8 Aug 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
This affects the package open-graph before 0.2.6. The function parse could be tricked into adding or modifying properties of Object.prototype using a __proto__ or constructor payload.
Weakness: CWE-1321
Which versions are affected by CVE-2021-23419?
2 open source packages ship an affected version, including open-graph. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
open-graph npm | All versions | 0.2.6 |
open-graph npm | All versions | 0.2.6 |
Products include Open-Graph Project Open-Graph.
How do I fix CVE-2021-23419?
Upgrade open-graph to 0.2.6 or later.
Is CVE-2021-23419 being exploited?
There is no known exploitation of CVE-2021-23419 in the wild and no public exploit code.
Sources
Also known as GHSA-g452-6rfc-vrvx, SNYK-JS-OPENGRAPH-1536747.