class-transformer@0.2.0 vulnerabilities

Proper decorator-based transformation / serialization / deserialization of plain javascript objects to class constructors

Direct Vulnerabilities

Known vulnerabilities in the class-transformer package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Prototype Pollution

class-transformer is a Proper decorator-based transformation / serialization / deserialization of plain javascript objects to class constructors.

Affected versions of this package are vulnerable to Prototype Pollution the classToPlainFromExist function could be tricked into adding or modifying properties of Object.prototype using a __proto__ payload.

How to fix Prototype Pollution?

Upgrade class-transformer to version 0.3.1 or higher.

<0.3.1