lodash.template@2.3.0 vulnerabilities

The Lodash method `_.template` exported as a module.

Direct Vulnerabilities

Known vulnerabilities in the lodash.template package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Command Injection

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

Affected versions of this package are vulnerable to Command Injection via template.

PoC

var _ = require('lodash');

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

How to fix Command Injection?

There is no fixed version for lodash.template.

*