{"id":"CVE-2025-12735","aliases":["CVE-2025-12735","GHSA-jc85-fpwf-qm7x"],"related":[],"kind":"vulnerability","state":"published","title":"CVE-2025-12735","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-11-05T00:22:55.297Z","modified":"2026-10-18T21:10:00.120Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"}],"cwes":["CWE-94","CWE-1321"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"2.0.2","status":"affected"}],"vendor":"silentmatt","product":"expr-eval","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","lastAffected":"3.0.0","status":"affected"}],"vendor":"expr-eval-fork","product":"expr-eval-fork","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"2.0.2"}],"ecosystem":"npm","package":"expr-eval","purl":"pkg:npm/expr-eval","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.0.1"}],"ecosystem":"npm","package":"expr-eval-fork","purl":"pkg:npm/expr-eval-fork","source":"ghsa"},{"ranges":[{"status":"affected","version":"3.0.0"}],"vendor":"jorenbroekema","product":"javascript_expression_evaluator","cpe":"cpe:2.3:a:jorenbroekema:javascript_expression_evaluator:3.0.0:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[{"status":"affected","lastAffected":"2.0.2"}],"vendor":"silentmatt","product":"javascript_expression_evaluator","cpe":"cpe:2.3:a:silentmatt:javascript_expression_evaluator:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/silentmatt/expr-eval","tags":["product","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jorenbroekema/expr-eval","tags":["product","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.npmjs.com/package/expr-eval-fork","tags":["product","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.npmjs.com/package/expr-eval","tags":["product","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/silentmatt/expr-eval/pull/288","tags":["issue-tracking","patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/advisories/GHSA-jc85-fpwf-qm7x","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://kb.cert.org/vuls/id/263614","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jorenbroekema/expr-eval/blob/460b820ba01c5aca6c5d84a7d4f1fa5d1913c67b/test/security.js","tags":["exploit","product","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.kb.cert.org/vuls/id/263614","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-12735","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/silentmatt/expr-eval/pull/289","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jorenbroekema/expr-eval/commit/1d71bb2ca8f98df8de00e9cc4de8fdd468a7ad43","tags":["web"],"sources":["ghsa"]}],"credits":["This issue was reported by Jangwoo Choe (UKO)","Patch validation assistance provided by GitHub user huydoppaz."],"assigner":"certcc","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2025-11-10T14:06:48.027Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-12735","url":"https://www.cve.org/CVERecord?id=CVE-2025-12735","licence":"CVE Terms of Use","modified":"2025-11-22T23:45:45.512Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jc85-fpwf-qm7x","url":"https://github.com/advisories/GHSA-jc85-fpwf-qm7x","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:31.031Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-12735","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-12735","licence":"Public domain","modified":"2026-10-18T21:10:00.120Z"}],"updatedAt":"2026-11-25T22:59:07.221Z","epss":{"score":0.01746,"percentile":0.78475,"date":"2026-12-01T12:00:22.000Z"}}