← Back to CVEs
CVE-2025-12735
CRITICAL9.8
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.
CVE Details
CVSS v3.1 Score9.8
SeverityCRITICAL
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack VectorNETWORK
ComplexityLOW
Privileges RequiredNONE
User InteractionNONE
Published11/5/2025
Last Modified2/10/2026
Sourcenvd
Honeypot Sightings0
Affected Products
jorenbroekema:javascript_expression_evaluatorsilentmatt:javascript_expression_evaluator
Weaknesses (CWE)
CWE-94
References
https://github.com/advisories/GHSA-jc85-fpwf-qm7x(cret@cert.org)
https://github.com/jorenbroekema/expr-eval(cret@cert.org)
https://github.com/silentmatt/expr-eval(cret@cert.org)
https://github.com/silentmatt/expr-eval/pull/288(cret@cert.org)
https://kb.cert.org/vuls/id/263614(cret@cert.org)
https://www.npmjs.com/package/expr-eval(cret@cert.org)
https://www.npmjs.com/package/expr-eval-fork(cret@cert.org)
https://www.kb.cert.org/vuls/id/263614(af854a3a-2127-422b-91ae-364da2661108)
https://github.com/jorenbroekema/expr-eval/blob/460b820ba01c5aca6c5d84a7d4f1fa5d1913c67b/test/security.js(134c704f-9b21-4f2e-91b3-4a467353bcc0)
IOC Correlations
No correlations recorded
This product uses data from the NVD API but is not endorsed or certified by the NVD.