CVE-2025-12735
However, due to insufficient input validation, an attacker can pass a crafted context object or use MEMBER of the context object into the evaluate() function and trigger arbitrary code execution.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (2.25%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
Description
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 context object or use MEMBER of the context object into the evaluate() function and trigger arbitrary code execution.
- CVSS 3.1
- 9.8 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 2.25% probability · 82th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-94
- Affected
- jorenbroekema/javascript expression evaluator · silentmatt/javascript expression evaluator
- Source
- cret@cert.org
References
- https://github.com/advisories/GHSA-jc85-fpwf-qm7xThird Party Advisory
- https://github.com/jorenbroekema/expr-evalProduct
- https://github.com/silentmatt/expr-evalProduct
- https://github.com/silentmatt/expr-eval/pull/288Issue Tracking, Patch
- https://kb.cert.org/vuls/id/263614Third Party Advisory
- https://www.npmjs.com/package/expr-evalProduct
- https://www.npmjs.com/package/expr-eval-forkProduct
- https://www.kb.cert.org/vuls/id/263614Third Party Advisory
- https://github.com/jorenbroekema/expr-eval/blob/460b820ba01c5aca6c5d84a7d4f1fa5d1913c67b/test/security.jsProduct
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.