Vulnerability library
Security checkJanuary 27, 2023

Prototype pollution in class-transformer

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmclass-transformer

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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 scan

Related Issues

See something that needs correcting? Let us knowUpdated January 27, 2023