Advisory

GHSA-6gp3-h3jj-prx4

Also known as: CVE-2020-7637, SNYK-JS-CLASSTRANSFORMER-564431

Summary

Prototype pollution in class-transformer

Details

class-transformer through 0.2.3 is vulnerable to Prototype Pollution. The 'classToPlainFromExist' function could be tricked into adding or modifying properties of 'Object.prototype' using a '__proto__' payload.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2020-04-07 15:47 UTC
Modified
2026-07-08 06:49 UTC

Affected packages and fixes

class-transformer

npm · All systems

Affected

  • introduced 0, fixed 0.3.1 (semver)

Fixed versions

0.3.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences