Vulnerabilities/

Prototype pollution in class-transformer

Severity:
Medium

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:

References

Related Issues

Tags:
npm
class-transformer
Anything's wrong? Let us know Last updated on January 27, 2023

This issue is available in SmartScanner Professional

See Pricing