Home

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 variables object into the evaluate() function and trigger arbitrary code execution.

PUBLISHED Reserved 2025-11-05 | Published 2025-11-05 | Updated 2025-11-08 | Assigner certcc

Problem types

CWE-94: Improper Control of Generation of Code (‘Code Injection’)

CWE-1321: Improperly Controlled Modification of Object Prototype Attributes (‘Prototype Pollution’)

Product status

Any version
affected

Any version
affected

Credits

This issue was reported by Jangwoo Choe (UKO) finder

References

www.kb.cert.org/vuls/id/263614

github.com/silentmatt/expr-eval

github.com/jorenbroekema/expr-eval

www.npmjs.com/package/expr-eval-fork

www.npmjs.com/package/expr-eval

github.com/silentmatt/expr-eval/pull/288

cve.org (CVE-2025-12735)

nvd.nist.gov (CVE-2025-12735)

Download JSON