lodash.template@3.0.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
Code Injection

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

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

PoC

var _ = require('lodash');

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

How to fix Code Injection?

There is no fixed version for lodash.template.

*