• News/
  • https://www.bleepingcomputer.com/news/security/popular-javascript-library-expr-eval-vulnerable-to-rce-flaw/

Popular JavaScript library expr-eval vulnerable to RCE flaw

BleepingComputer
·
Bill Toulas
·
Published Nov 10, 2025
·
Updated

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, ...

Read full article

Affected Software

2 affected components
npm expr-eval<=3.0.0
npm expr-eval-fork>=3.0.0
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203