VDB
Sign up
MEDIUM5.3

GHSA-6gp3-h3jj-prx4

Prototype pollution in class-transformer

Quick fix

GHSA-6gp3-h3jj-prx4 — class-transformer: upgrade to the fixed version with the command below.

npm install class-transformer@0.3.1

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/class-transformer
Introduced in: 0Fixed in: 0.3.1
Fixnpm install class-transformer@0.3.1

References