Vulnerability library
Security checkJanuary 27, 2023

Improper Control of Generation of Code in doT

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

High severitynpmdot

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

The dot package v1.1.2 uses Function() to compile templates. This can be exploited by the attacker if they can control the given template or if they can control the value set on Object.prototype.

Recommendation

Update the dot package to the latest compatible version. Followings are version details:

  • Affected version(s): <= 1.1.2
  • Patched version(s): 1.1.3

References

Could your website be exposed too?

SmartScanner can check your website for Improper Control of Generation of Code in doT and gives you actionable findings to investigate.

Start a free scan

Related Issues

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