Arbitrary code injection in Formula Parser

2020-05-06T19:32:33
ID GHSA-RC77-XXQ6-4MFF
Type github
Reporter GitHub Advisory Database
Modified 2020-05-06T19:32:33

Description

grammar-parser.jison in the hot-formula-parser package before 3.0.1 for Node.js is vulnerable to arbitrary code injection. The package fails to sanitize values passed to the parse function and concatenates them in an eval call. If a value of the formula is taken from user-controlled input, it may allow attackers to run arbitrary commands on the server.