HIGH
GHSA-jc85-fpwf-qm7x
expr-eval does not restrict functions passed to the evaluate function
Quick fix
GHSA-jc85-fpwf-qm7x — expr-eval-fork: upgrade to the fixed version with the command below.
npm install expr-eval-fork@3.0.1Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
npm/expr-eval
Introduced in:
0No fixed version published yet for expr-eval (npm). Pin to a known-safe version or switch to an alternative.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-12735[ADVISORY]
- https://github.com/silentmatt/expr-eval/pull/288[WEB]
- https://github.com/silentmatt/expr-eval/pull/289[WEB]
- https://github.com/jorenbroekema/expr-eval/commit/1d71bb2ca8f98df8de00e9cc4de8fdd468a7ad43[WEB]
- https://github.com/jorenbroekema/expr-eval[WEB]
- https://github.com/jorenbroekema/expr-eval/blob/460b820ba01c5aca6c5d84a7d4f1fa5d1913c67b/test/security.js[WEB]
- https://github.com/silentmatt/expr-eval[WEB]
- https://kb.cert.org/vuls/id/263614[WEB]
- https://www.kb.cert.org/vuls/id/263614[WEB]
- https://www.npmjs.com/package/expr-eval[WEB]
- https://www.npmjs.com/package/expr-eval-fork[WEB]