lodash.template@4.1.0 vulnerabilities

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

  • latest version

    4.5.0

  • first published

    11 years ago

  • latest version published

    5 years ago

  • deprecated

    Package is deprecated

  • licenses detected

  • Direct Vulnerabilities

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

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable 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.

    *