{"answers":{"affected":"4 open source packages ship an affected version, including vite. It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-39364 exists.","fix":"Upgrade vite to a fixed version for your release line: 7.3.2 or 8.0.5.","what":"CVE-2026-39364 is a high-severity vulnerability in vitejs vite, published on 7 Apr 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-39364 and fix it if it is affected.\n\nWhat it is: CVE-2026-39364 is a high-severity vulnerability in vitejs vite, published on 7 Apr 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-39364 exists.\n\nAffected packages and fixed versions:\n- vite (npm): affected from 7.1.0; fixed in 7.3.2\n- vite (npm): affected from 7.1.0; fixed in 7.3.2\n- vite (npm): affected from 8.0.0; fixed in 8.0.5\n- vite (npm): affected from 8.0.0; fixed in 8.0.5\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-39364/ (Markdown: https://insights.sbomify.com/CVE-2026-39364/index.md)","id":"CVE-2026-39364","markdown":"https://insights.sbomify.com/CVE-2026-39364/index.md","name":"CVE-2026-39364","record":{"aliases":["GHSA-v2wj-q39q-566r","MINI-2qv7-j87w-cgwp","MINI-73f9-544x-mpp9","MINI-wc8h-63mh-72mq","MINI-xx84-hrc9-j47r"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Vite dev server","requires_auth":"none","summary":"Attackers can bypass file access restrictions on the Vite dev server to read sensitive files like .env by appending specific query parameters.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"vite","vendor":"vitejs"},{"product":"vite\\+","vendor":"voidzero"}],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-472","name":"External Control of Assumed-Immutable Web Parameter"},{"id":"CWE-284","name":"Improper Access Control"},{"id":"CWE-180","name":"Incorrect Behavior Order: Validate Before Canonicalize"}],"description":"Vite is a frontend tooling framework for JavaScript. From 7.1.0 to before 7.3.2 and 8.0.5, on the Vite dev server, files that should be blocked by server.fs.deny (e.g., .env, *.crt) can be retrieved with HTTP 200 responses when query parameters such as ?raw, ?import\u0026raw, or ?import\u0026url\u0026inline are appended. This vulnerability is fixed in 7.3.2 and 8.0.5.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2026/CVE-2026-39364.yaml","stars":null,"title":"Vite Dev Server - Directory Traversal"}],"tier":"weaponised"},"has_fix":true,"headline":"Vite has a `server.fs.deny` bypass with queries","id":"CVE-2026-39364","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"security_feature_bypass","year":"2026"},"n_packages":4,"n_references":1,"next":{"headline":"Vite has a Path Traversal in Optimized Deps `.map` Handling","id":"CVE-2026-39365"},"packages":[{"ecosystem":"npm","fixed":["7.3.2"],"introduced":["7.1.0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-v2wj-q39q-566r"},{"ecosystem":"npm","fixed":["7.3.2"],"introduced":["7.1.0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-v2wj-q39q-566r"},{"ecosystem":"npm","fixed":["8.0.5"],"introduced":["8.0.0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-v2wj-q39q-566r"},{"ecosystem":"npm","fixed":["8.0.5"],"introduced":["8.0.0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-v2wj-q39q-566r"}],"prev":{"headline":"Vite Affected by Arbitrary File Read via Vite Dev Server WebSocket","id":"CVE-2026-39363"},"products":["vite","vite-plus"],"published":"2026-04-07","related":[{"cvss_score":5.3,"headline":"Vite Vitejs Improper Access Control","id":"CVE-2025-31125","kev_date_added":"2026-01-22","published":"2025-03-31"},{"cvss_score":8.2,"headline":"Vite: `server.fs.deny` bypass on Windows alternate paths","id":"CVE-2026-53571","kev_date_added":null,"published":"2026-06-22"},{"cvss_score":8.2,"headline":"Vite Affected by Arbitrary File Read via Vite Dev Server WebSocket","id":"CVE-2026-39363","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":7.5,"headline":"Vite dev server option `server.fs.deny` can be bypassed when hosted on case-insensitive filesystem","id":"CVE-2024-23331","kev_date_added":null,"published":"2024-01-19"},{"cvss_score":7.5,"headline":"Vite Server Options (server.fs.deny) can be bypassed using double forward-slash (//)","id":"CVE-2023-34092","kev_date_added":null,"published":"2023-06-01"},{"cvss_score":6.5,"headline":"Vite allows any websites to send any requests to the development server and read the response","id":"CVE-2025-24010","kev_date_added":null,"published":"2025-01-20"}],"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":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-17","vendors":["vitejs"]},"summary":"Attackers can bypass file access restrictions on the Vite dev server to read sensitive files like .env by appending specific query parameters.","url":"https://insights.sbomify.com/CVE-2026-39364/"}