A critical vulnerability in the popular expr-eval JavaScript library, with over 800,000 weekly downloads on NPM, can be exploited to execute code remotely through maliciously crafted input. The security issue was discovered by security researcher Jangwoo Choe and is tracked as CVE-2025-12735. According to the U.S. Cybersecurity and Infrastructure Security Agency (CISA), the severity rating is critical, with a score of 9.8. Originally developed by Matthew Crumley, expr-eval is a small JavaScript expression parser and evaluator, used in projects that require safe parsing and computation of user-supplied mathematical expressions at runtime. Examples include online calculators, educational suites, simulation tools, financial tools, and, more recently, AI and natural language processing (NLP) systems that parse mathematical expressions from text prompts. In an advisory over the weekend, the CERT Coordination Center (CERT-CC) for Carnegie Mellon's Software Engineering Institute (SEI) says that the vulnerability is due to the library’s failure to validate the variables/context object passed into the Parser.evaluate() function, which allows an attacker to supply malicious function objects that the parser invokes during evaluation. "The vulnerability gives the adversary total control over the behavior of the software or total disclosure of all information on the affected system" - CERT-CC CVE-2025-12735 affects both the original expr-eval, with a stable version released 6 years ago, ...
Popular JavaScript library expr-eval vulnerable to RCE flaw
BleepingComputer
·Bill Toulas
·Published Nov 10, 2025
·Updated
Affected Software
2 affected components
npm expr-eval<=3.0.0
npm expr-eval-fork>=3.0.0
Frequently Asked Questions
1
What is the main topic of this article?
The article discusses a critical remote code execution vulnerability in the expr-eval JavaScript library.
2
What security implications are discussed in the article?
The vulnerability allows attackers to execute arbitrary code on servers using the expr-eval library with malicious input.
3
What products or software are affected by this vulnerability?
The affected product is the expr-eval JavaScript library available on NPM.
4
How prevalent is the expr-eval library in the development community?
The expr-eval library has over 800,000 weekly downloads on NPM, indicating its widespread use.
5
Who discovered the vulnerability in the expr-eval library?
The vulnerability was discovered by security researchers, although their specific identity is not mentioned in the article.