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
Could your website be exposed too?
SmartScanner can check your website for Prototype pollution in class-transformer and gives you actionable findings to investigate.
Start a free scanRelated Issues
- Prototype pollution in gsap - CVE-2020-28478
- Prototype Pollution in gedi - CVE-2020-7727
- Prototype Pollution in tiny-conf - CVE-2020-7724
- Prototype Pollution in promisehelpers - CVE-2020-7723


