{"answers":{"affected":"12 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-2023-34092 exists.","fix":"Upgrade vite to a fixed version for your release line: 2.9.16, 3.2.7, 4.0.5 or 4.1.5.","what":"CVE-2023-34092 is a high-severity path traversal vulnerability in vitejs vite, published on 1 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-34092 and fix it if it is affected.\n\nWhat it is: CVE-2023-34092 is a high-severity path traversal vulnerability in vitejs vite, published on 1 Jun 2023. 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-2023-34092 exists.\n\nAffected packages and fixed versions:\n- vite (npm): affected all versions; fixed in 2.9.16\n- vite (npm): affected all versions; fixed in 2.9.16\n- vite (npm): affected from 3.0.2; fixed in 3.2.7\n- vite (npm): affected from 3.0.2; fixed in 3.2.7\n- vite (npm): affected from 4.0.0; fixed in 4.0.5\n- vite (npm): affected from 4.0.0; fixed in 4.0.5\n- vite (npm): affected from 4.1.0; fixed in 4.1.5\n- vite (npm): affected from 4.1.0; fixed in 4.1.5\n- vite (npm): affected from 4.2.0; fixed in 4.2.3\n- vite (npm): affected from 4.2.0; fixed in 4.2.3\n- vite (npm): affected from 4.3.0; fixed in 4.3.9\n- vite (npm): affected from 4.3.0; fixed in 4.3.9\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-2023-34092/ (Markdown: https://insights.sbomify.com/CVE-2023-34092/index.md)","id":"CVE-2023-34092","markdown":"https://insights.sbomify.com/CVE-2023-34092/index.md","name":"CVE-2023-34092","record":{"aliases":["GHSA-353f-5xf4-qw67"],"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 bypass file access restrictions to read sensitive files from the project root if the Vite dev server is exposed to the network.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"vite","vendor":"vitejs"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-706","name":"Use of Incorrectly-Resolved Name or Reference"},{"id":"CWE-50","name":"Path Equivalence: '//multiple/leading/slash'"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"Vite provides frontend tooling. Prior to versions 2.9.16, 3.2.7, 4.0.5, 4.1.5, 4.2.3, and 4.3.9, Vite Server Options (`server.fs.deny`) can be bypassed using double forward-slash (//) allows any unauthenticated user to read file from the Vite root-path of the application including the default `fs.deny` settings (`['.env', '.env.*', '*.{crt,pem}']`). Only users explicitly exposing the Vite dev server to the network (using `--host` or `server.host` config option) are affected, and only files in the immediate Vite project root folder could be exposed. This issue is fixed in vite@4.3.9, vite@4.2.3, vite@4.1.5, vite@4.0.5, vite@3.2.7, and vite@2.9.16.","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/2023/CVE-2023-34092.yaml","stars":null,"title":"Vite Dev Server - Information Exposure"}],"tier":"weaponised"},"has_fix":true,"headline":"Vite Server Options (server.fs.deny) can be bypassed using double forward-slash (//)","id":"CVE-2023-34092","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2023"},"n_packages":12,"n_references":3,"next":{"headline":"Strapi allows actors to make all attributes on a content-type public without noticing it","id":"CVE-2023-34093"},"packages":[{"ecosystem":"npm","fixed":["2.9.16"],"introduced":["0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-353f-5xf4-qw67"},{"ecosystem":"npm","fixed":["2.9.16"],"introduced":["0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-353f-5xf4-qw67"},{"ecosystem":"npm","fixed":["3.2.7"],"introduced":["3.0.2"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-353f-5xf4-qw67"},{"ecosystem":"npm","fixed":["3.2.7"],"introduced":["3.0.2"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-353f-5xf4-qw67"},{"ecosystem":"npm","fixed":["4.0.5"],"introduced":["4.0.0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-353f-5xf4-qw67"},{"ecosystem":"npm","fixed":["4.0.5"],"introduced":["4.0.0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-353f-5xf4-qw67"},{"ecosystem":"npm","fixed":["4.1.5"],"introduced":["4.1.0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-353f-5xf4-qw67"},{"ecosystem":"npm","fixed":["4.1.5"],"introduced":["4.1.0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-353f-5xf4-qw67"},{"ecosystem":"npm","fixed":["4.2.3"],"introduced":["4.2.0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-353f-5xf4-qw67"},{"ecosystem":"npm","fixed":["4.2.3"],"introduced":["4.2.0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-353f-5xf4-qw67"},{"ecosystem":"npm","fixed":["4.3.9"],"introduced":["4.3.0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-353f-5xf4-qw67"},{"ecosystem":"npm","fixed":["4.3.9"],"introduced":["4.3.0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-353f-5xf4-qw67"}],"prev":{"headline":"Kyverno resource with a deletionTimestamp may allow policy circumvention","id":"CVE-2023-34091"},"products":["vite"],"published":"2023-06-01","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":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":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-01-08","vendors":["vitejs"]},"summary":"Attackers can bypass file access restrictions to read sensitive files from the project root if the Vite dev server is exposed to the network.","url":"https://insights.sbomify.com/CVE-2023-34092/"}