{"answers":{"affected":"14 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-62522 exists.","fix":"Upgrade vite to a fixed version for your release line: 5.4.21, 6.4.1, 7.0.8 or 7.1.11.","what":"CVE-2025-62522 is a medium-severity path traversal vulnerability in vitejs vite, published on 20 Oct 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-62522 and fix it if it is affected.\n\nWhat it is: CVE-2025-62522 is a medium-severity path traversal vulnerability in vitejs vite, published on 20 Oct 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-62522 exists.\n\nAffected packages and fixed versions:\n- vite (npm): affected from 2.9.18; fixed in 5.4.21\n- vite (npm): affected from 2.9.18; fixed in 5.4.21\n- vite (npm): affected from 3.2.9; fixed in 5.4.21\n- vite (npm): affected from 3.2.9; fixed in 5.4.21\n- vite (npm): affected from 4.5.3; fixed in 5.4.21\n- vite (npm): affected from 4.5.3; fixed in 5.4.21\n- vite (npm): affected from 5.2.6; fixed in 5.4.21\n- vite (npm): affected from 5.2.6; fixed in 5.4.21\n- vite (npm): affected from 6.0.0; fixed in 6.4.1\n- vite (npm): affected from 6.0.0; fixed in 6.4.1\n- vite (npm): affected from 7.0.0; fixed in 7.0.8\n- vite (npm): affected from 7.0.0; fixed in 7.0.8\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-62522/ (Markdown: https://insights.sbomify.com/CVE-2025-62522/index.md)","id":"CVE-2025-62522","markdown":"https://insights.sbomify.com/CVE-2025-62522/index.md","name":"CVE-2025-62522","record":{"aliases":["CLSA-2026-1779065186","CLSA-2026-1783558962","CLSA-2026-1790458381","CLSA-2026-1791806508","CLSA-2026-1792161447","CLSA-2026-1792161548","CLSA-2026-1792161587","CLSA-2026-1792161688","CLSA-2026-1792161779","CLSA-2026-1792161810","CLSA-2026-1792161850","CLSA-2026-1792161923","GHSA-93m4-6634-74q7","MINI-3mfp-286j-3p52","MINI-mvr8-jj4r-pmpr"],"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":"Attackers can bypass file access restrictions to read denied files on Windows dev servers exposed to the network.","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-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Vite is a frontend tooling framework for JavaScript. In versions from 2.9.18 to before 3.0.0, 3.2.9 to before 4.0.0, 4.5.3 to before 5.0.0, 5.2.6 to before 5.4.21, 6.0.0 to before 6.4.1, 7.0.0 to before 7.0.8, and 7.1.0 to before 7.1.11, files denied by server.fs.deny were sent if the URL ended with \\ when the dev server is running on Windows. Only apps explicitly exposing the Vite dev server to the network and running the dev server on Windows were affected. This issue has been patched in versions 5.4.21, 6.4.1, 7.0.8, and 7.1.11.","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/2025/CVE-2025-62522.yaml","stars":null,"title":"Vite - Information Disclosure"}],"tier":"weaponised"},"has_fix":true,"headline":"vite allows server.fs.deny bypass via backslash on Windows","id":"CVE-2025-62522","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":14,"n_references":2,"next":{"headline":"PILOS Misconfigured the Access-Control-Allow-Origin Header","id":"CVE-2025-62523"},"packages":[{"ecosystem":"npm","fixed":["5.4.21"],"introduced":["2.9.18"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-93m4-6634-74q7"},{"ecosystem":"npm","fixed":["5.4.21"],"introduced":["2.9.18"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-93m4-6634-74q7"},{"ecosystem":"npm","fixed":["5.4.21"],"introduced":["3.2.9"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-93m4-6634-74q7"},{"ecosystem":"npm","fixed":["5.4.21"],"introduced":["3.2.9"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-93m4-6634-74q7"},{"ecosystem":"npm","fixed":["5.4.21"],"introduced":["4.5.3"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-93m4-6634-74q7"},{"ecosystem":"npm","fixed":["5.4.21"],"introduced":["4.5.3"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-93m4-6634-74q7"},{"ecosystem":"npm","fixed":["5.4.21"],"introduced":["5.2.6"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-93m4-6634-74q7"},{"ecosystem":"npm","fixed":["5.4.21"],"introduced":["5.2.6"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-93m4-6634-74q7"},{"ecosystem":"npm","fixed":["6.4.1"],"introduced":["6.0.0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-93m4-6634-74q7"},{"ecosystem":"npm","fixed":["6.4.1"],"introduced":["6.0.0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-93m4-6634-74q7"},{"ecosystem":"npm","fixed":["7.0.8"],"introduced":["7.0.0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-93m4-6634-74q7"},{"ecosystem":"npm","fixed":["7.0.8"],"introduced":["7.0.0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-93m4-6634-74q7"},{"ecosystem":"npm","fixed":["7.1.11"],"introduced":["7.1.0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-93m4-6634-74q7"},{"ecosystem":"npm","fixed":["7.1.11"],"introduced":["7.1.0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-93m4-6634-74q7"}],"prev":{"headline":"ChurchCRM has unauthenticated RCE in its Install Wizard","id":"CVE-2025-62521"},"products":["vite"],"published":"2025-10-20","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"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-10-20","vendors":["vitejs"]},"summary":"Attackers can bypass file access restrictions to read denied files on Windows dev servers exposed to the network.","url":"https://insights.sbomify.com/CVE-2025-62522/"}