{"id":"CVE-2025-12735","summary":"CVE-2025-12735","details":"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.","aliases":["GHSA-jc85-fpwf-qm7x"],"modified":"2026-08-12T03:30:48.566282959Z","published":"2025-11-05T00:22:55.297Z","database_specific":{"cna_assigner":"certcc","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/12xxx/CVE-2025-12735.json","unresolved_ranges":[{"extracted_events":[{"last_affected":"3.0.0"}],"source":"AFFECTED_FIELD"}]},"references":[{"type":"WEB","url":"https://www.kb.cert.org/vuls/id/263614"},{"type":"WEB","url":"https://www.npmjs.com/package/expr-eval"},{"type":"WEB","url":"https://www.npmjs.com/package/expr-eval-fork"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/12xxx/CVE-2025-12735.json"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-jc85-fpwf-qm7x"},{"type":"ADVISORY","url":"https://kb.cert.org/vuls/id/263614"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-12735"},{"type":"FIX","url":"https://github.com/silentmatt/expr-eval/pull/288"},{"type":"PACKAGE","url":"https://github.com/jorenbroekema/expr-eval"},{"type":"PACKAGE","url":"https://github.com/silentmatt/expr-eval"},{"type":"EVIDENCE","url":"https://github.com/jorenbroekema/expr-eval/blob/460b820ba01c5aca6c5d84a7d4f1fa5d1913c67b/test/security.js"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/silentmatt/expr-eval","events":[{"introduced":"0"},{"last_affected":"9f40d2b0367f551bd2c07a6c7d2e06d8943cd7c3"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"last_affected":"2.0.2"}],"source":["AFFECTED_FIELD","CPE_RANGE"],"cpe":"cpe:2.3:a:silentmatt:javascript_expression_evaluator:*:*:*:*:*:node.js:*:*"}}],"versions":["v2.0.2","v2.0.1","v2.0.0","v1.2.3","v1.2.2","v1.2.1","v1.2.0","v1.1.1","v1.1.0","v1.0.1","v1.0.0","v1.0.0-rc.3","v0.12.0","v0.11.0","v0.10.1","v0.10.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-12735.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}