expr-eval does not restrict functions passed to the evaluate function
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.
01
describes (1)
Related CVEs.
| ID | severity | exploitable | ||
|---|---|---|---|---|
| CVE-2025-12735US | — | Exploit | ||
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… | ||||
02
references
External citations — patches, advisories, analysis.
- https://github.com/jorenbroekema/expr-evalWEB
- https://github.com/jorenbroekema/expr-eval/blob/460b820ba01c5aca6c5d84a7d4f1fa5d1913c67b/test/security.jsWEB
- https://github.com/jorenbroekema/expr-eval/commit/1d71bb2ca8f98df8de00e9cc4de8fdd468a7ad43WEB
- https://github.com/silentmatt/expr-evalWEB
- https://github.com/silentmatt/expr-eval/pull/288WEB
- https://github.com/silentmatt/expr-eval/pull/289WEB
- https://kb.cert.org/vuls/id/263614WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-12735ADVISORY
scry
Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.
Free scan