Description
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.
Recommendation
Update the class-transformer package to the latest compatible version. Followings are version details:
- Affected version(s): < 0.3.1
- Patched version(s): 0.3.1
References
Related Issues
- Prototype Pollution in systeminformation - CVE-2020-26245
- shvl vulnerable to prototype pollution - CVE-2020-28278
- Prototype Pollution in highlight.js - CVE-2020-26237
- Prototype Pollution in asciitable.js - CVE-2020-7771
You might also like:
- Tags:
- npm
- class-transformer
Anything's wrong? Let us know Last updated on January 27, 2023


