hot-formula-parser@1.0.16 vulnerabilities

Formula parser

  • latest version

    4.0.0

  • latest non vulnerable version

  • first published

    8 years ago

  • latest version published

    3 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.

    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
    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