{"answers":{"affected":"4 open source packages ship an affected version, including org.webjars.npm:expr-eval and expr-eval.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-12866 exists.","fix":"No fix published yet.","what":"CVE-2026-12866 is a critical code injection vulnerability in expr-eval, published on 23 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-12866 and fix it if it is affected.\n\nWhat it is: CVE-2026-12866 is a critical code injection vulnerability in expr-eval, published on 23 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-12866 exists.\n\nAffected packages and fixed versions:\n- org.webjars.npm:expr-eval (Maven): affected all versions up to 2.0.2; no fix listed\n- org.webjars.npm:expr-eval (Maven): affected all versions up to 2.0.2; no fix listed\n- expr-eval (npm): affected all versions up to 2.0.2; no fix listed\n- expr-eval (npm): affected all versions up to 2.0.2; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-12866/ (Markdown: https://insights.sbomify.com/CVE-2026-12866/index.md)","id":"CVE-2026-12866","markdown":"https://insights.sbomify.com/CVE-2026-12866/index.md","name":"CVE-2026-12866","record":{"aliases":["CLSA-2026-1792241023","GHSA-q9v2-7m5w-4693","MINI-82jp-6mpf-372q","MINI-8j87-6r7x-pw3p","MINI-crgw-qrc7-vgc9","MINI-gj57-qfx6-6ff6","MINI-jqwp-gjvg-q6g9","MINI-vmp9-ccp6-r6gx","MINI-xgpx-xqwr-cpx6","ROOT-APP-NPM-CVE-2026-12866"],"analysis":{"component_type":"library","fix_type":"no_fix_stated","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript expression evaluator","requires_auth":"none","summary":"Attackers can execute arbitrary JavaScript code by supplying crafted expressions to the toJSFunction API, bypassing the intended sandbox.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[],"cvss":{"score":9.2,"severity":"critical","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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.","ecosystems":["Maven","npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"expr-eval vulnerable to Code Execution","id":"CVE-2026-12866","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":4,"n_references":4,"next":{"headline":"Header Footer Builder for Elementor \u003c 1.2.1 - Contributor+ Stored XSS via Template Import","id":"CVE-2026-12869"},"packages":[{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["2.0.2"],"package":"org.webjars.npm:expr-eval","purl":null,"source":"GHSA-q9v2-7m5w-4693"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["2.0.2"],"package":"org.webjars.npm:expr-eval","purl":"pkg:maven/org.webjars.npm/expr-eval","source":"GHSA-q9v2-7m5w-4693"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["2.0.2"],"package":"expr-eval","purl":null,"source":"GHSA-q9v2-7m5w-4693"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["2.0.2"],"package":"expr-eval","purl":"pkg:npm/expr-eval","source":"GHSA-q9v2-7m5w-4693"}],"prev":{"headline":"Photo Gallery by 10Web \u003c 1.8.44 - Reflected XSS via title and paged Parameters","id":"CVE-2026-12865"},"products":["expr-eval","org.webjars.npm:expr-eval"],"published":"2026-06-23","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-14","vendors":["n/a"]},"summary":"Attackers can execute arbitrary JavaScript code by supplying crafted expressions to the toJSFunction API, bypassing the intended sandbox.","url":"https://insights.sbomify.com/CVE-2026-12866/"}