lodash.template@4.4.0

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

  • latest version

    4.18.1

  • first published

    12 years ago

  • latest version published

    5 days 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.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Arbitrary Code Injection

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

    Affected versions of this package are vulnerable to Arbitrary Code Injection due the improper validation of options.imports 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.

    Notes:

    1. Version 4.18.0 was intended to fix this vulnerability but it got deprecated due to introducing a breaking functionality issue.

    2. This issue is due to the incomplete fix for CVE-2021-23337.

    How to fix Arbitrary Code Injection?

    Upgrade lodash.template to version 4.18.1 or higher.

    <4.18.1
    • 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 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.

    How to fix Code Injection?

    There is no fixed version for lodash.template.

    *