CVE-2020-7660 Insecure serialization leading to RCE in serialize-javascript
Remote attackers can inject arbitrary code via the deleteFunctions method in the serialize-javascript library, requiring an upgrade to mitigate.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-7660?
CVE-2020-7660 is a high-severity code injection vulnerability in serialize-javascript, published on 1 Jun 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
serialize-javascript prior to 3.1.0 allows remote attackers to inject arbitrary code via the function "deleteFunctions" within "index.js".
Weakness: CWE-502
Which versions are affected by CVE-2020-7660?
2 open source packages ship an affected version, including serialize-javascript. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
serialize-javascript npm | All versions | 3.1.0 |
serialize-javascript npm | All versions | 3.1.0 |
Products include Verizon Serialize-Javascript.
How do I fix CVE-2020-7660?
Upgrade serialize-javascript to 3.1.0 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2020-7660 being exploited?
There is no known exploitation of CVE-2020-7660 in the wild and no public exploit code.
Other vulnerabilities in serialize-javascript
Sources
Also known as GHSA-hxcc-f52p-wc94, ROOT-APP-NPM-CVE-2020-7660.