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 pathval - CVE-2020-7751
- Prototype pollution in gsap - CVE-2020-28478
- Prototype Pollution in js-data - CVE-2020-28442
- Prototype Pollution in lodash - lodash.update - CVE-2020-8203
You might also like:
- Tags:
- npm
- class-transformer
Anything's wrong? Let us know
Last updated on January 27, 2023