CVE-2020-7637 Prototype pollution in class-transformer
Attackers can exploit prototype pollution in class-transformer to potentially execute code or escalate privileges via crafted __proto__ payloads.
- 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-7637?
CVE-2020-7637 is a medium-severity vulnerability in class-transformer, published on 6 Apr 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
class-transformer before 0.3.1 allow attackers to perform Prototype Pollution. The classToPlainFromExist function could be tricked into adding or modifying properties of Object.prototype using a __proto__ payload.
Weakness: CWE-1321
Which versions are affected by CVE-2020-7637?
2 open source packages ship an affected version, including class-transformer. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
class-transformer npm | All versions | 0.3.1 |
class-transformer npm | All versions | 0.3.1 |
Products include Class-Transformer Project Class-Transformer.
How do I fix CVE-2020-7637?
Upgrade class-transformer to 0.3.1 or later.
Is CVE-2020-7637 being exploited?
There is no known exploitation of CVE-2020-7637 in the wild and no public exploit code.
Sources
Also known as GHSA-6gp3-h3jj-prx4, SNYK-JS-CLASSTRANSFORMER-564431.