{"id":"CVE-2025-12735","published":"2025-11-05T00:22:55Z","modified":"2025-11-22T23:45:45Z","title":"CVE-2025-12735","vendor":"silentmatt","product":"expr-eval","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.02289,"percentile":0.83898,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/silentmatt/expr-eval","tags":[]},{"url":"https://github.com/jorenbroekema/expr-eval","tags":[]},{"url":"https://www.npmjs.com/package/expr-eval-fork","tags":[]},{"url":"https://www.npmjs.com/package/expr-eval","tags":[]},{"url":"https://github.com/silentmatt/expr-eval/pull/288","tags":[]},{"url":"https://github.com/advisories/GHSA-jc85-fpwf-qm7x","tags":["third-party-advisory"]},{"url":"https://kb.cert.org/vuls/id/263614","tags":["third-party-advisory"]},{"url":"https://github.com/jorenbroekema/expr-eval/blob/460b820ba01c5aca6c5d84a7d4f1fa5d1913c67b/test/security.js","tags":["exploit"]},{"url":"https://www.kb.cert.org/vuls/id/263614","tags":[]}],"priority":{"score":28.6,"factors":[{"name":"EPSS percentile","points":16.78},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.86}]},"exploitSources":{"pocGithub":{"count":3,"skipped":0,"earliest":"2025-11-20","earliestUrl":"https://github.com/alnashawatirohwederb2167-max/cve-2025-12735-expr-eval-rce","repos":[{"name":"alecasg555/safe-expr-eval","url":"https://github.com/alecasg555/safe-expr-eval","stars":4,"created":"2025-11-27"},{"name":"alnashawatirohwederb2167-max/cve-2025-12735-expr-eval-rce","url":"https://github.com/alnashawatirohwederb2167-max/cve-2025-12735-expr-eval-rce","stars":0,"created":"2025-11-20"},{"name":"AN5I/cve-2025-12735-expr-eval-rce","url":"https://github.com/AN5I/cve-2025-12735-expr-eval-rce","stars":0,"created":"2025-11-21"}]},"first":{"date":"2025-11-20","source":"PoC-in-GitHub","url":"https://github.com/alnashawatirohwederb2167-max/cve-2025-12735-expr-eval-rce"},"provenance":"source"},"vendorSlug":"silentmatt","affectedVersions":[{"vendor":"silentmatt","product":"expr-eval","versions":["<= 2.0.2"]},{"vendor":"expr-eval-fork","product":"expr-eval-fork","versions":["<= 3.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-11-10T14:06:48.027568Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"expr-eval","vulnerableRanges":["<=2.0.2"],"patched":[],"from":["GHSA-jc85-fpwf-qm7x"],"provenance":"source"},{"ecosystem":"npm","package":"expr-eval-fork","vulnerableRanges":["<3.0.1"],"patched":["3.0.1"],"from":["GHSA-jc85-fpwf-qm7x"],"provenance":"source"}],"summary":{"text":"The silentmatt expr-eval JavaScript library, a parser and evaluator for mathematical expressions with user-defined variables, fails to adequately validate input passed to its evaluate() function. An unauthenticated attacker with network access can exploit this with no user interaction and default configuration by supplying a crafted context object or using a member of the context object, which leads to arbitrary code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:29:18Z"},"euvd":{"id":"EUVD-2025-37820","exploited":false,"provenance":"source"},"exploitRefs":["https://github.com/jorenbroekema/expr-eval/blob/460b820ba01c5aca6c5d84a7d4f1fa5d1913c67b/test/security.js"],"lineage":{"familyId":"fam-silentmatt-expr-eval-cve-2025-12735","children":[{"from":"CVE-2025-12735","to":"CVE-2025-13204","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/evaluate.js"],"commits":["https://github.com/jorenbroekema/expr-eval/commit/1d71bb2ca8f98df8de00e9cc4de8fdd468a7ad43","https://github.com/jorenbroekema/expr-eval/commit/6c475a118643ae0efe012de283e932fb8b74324b"],"basis":"shared function","functions":["evaluate"]}]}]}}