CVE-2020-7637 Prototype pollution in class-transformer

Medium 5.3 Published Updated

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.

PackageAffectedFixed in
class-transformer npmAll versions0.3.1
class-transformer npmAll versions0.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.

Is CVE-2020-7637 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free