QID 375661

Date Published: 2021-08-05

QID 375661: Node.js Dot v1.1.2 Code Injection Vulnerability

DOT.js was created in search of the fastest and concise JavaScript templating function with emphasis on performance under V8 and nodejs. It shows great performance for both nodejs and browsers.

CVE-2020-8141: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.
Affected Versions:
Dot Version 1.1.2

QID Detection Logic:(Authenticated)
This QID checks for vulnerable DOT version if installed as a global package

The attacker can achieve code injection/RCE if they can control the template or if they can set arbitrary properties on Object.prototype.

  • CVSS V3 rated as Critical - 8.8 severity.
  • CVSS V2 rated as High - 6.5 severity.
  • Solution
    Customers are advised to update to DOT v1.1.3

    For more information, visit DOT Security considerations

    Vendor References

    CVEs related to QID 375661

    Software Advisories
    Advisory ID Software Component Link
    NA URL Logo www.npmjs.com/package/dot