{"answers":{"affected":"4 open source packages ship an affected version, including expr-eval-fork and expr-eval. It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-12735 exists.","fix":"Upgrade expr-eval-fork to 3.0.1 or later.","what":"CVE-2025-12735 is a critical code injection vulnerability in expr-eval-fork expr-eval, published on 5 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-12735 and fix it if it is affected.\n\nWhat it is: CVE-2025-12735 is a critical code injection vulnerability in expr-eval-fork expr-eval, published on 5 Nov 2025. 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-2025-12735 exists.\n\nAffected packages and fixed versions:\n- expr-eval-fork (npm): affected all versions; fixed in 3.0.1\n- expr-eval-fork (npm): affected all versions; fixed in 3.0.1\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-2025-12735/ (Markdown: https://insights.sbomify.com/CVE-2025-12735/index.md)","id":"CVE-2025-12735","markdown":"https://insights.sbomify.com/CVE-2025-12735/index.md","name":"CVE-2025-12735","record":{"aliases":["GHSA-jc85-fpwf-qm7x","MINI-5f9w-64w5-fj29","MINI-5q92-fx8f-48h8","MINI-67pm-4g9j-7gqw","MINI-6fq3-38wm-xpgq","MINI-6p87-g8qj-h3gp","MINI-g74w-vc85-mmh7","MINI-v8c7-mrhx-p5fh","MINI-wg3m-w8r3-vjpp","ROOT-APP-NPM-CVE-2025-12735"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript expression library","requires_auth":"none","summary":"Attackers can achieve arbitrary code execution in the expr-eval JavaScript library by passing crafted context objects to the evaluate function.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"certcc","cpe":[{"product":"javascript_expression_evaluator","vendor":"jorenbroekema"},{"product":"javascript_expression_evaluator","vendor":"silentmatt"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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 context object or use MEMBER of the context object into the evaluate() function and trigger arbitrary code execution.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2025-11-20","github_poc":3,"max_poc_stars":4,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-11-27T15:22:28Z","kind":"github_poc","ref":"https://github.com/alecasg555/safe-expr-eval","stars":4,"title":"Secure expression evaluator - Drop-in replacement for expr-eval without CVE-2025-12735 vulnerability"},{"date":"2025-11-20T23:52:55Z","kind":"github_poc","ref":"https://github.com/alnashawatirohwederb2167-max/cve-2025-12735-expr-eval-rce","stars":0,"title":"Security research tool for detecting and testing CVE-2025-12735 (expr-eval RCE vulnerability)"},{"date":"2025-11-21T00:20:41Z","kind":"github_poc","ref":"https://github.com/AN5I/cve-2025-12735-expr-eval-rce","stars":0,"title":"Security research tool for detecting and testing CVE-2025-12735 (expr-eval RCE vulnerability)"}],"tier":"weaponised"},"has_fix":true,"headline":"CVE-2025-12735","id":"CVE-2025-12735","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2025"},"n_packages":4,"n_references":7,"next":{"headline":"multimedia_audio_standard has an insecure storage of sensitive information vulnerability","id":"CVE-2025-12736"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["2.0.2"],"package":"expr-eval","purl":null,"source":"GHSA-jc85-fpwf-qm7x"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["2.0.2"],"package":"expr-eval","purl":"pkg:npm/expr-eval","source":"GHSA-jc85-fpwf-qm7x"},{"ecosystem":"npm","fixed":["3.0.1"],"introduced":["0"],"last_affected":[],"package":"expr-eval-fork","purl":null,"source":"GHSA-jc85-fpwf-qm7x"},{"ecosystem":"npm","fixed":["3.0.1"],"introduced":["0"],"last_affected":[],"package":"expr-eval-fork","purl":"pkg:npm/expr-eval-fork","source":"GHSA-jc85-fpwf-qm7x"}],"prev":{"headline":"Improper Encoding or Escaping of Output in GitLab","id":"CVE-2025-12734"},"products":["expr-eval","expr-eval-fork"],"published":"2025-11-05","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":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-11-22","vendors":["expr-eval-fork","silentmatt"]},"summary":"Attackers can achieve arbitrary code execution in the expr-eval JavaScript library by passing crafted context objects to the evaluate function.","url":"https://insights.sbomify.com/CVE-2025-12735/"}