Live threats

All CVEs / Class-transformer Project

CVE-2020-7637Class-transformer Project Class-transformer

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
1.2%
probability of exploitation in 30 days · percentile 68
Auth required
No
Published
Apr 6, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1321
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Class-transformer.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm class-transformer < 0.3.1 0.3.1 npm install class-transformer@0.3.1

Per OSV / GitHub Advisories (GHSA-6gp3-h3jj-prx4). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
class-transformer_projectclass-transformer< 0.3.1

Official sources

References

Links published by the sources. Open them with care.