{"answers":{"affected":"10 open source packages ship an affected version, including vite. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-30208 exists.","fix":"Upgrade vite to a fixed version for your release line: 4.5.10, 5.4.15, 6.0.12 or 6.1.2.","what":"CVE-2025-30208 is a medium-severity path traversal vulnerability in vitejs vite, published on 24 Mar 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-30208 and fix it if it is affected.\n\nWhat it is: CVE-2025-30208 is a medium-severity path traversal vulnerability in vitejs vite, published on 24 Mar 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-30208 exists.\n\nAffected packages and fixed versions:\n- vite (npm): affected all versions; fixed in 4.5.10\n- vite (npm): affected all versions; fixed in 4.5.10\n- vite (npm): affected from 5.0.0; fixed in 5.4.15\n- vite (npm): affected from 5.0.0; fixed in 5.4.15\n- vite (npm): affected from 6.0.0; fixed in 6.0.12\n- vite (npm): affected from 6.0.0; fixed in 6.0.12\n- vite (npm): affected from 6.1.0; fixed in 6.1.2\n- vite (npm): affected from 6.1.0; fixed in 6.1.2\n- vite (npm): affected from 6.2.0; fixed in 6.2.3\n- vite (npm): affected from 6.2.0; fixed in 6.2.3\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-30208/ (Markdown: https://insights.sbomify.com/CVE-2025-30208/index.md)","id":"CVE-2025-30208","markdown":"https://insights.sbomify.com/CVE-2025-30208/index.md","name":"CVE-2025-30208","record":{"aliases":["GHSA-x574-m823-4x7w","MINI-8g8g-g9xj-8mm9","ROOT-APP-NPM-CVE-2025-30208"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Vite frontend tooling","requires_auth":"none","summary":"Attackers can read arbitrary files by bypassing server.fs.deny restrictions in Vite dev servers exposed to the network.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"vite","vendor":"vitejs"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-284","name":"Improper Access Control"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"Vite, a provider of frontend development tooling, has a vulnerability in versions prior to 6.2.3, 6.1.2, 6.0.12, 5.4.15, and 4.5.10. `@fs` denies access to files outside of Vite serving allow list. Adding `?raw??` or `?import\u0026raw??` to the URL bypasses this limitation and returns the file content if it exists. This bypass exists because trailing separators such as `?` are removed in several places, but are not accounted for in query string regexes. The contents of arbitrary files can be returned to the browser. Only apps explicitly exposing the Vite dev server to the network (using `--host` or `server.host` config option) are affected. Versions 6.2.3, 6.1.2, 6.0.12, 5.4.15, and 4.5.10 fix the issue.","ecosystems":["npm"],"exploits":{"exploitdb":1,"first_seen":"2025-03-26","github_poc":25,"max_poc_stars":194,"metasploit":0,"nuclei":1,"refs":[{"date":"2025-03-26T15:42:31Z","kind":"github_poc","ref":"https://github.com/ThumpBo/CVE-2025-30208-EXP","stars":194,"title":"CVE-2025-30208-EXP"},{"date":"2025-03-26T10:26:12Z","kind":"github_poc","ref":"https://github.com/xuemian168/CVE-2025-30208","stars":50,"title":"全网首发 CVE-2025-31125 CVE-2025-30208 CVE-2025-32395 Vite Scanner"},{"date":"2025-03-27T12:55:01Z","kind":"github_poc","ref":"https://github.com/4xura/CVE-2025-30208","stars":12,"title":"A PoC of the exploit script for the Arbitrary File Read vulnerability of Vite /@fs/ Path Traversal in the transformMiddleware (CVE-2025-30208). "},{"date":"2025-03-26T20:10:20Z","kind":"github_poc","ref":"https://github.com/marino-admin/Vite-CVE-2025-30208-Scanner","stars":10,"title":"CVE-2025-30208-EXP 任意文件读取"},{"date":"2025-06-27T10:13:24Z","kind":"github_poc","ref":"https://github.com/ThemeHackers/CVE-2025-30208","stars":10,"title":"CVE‑2025‑30208 is a medium-severity arbitrary file read vulnerability in the Vite development server (a popular frontend build tool)"},{"date":"2025-03-31T13:43:45Z","kind":"github_poc","ref":"https://github.com/jackieya/ViteVulScan","stars":7,"title":"针对CVE-2025-30208和CVE-2025-31125的漏洞利用"},{"date":"2025-04-03T11:46:19Z","kind":"github_poc","ref":"https://github.com/4m3rr0r/CVE-2025-30208-PoC","stars":7,"title":"CVE-2025-30208 - Vite Arbitrary File Read PoC"},{"date":"2025-05-29T17:23:04Z","kind":"github_poc","ref":"https://github.com/nkuty/CVE-2025-30208-31125-31486-32395","stars":5,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"Vite bypasses server.fs.deny when using `?raw??`","id":"CVE-2025-30208","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":10,"n_references":6,"next":{"headline":"Tuleap has improper permission handling in the REST endpoints and release notes display of the FRS plugin","id":"CVE-2025-30209"},"packages":[{"ecosystem":"npm","fixed":["4.5.10"],"introduced":["0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-x574-m823-4x7w"},{"ecosystem":"npm","fixed":["4.5.10"],"introduced":["0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-x574-m823-4x7w"},{"ecosystem":"npm","fixed":["5.4.15"],"introduced":["5.0.0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-x574-m823-4x7w"},{"ecosystem":"npm","fixed":["5.4.15"],"introduced":["5.0.0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-x574-m823-4x7w"},{"ecosystem":"npm","fixed":["6.0.12"],"introduced":["6.0.0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-x574-m823-4x7w"},{"ecosystem":"npm","fixed":["6.0.12"],"introduced":["6.0.0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-x574-m823-4x7w"},{"ecosystem":"npm","fixed":["6.1.2"],"introduced":["6.1.0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-x574-m823-4x7w"},{"ecosystem":"npm","fixed":["6.1.2"],"introduced":["6.1.0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-x574-m823-4x7w"},{"ecosystem":"npm","fixed":["6.2.3"],"introduced":["6.2.0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-x574-m823-4x7w"},{"ecosystem":"npm","fixed":["6.2.3"],"introduced":["6.2.0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-x574-m823-4x7w"}],"prev":{"headline":"Kirby vulnerable to path traversal in the router for PHP's built-in server","id":"CVE-2025-30207"},"products":["vite"],"published":"2025-03-24","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":8.2,"headline":"Vite has a `server.fs.deny` bypass with queries","id":"CVE-2026-39364","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":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-24","vendors":["vitejs"]},"summary":"Attackers can read arbitrary files by bypassing server.fs.deny restrictions in Vite dev servers exposed to the network.","url":"https://insights.sbomify.com/CVE-2025-30208/"}