Vulnerabilities

1 via 1 paths

Dependencies

3

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
Status
  • 1
  • 0
  • 0

high severity

Code Injection

  • Vulnerable module: lodash.template
  • Introduced through: lodash.template@4.18.1

Detailed paths

  • Introduced through: trooba-http-api@trooba/trooba-http-api lodash.template@4.18.1

Overview

lodash.template is a The Lodash method _.template exported as a Node.js module.

Affected versions of this package are vulnerable to Code Injection due the improper validation of options.variable key names in _.template. An attacker can execute arbitrary code at template compilation time by injecting malicious expressions. If Object.prototype has been polluted, inherited properties may also be copied into the imports object and executed.

PoC

var _ = require('lodash');

_.template('', { variable: '){console.log(process.env)}; with(obj' })()

Remediation

There is no fixed version for lodash.template.

References