{"answers":{"affected":"10 open source packages ship an affected version, including vite.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-32395 exists.","fix":"Upgrade vite to a fixed version for your release line: 4.5.13, 5.4.18, 6.0.15 or 6.1.5.","what":"CVE-2025-32395 is a medium-severity path traversal vulnerability in vitejs vite, published on 10 Apr 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-32395 and fix it if it is affected.\n\nWhat it is: CVE-2025-32395 is a medium-severity path traversal vulnerability in vitejs vite, published on 10 Apr 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-32395 exists.\n\nAffected packages and fixed versions:\n- vite (npm): affected all versions; fixed in 4.5.13\n- vite (npm): affected all versions; fixed in 4.5.13\n- vite (npm): affected from 5.0.0; fixed in 5.4.18\n- vite (npm): affected from 5.0.0; fixed in 5.4.18\n- vite (npm): affected from 6.0.0; fixed in 6.0.15\n- vite (npm): affected from 6.0.0; fixed in 6.0.15\n- vite (npm): affected from 6.1.0; fixed in 6.1.5\n- vite (npm): affected from 6.1.0; fixed in 6.1.5\n- vite (npm): affected from 6.2.0; fixed in 6.2.6\n- vite (npm): affected from 6.2.0; fixed in 6.2.6\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-32395/ (Markdown: https://insights.sbomify.com/CVE-2025-32395/index.md)","id":"CVE-2025-32395","markdown":"https://insights.sbomify.com/CVE-2025-32395/index.md","name":"CVE-2025-32395","record":{"aliases":["GHSA-356w-63v5-8wf4","MINI-gj3j-5rm2-7vp2"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Vite dev server","requires_auth":"none","summary":"An attacker can bypass file access restrictions to read arbitrary files if the Vite dev server is exposed to the network on Node or Bun.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"Vite is a frontend tooling framework for javascript. Prior to 6.2.6, 6.1.5, 6.0.15, 5.4.18, and 4.5.13, the contents of arbitrary files can be returned to the browser if the dev server is running on Node or Bun. HTTP 1.1 spec (RFC 9112) does not allow # in request-target. Although an attacker can send such a request. For those requests with an invalid request-line (it includes request-target), the spec recommends to reject them with 400 or 301. The same can be said for HTTP 2. On Node and Bun, those requests are not rejected internally and is passed to the user land. For those requests, the value of http.IncomingMessage.url contains #. Vite assumed req.url won't contain # when checking server.fs.deny, allowing those kinds of requests to bypass the check. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) and running the Vite dev server on runtimes that are not Deno (e.g. Node, Bun) are affected. This vulnerability is fixed in 6.2.6, 6.1.5, 6.0.15, 5.4.18, and 4.5.13.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2025-04-18","github_poc":1,"max_poc_stars":2,"metasploit":0,"nuclei":1,"refs":[{"date":"2025-04-18T09:10:33Z","kind":"github_poc","ref":"https://github.com/ruiwenya/CVE-2025-32395","stars":2,"title":"CVE-2025-32395-POC"},{"date":null,"kind":"nuclei","ref":"http/cves/2025/CVE-2025-32395.yaml","stars":null,"title":"Vite - Path Traversal"}],"tier":"weaponised"},"has_fix":true,"headline":"Vite has an `server.fs.deny` bypass with an invalid `request-target`","id":"CVE-2025-32395","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":10,"n_references":2,"next":{"headline":"Memory corruption in P-Net","id":"CVE-2025-32396"},"packages":[{"ecosystem":"npm","fixed":["4.5.13"],"introduced":["0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-356w-63v5-8wf4"},{"ecosystem":"npm","fixed":["4.5.13"],"introduced":["0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-356w-63v5-8wf4"},{"ecosystem":"npm","fixed":["5.4.18"],"introduced":["5.0.0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-356w-63v5-8wf4"},{"ecosystem":"npm","fixed":["5.4.18"],"introduced":["5.0.0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-356w-63v5-8wf4"},{"ecosystem":"npm","fixed":["6.0.15"],"introduced":["6.0.0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-356w-63v5-8wf4"},{"ecosystem":"npm","fixed":["6.0.15"],"introduced":["6.0.0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-356w-63v5-8wf4"},{"ecosystem":"npm","fixed":["6.1.5"],"introduced":["6.1.0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-356w-63v5-8wf4"},{"ecosystem":"npm","fixed":["6.1.5"],"introduced":["6.1.0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-356w-63v5-8wf4"},{"ecosystem":"npm","fixed":["6.2.6"],"introduced":["6.2.0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-356w-63v5-8wf4"},{"ecosystem":"npm","fixed":["6.2.6"],"introduced":["6.2.0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-356w-63v5-8wf4"}],"prev":{"headline":"AutoGPT: There is a DoS vulnerability in AITextSummarizerBlock","id":"CVE-2025-32394"},"products":["vite"],"published":"2025-04-10","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)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-10","vendors":["vitejs"]},"summary":"An attacker can bypass file access restrictions to read arbitrary files if the Vite dev server is exposed to the network on Node or Bun.","url":"https://insights.sbomify.com/CVE-2025-32395/"}