dustjs-linkedin@1.2.6

Vulnerabilities

1 via 1 paths

Dependencies

Source

npm

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
Status
  • 1
  • 0
  • 0

high severity

Code Injection

  • Vulnerable module: dustjs-linkedin
  • Introduced through: dustjs-linkedin@1.2.6

Detailed paths

  • Introduced through: dustjs-linkedin@1.2.6
    Remediation: Upgrade to dustjs-linkedin@2.6.0.

Overview

dustjs-linkedin is a Javascript templating engine designed to run asynchronously on both the server and the browser.

Affected versions of this package are vulnerable to Code Injection. Dust.js uses Javascript's eval() function to evaluate the "if" statement conditions. The input to the function is sanitized by escaping all potentially dangerous characters.

However, if the variable passed in is an array, no escaping is applied, exposing an easy path to code injection. The risk of exploit is especially high given the fact express, koa and many other Node.js servers allow users to force a query parameter to be an array using the param[]=value notation.

Remediation

Upgrade dustjs-linkedin to version 2.6.0 or higher.

References