{"id":"CVE-2026-12866","state":"PUBLISHED","title":"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 tha","description":"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.","publishedAt":"2026-06-23T05:00:00.763Z","updatedAt":"2026-08-14T15:25:14.399Z","severity":{"score":9.2,"label":"Critical","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"snyk"},"assigner":"snyk","products":["n/a expr-eval","n/a org.webjars.npm:expr-eval"],"affected":[{"vendor":"n/a","product":"expr-eval","versions":[{"version":"0","status":"affected","lessThan":"*","versionType":"semver"}]},{"vendor":"n/a","product":"org.webjars.npm:expr-eval","versions":[{"version":"0","status":"affected","lessThan":"*","versionType":"semver"}]}],"references":["https://security.snyk.io/vuln/SNYK-JS-EXPREVAL-15054690","https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-17662018","https://github.com/silentmatt/expr-eval/blob/master/src/expression.js%23L55","https://github.com/silentmatt/expr-eval/issues/292"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T20:10:52.580Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/12xxx/CVE-2026-12866.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-12866","state":"PUBLISHED","datePublished":"2026-06-23T05:00:00.763Z","dateUpdated":"2026-08-14T15:25:14.399Z","assignerShortName":"snyk","assignerOrgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateReserved":"2026-06-22T08:22:34.991Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"expr-eval","versions":[{"version":"0","status":"affected","lessThan":"*","versionType":"semver"}]},{"vendor":"n/a","product":"org.webjars.npm:expr-eval","versions":[{"version":"0","status":"affected","lessThan":"*","versionType":"semver"}]}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-EXPREVAL-15054690"},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-17662018"},{"url":"https://github.com/silentmatt/expr-eval/blob/master/src/expression.js%23L55"},{"url":"https://github.com/silentmatt/expr-eval/issues/292"}],"metrics":[{"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"LOW","exploitCodeMaturity":"NOT_DEFINED","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"cvssV4_0":{"version":"4.0","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","exploitMaturity":"NOT_DEFINED","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":9.2,"baseSeverity":"CRITICAL","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","description":"Code Execution","lang":"en"}]}],"providerMetadata":{"shortName":"snyk","orgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateUpdated":"2026-08-14T15:25:14.399Z"},"credits":[{"value":"Dinh Twan Doan","lang":"en"}]},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-EXPREVAL-15054690","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-06-23T12:06:04.423419Z","id":"CVE-2026-12866","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","type":"CWE","lang":"en","description":"CWE-94 Improper Control of Generation of Code ('Code Injection')"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-06-23T12:07:54.524Z"}}]}}}