{"answers":{"affected":"4 open source packages ship an affected version, including vitest. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47429 exists.","fix":"Upgrade vitest to a fixed version for your release line: 3.2.6 or 4.1.0.","what":"CVE-2026-47429 is a critical path traversal vulnerability in vitest-dev vitest, published on 14 Jul 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-47429 and fix it if it is affected.\n\nWhat it is: CVE-2026-47429 is a critical path traversal vulnerability in vitest-dev vitest, published on 14 Jul 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-47429 exists.\n\nAffected packages and fixed versions:\n- vitest (npm): affected all versions; fixed in 3.2.6\n- vitest (npm): affected all versions; fixed in 3.2.6\n- vitest (npm): affected from 4.0.0; fixed in 4.1.0\n- vitest (npm): affected from 4.0.0; fixed in 4.1.0\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-47429/ (Markdown: https://insights.sbomify.com/CVE-2026-47429/index.md)","id":"CVE-2026-47429","markdown":"https://insights.sbomify.com/CVE-2026-47429/index.md","name":"CVE-2026-47429","record":{"aliases":["GHSA-5xrq-8626-4rwp","MINI-46v9-5hx4-wh5v","MINI-543j-26p3-xqcx","MINI-69gr-x579-2vc3","MINI-g954-c4jp-4wxv","MINI-jr9p-322p-258c","MINI-pgv5-27hp-8cp9","MINI-pwr6-64vh-vjxp","MINI-v3cr-8r9f-7pm3","ROOT-APP-NPM-CVE-2026-47429"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Vitest testing framework","requires_auth":"none","summary":"Attackers can read arbitrary files and execute scripts via path traversal in the Vitest UI server on Windows when the server is active.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"vitest","vendor":"vitest.dev"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","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-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Vitest is a testing framework powered by Vite. Prior to 3.2.5 and 4.1.0, the Vitest UI/API server on Windows used isFileServingAllowed incorrectly for /__vitest_attachment__, allowing \\\\?\\\\..\\\\ path traversal to read files outside the project; exposed API write and rerun features such as saveTestFile and rerun could also allow arbitrary script execution. This issue is fixed in versions 3.2.5 and 4.1.0.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2026-06-09","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-06-09T06:04:36Z","kind":"github_poc","ref":"https://github.com/az9713/cve-lite-on-pi","stars":0,"title":"Running OWASP cve-lite-cli against the pi monorepo: scan journey and key finding (vitest CVE-2026-47429)."}],"tier":"weaponised"},"has_fix":true,"headline":"Vitest: Arbitrary file can be read and executed when Vitest UI server is listening","id":"CVE-2026-47429","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":4,"n_references":7,"next":{"headline":"Cordova Plugin InAppBrowser: iOS: Arbitrary Cordova callback IDs can be dispatched without validation from InAppBrowser WebViews.","id":"CVE-2026-47430"},"packages":[{"ecosystem":"npm","fixed":["3.2.6"],"introduced":["0"],"last_affected":[],"package":"vitest","purl":null,"source":"GHSA-5xrq-8626-4rwp"},{"ecosystem":"npm","fixed":["3.2.6"],"introduced":["0"],"last_affected":[],"package":"vitest","purl":"pkg:npm/vitest","source":"GHSA-5xrq-8626-4rwp"},{"ecosystem":"npm","fixed":["4.1.0"],"introduced":["4.0.0"],"last_affected":[],"package":"vitest","purl":null,"source":"GHSA-5xrq-8626-4rwp"},{"ecosystem":"npm","fixed":["4.1.0"],"introduced":["4.0.0"],"last_affected":[],"package":"vitest","purl":"pkg:npm/vitest","source":"GHSA-5xrq-8626-4rwp"}],"prev":{"headline":"Vitest browser mode serves unsanitized otelCarrier query parameter as inline script","id":"CVE-2026-47428"},"products":["vitest"],"published":"2026-07-14","related":[{"cvss_score":9.7,"headline":"Remote Code Execution when accessing a malicious website while Vitest API server is listening","id":"CVE-2025-24964","kev_date_added":null,"published":"2025-02-04"},{"cvss_score":5.9,"headline":"Browser mode serves arbitrary files in vitest","id":"CVE-2025-24963","kev_date_added":null,"published":"2025-02-04"}],"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":"2026-07-21","vendors":["vitest-dev"]},"summary":"Attackers can read arbitrary files and execute scripts via path traversal in the Vitest UI server on Windows when the server is active.","url":"https://insights.sbomify.com/CVE-2026-47429/"}