CVE-2020-7673 Code Injection in node-extend
Arbitrary code execution via eval in node-extend allows attackers to run malicious code when user input is passed to the extend function.
- 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-2020-7673?
CVE-2020-7673 is a critical code injection vulnerability in node-extend, published on 10 Jun 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
node-extend through 0.2.0 is vulnerable to Arbitrary Code Execution. User input provided to the argument `A` of `extend` function`(A,B,as,isAargs)` located within `lib/extend.js` is executed by the `eval` function, resulting in code execution.
Weakness: CWE-94
Which versions are affected by CVE-2020-7673?
2 open source packages ship an affected version, including node-extend. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
node-extend npm | All versions to 0.2.0 | None |
node-extend npm | All versions to 0.2.0 | None |
Products include Node-Extend Project Node-Extend.
How do I fix CVE-2020-7673?
No fix has been published for CVE-2020-7673 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-2020-7673 being exploited?
There is no known exploitation of CVE-2020-7673 in the wild and no public exploit code.
Sources
Also known as GHSA-cg42-4wrc-gp47.