org.webjars.bower:underscore@1.8.3 vulnerabilities

  • latest version

    1.10.2

  • first published

    10 years ago

  • latest version published

    5 years ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.webjars.bower:underscore 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
    • M
    Arbitrary Code Injection

    org.webjars.bower:underscore is a JavaScript's functional programming helper library.

    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.

    PoC

    const _ = require('underscore');
    _.templateSettings.variable = "a = this.process.mainModule.require('child_process').execSync('touch HELLO')";
    const t = _.template("")();
    

    How to fix Arbitrary Code Injection?

    There is no fixed version for org.webjars.bower:underscore.

    [0,)