{"id":"GHSA-jc85-fpwf-qm7x","revision":"8b31e1ae675043b5ad21f55313cc3bf9","records":[{"revision":"8b31e1ae675043b5ad21f55313cc3bf9","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-jc85-fpwf-qm7x","aliases":["CVE-2025-12735"],"title":"expr-eval does not restrict functions passed to the evaluate function","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 variables object into the evaluate() function and trigger arbitrary code execution.","state":0,"publishedAt":"2025-11-05T03:30:23+00:00","modifiedAt":"2026-09-10T03:50:31.0310279+00:00","affected":[{"ecosystem":"npm","name":"expr-eval","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"2.0.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"expr-eval-fork","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.0.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2025-12735","https://github.com/silentmatt/expr-eval/pull/288","https://github.com/silentmatt/expr-eval/pull/289","https://github.com/jorenbroekema/expr-eval/commit/1d71bb2ca8f98df8de00e9cc4de8fdd468a7ad43","https://github.com/jorenbroekema/expr-eval","https://github.com/jorenbroekema/expr-eval/blob/460b820ba01c5aca6c5d84a7d4f1fa5d1913c67b/test/security.js","https://github.com/silentmatt/expr-eval","https://kb.cert.org/vuls/id/263614","https://www.kb.cert.org/vuls/id/263614","https://www.npmjs.com/package/expr-eval","https://www.npmjs.com/package/expr-eval-fork"],"sourceUrl":"https://github.com/advisories/GHSA-jc85-fpwf-qm7x","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-jc85-fpwf-qm7x","identifiers":["GHSA-jc85-fpwf-qm7x","CVE-2025-12735"]},"retained":false,"historicalAffected":[]}],"coverage":[]}