ADVISORIES

GitHub Advisory Database

GHSA-jc85-fpwf-qm7x

expr-eval does not restrict functions passed to the evaluate function

Details

The expr-eval library is a JavaScript expression parser and evaluator designed to safely evaluate mathematical expressions with user-defined variables. However, due to insufficient input validation, an attacker can pass a crafted variables object into the evaluate() function and trigger arbitrary code execution.

Affected packages

EcosystemPackageAffected versions
npmexpr-eval
All versions up to and including 2.0.2
npmexpr-eval-fork
All versions before 3.0.1 (fixed in 3.0.1)

References