{"answers":{"affected":"4 open source packages ship an affected version, including expr-eval and expr-eval-fork. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-13204 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2025-13204 is a high-severity code injection vulnerability in silentmatt expr-eval, published on 14 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-13204 and fix it if it is affected.\n\nWhat it is: CVE-2025-13204 is a high-severity code injection vulnerability in silentmatt expr-eval, published on 14 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-13204 exists.\n\nAffected packages and fixed versions:\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- expr-eval-fork (npm): affected all versions; fixed in 2.0.2\n- expr-eval-fork (npm): affected all versions; fixed in 2.0.2\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-13204/ (Markdown: https://insights.sbomify.com/CVE-2025-13204/index.md)","id":"CVE-2025-13204","markdown":"https://insights.sbomify.com/CVE-2025-13204/index.md","name":"CVE-2025-13204","record":{"aliases":["GHSA-8gw3-rxh4-v6jx","MINI-42xw-4wg6-3q3v","MINI-5f6w-5293-fgvx","MINI-8jjw-jg2f-g5pv","MINI-f2gw-7pc8-q7c3","MINI-fcqj-9c49-p8gr","MINI-h9j3-xgqh-6gh3","MINI-q64w-wp5q-gmw6","MINI-v4jc-wxhp-gv7f","RHSA-2026:0140","ROOT-APP-NPM-CVE-2025-13204"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript expression evaluator","requires_auth":"none","summary":"An attacker can achieve arbitrary code execution via prototype pollution in the expr-eval npm package by exploiting its expression evaluation interface.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"certcc","cpe":[{"product":"javascript_expression_evaluator","vendor":"silentmatt"}],"cvss":{"score":7.3,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"description":"npm package `expr-eval` is vulnerable to Prototype Pollution. An attacker with access to express eval interface can use JavaScript prototype-based inheritance model to achieve arbitrary code execution. The npm expr-eval-fork package resolves this issue.","ecosystems":["Red Hat:rhel_aus:8.2::appstream","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":"CVE-2025-13204","id":"CVE-2025-13204","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2025"},"n_packages":5,"n_references":7,"next":{"headline":"Cross-site request forgery in SurveyJS: Drag \u0026 Drop Form Builder","id":"CVE-2025-13205"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["2.0.2"],"package":"expr-eval","purl":null,"source":"GHSA-8gw3-rxh4-v6jx"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["2.0.2"],"package":"expr-eval","purl":"pkg:npm/expr-eval","source":"GHSA-8gw3-rxh4-v6jx"},{"ecosystem":"npm","fixed":["2.0.2"],"introduced":["0"],"last_affected":[],"package":"expr-eval-fork","purl":null,"source":"GHSA-8gw3-rxh4-v6jx"},{"ecosystem":"npm","fixed":["2.0.2"],"introduced":["0"],"last_affected":[],"package":"expr-eval-fork","purl":"pkg:npm/expr-eval-fork","source":"GHSA-8gw3-rxh4-v6jx"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:1.0.5-5.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-pcp","purl":"pkg:rpm/redhat/grafana-pcp","source":"RHSA-2026:0140"}],"prev":{"headline":"code-projects Simple Cafe Ordering System addmem.php sql injection","id":"CVE-2025-13203"},"products":["expr-eval"],"published":"2025-11-14","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":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"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)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-14","vendors":["silentmatt"]},"summary":"An attacker can achieve arbitrary code execution via prototype pollution in the expr-eval npm package by exploiting its expression evaluation interface.","url":"https://insights.sbomify.com/CVE-2025-13204/"}