hot-formula-parser@1.0.17 vulnerabilities

Formula parser

  • latest version

    4.0.0

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    5 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the hot-formula-parser 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

    hot-formula-parser is a Parser class that evaluates excel and mathematical formulas.

    Affected versions of this package are vulnerable to Arbitrary Code Injection. The package doesn't sanitize values passed to the parse function and concatenates it in an eval call.

    PoC

    SUM([(function(){require('child_process').execSync('touch test')})(),2])

    How to fix Arbitrary Code Injection?

    Upgrade hot-formula-parser to version 3.0.1 or higher.

    <3.0.1