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 json8-merge-patch - CVE-2020-8268
- Prototype pollution in dojo - dojo - CVE-2020-5258
- Prototype Pollution in copy-props - CVE-2020-28503
- Prototype pollution in set-object-value - CVE-2020-28281


