hot-formula-parser@1.0.20 vulnerabilities

Formula parser

Direct Vulnerabilities

Known vulnerabilities in the hot-formula-parser package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable 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