CVE-2025-12735
EPSS 0.07%expr-eval does not restrict functions passed to the evaluate function
發布日:2025/11/5修改日:2026/2/4
描述
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.
受影響套件(2)
- npm/expr-evalfrom 0, <= 2.0.2
- npm/expr-eval-forkfrom 0, < 3.0.1
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
參考連結(11)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2025-12735
- WEBhttps://github.com/jorenbroekema/expr-eval
- WEBhttps://github.com/jorenbroekema/expr-eval/blob/460b820ba01c5aca6c5d84a7d4f1fa5d1913c67b/test/security.js
- WEBhttps://github.com/jorenbroekema/expr-eval/commit/1d71bb2ca8f98df8de00e9cc4de8fdd468a7ad43
- WEBhttps://github.com/silentmatt/expr-eval
- WEBhttps://github.com/silentmatt/expr-eval/pull/288
- WEBhttps://github.com/silentmatt/expr-eval/pull/289
- WEBhttps://kb.cert.org/vuls/id/263614
- WEBhttps://www.kb.cert.org/vuls/id/263614
- WEBhttps://www.npmjs.com/package/expr-eval
- WEBhttps://www.npmjs.com/package/expr-eval-fork