Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. expr-eval-fork
  4. ›
  5. CVE-2025-12735

CVE-2025-12735: expr-eval does not restrict functions passed to the evaluate function

November 5, 2025 (updated November 21, 2025)

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.

References

  • github.com/advisories/GHSA-jc85-fpwf-qm7x
  • github.com/jorenbroekema/expr-eval
  • github.com/jorenbroekema/expr-eval/blob/460b820ba01c5aca6c5d84a7d4f1fa5d1913c67b/test/security.js
  • github.com/jorenbroekema/expr-eval/commit/1d71bb2ca8f98df8de00e9cc4de8fdd468a7ad43
  • github.com/silentmatt/expr-eval
  • github.com/silentmatt/expr-eval/pull/288
  • github.com/silentmatt/expr-eval/pull/289
  • kb.cert.org/vuls/id/263614
  • nvd.nist.gov/vuln/detail/CVE-2025-12735
  • www.kb.cert.org/vuls/id/263614
  • www.npmjs.com/package/expr-eval
  • www.npmjs.com/package/expr-eval-fork

Code Behaviors & Features

Detect and mitigate CVE-2025-12735 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 3.0.0

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

npm/expr-eval-fork/CVE-2025-12735.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 24 Nov 2025 00:19:59 +0000.