ADVISORIES

GitHub Advisory Database

GHSA-6gp3-h3jj-prx4

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.

Affected packages

EcosystemPackageAffected versions
npmclass-transformer
All versions before 0.3.1 (fixed in 0.3.1)

References