CVE-2025-12735
JSON

9.8critical

CVE-2025-12735

Severity
9.8critical CVSS:3.1 by CISA-ADP
Exploit likelihood
1.75% (higher than 78% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
certcc
Also known as
GHSA-jc85-fpwf-qm7x

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.

Affected

Product or packageVersionsReported by
silentmatt expr-evalup to 2.0.2CVE List
expr-eval-fork expr-eval-forkup to 3.0.0CVE List
expr-eval (npm)up to 2.0.2GitHub Advisory Database
expr-eval-fork (npm)before 3.0.1GitHub Advisory Database
jorenbroekema javascript_expression_evaluator3.0.0NVD
silentmatt javascript_expression_evaluatorup to 2.0.2NVD

All scores

CISA-ADP9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Classification

CWE-94CWE-1321

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database

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.

NVD (es)

La biblioteca expr-eval es un analizador y evaluador de expresiones JavaScript diseñado para evaluar de forma segura expresiones matemáticas con variables definidas por el usuario. Sin embargo, debido a una validación de entrada insuficiente, un atacante puede pasar un objeto de contexto manipulado o usar MEMBER del objeto de contexto en la función evaluate() y desencadenar la ejecución de código arbitrario.

References

https://github.com/silentmatt/expr-evalproduct, web
https://github.com/jorenbroekema/expr-evalproduct, web
https://www.npmjs.com/package/expr-eval-forkproduct, web
https://www.npmjs.com/package/expr-evalproduct, web
https://github.com/silentmatt/expr-eval/pull/288issue-tracking, patch, web
https://github.com/advisories/GHSA-jc85-fpwf-qm7xthird-party-advisory
https://kb.cert.org/vuls/id/263614third-party-advisory, web
https://github.com/jorenbroekema/expr-eval/blob/460b820ba01c5aca6c5d84a7d4f1fa5d1913c67b/test/security.jsexploit, product, web
https://www.kb.cert.org/vuls/id/263614third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2025-12735advisory
https://github.com/silentmatt/expr-eval/pull/289web
https://github.com/jorenbroekema/expr-eval/commit/1d71bb2ca8f98df8de00e9cc4de8fdd468a7ad43web

Sources

SourceRecordLicence
CVE ListCVE-2025-12735 changed 2025-11-22CVE Terms of Use
GitHub Advisory DatabaseGHSA-jc85-fpwf-qm7x changed 2026-09-10CC-BY-4.0
NVDCVE-2025-12735 changed 2026-10-18Public domain