{"id":"CVE-2026-12866","published":"2026-06-23T05:00:00Z","modified":"2026-08-14T15:25:14Z","title":"All versions of the package expr-eval are vulnerable to Code Execution via the toJSFunction() API","vendor":null,"product":null,"tier":"tail","description":{"text":"All versions of the package expr-eval are vulnerable to Code Execution via the toJSFunction() API. An attacker can execute arbitrary JavaScript by supplying crafted expressions that are compiled into native code using new Function(). Because user-controlled expressions are transformed directly into executable JavaScript, attackers can escape the intended expression sandbox and run arbitrary code within the application's context.","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":"CVE.org CNA"},"epss":{"score":0.00866,"percentile":0.59568,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-EXPREVAL-15054690","tags":[]},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-17662018","tags":[]},{"url":"https://github.com/silentmatt/expr-eval/blob/master/src/expression.js%23L55","tags":[]},{"url":"https://github.com/silentmatt/expr-eval/issues/292","tags":[]}],"priority":{"score":18.8,"factors":[{"name":"EPSS percentile","points":11.91},{"name":"CVSS severity","points":6.86}]},"affectedVersions":[{"vendor":"n/a","product":"expr-eval","versions":["all versions"]},{"vendor":"n/a","product":"org.webjars.npm:expr-eval","versions":["all versions"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-06-23T12:06:04.423419Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"expr-eval","vulnerableRanges":["<=2.0.2"],"patched":[],"from":["GHSA-q9v2-7m5w-4693"],"provenance":"source"},{"ecosystem":"Maven","package":"org.webjars.npm:expr-eval","vulnerableRanges":["<=2.0.2"],"patched":[],"from":["GHSA-q9v2-7m5w-4693"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-38415","exploited":false,"provenance":"source"}}