CVE-2023-34092
HIGH 7.5CVSS 3.1Vite Server Options (server.fs.deny) can be bypassed using double forward-slash (//)
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.
- Published
- 1 Jun 2023
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-200CWE-50CWE-706
- Also known as
- GHSA-353f-5xf4-qw67
- Sources
- NVDJSONOSV GHSA-353f-5xf4-qw67JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vitejs | vitecpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:* |
>= 3.0.2, < 3.2.7 | 3.2.7 |
| NVD | vitejs | vitecpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:* |
>= 4.0.0, < 4.0.5 | 4.0.5 |
| NVD | vitejs | vitecpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:* |
>= 4.1.0, < 4.1.5 | 4.1.5 |
| NVD | vitejs | vitecpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:* |
>= 4.2.0, < 4.2.3 | 4.2.3 |
| NVD | vitejs | vitecpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:* |
>= 4.3.0, < 4.3.9 | 4.3.9 |
| NVD | vitejs | vitecpe:2.3:a:vitejs:vite:2.9.15:*:*:*:*:node.js:*:* |
= 2.9.15 | |
| OSV | npm | vite | < 2.9.16 | 2.9.16 |
| OSV | npm | vite | >= 3.0.2, < 3.2.7 | 3.2.7 |
| OSV | npm | vite | >= 4.0.0, < 4.0.5 | 4.0.5 |
| OSV | npm | vite | >= 4.1.0, < 4.1.5 | 4.1.5 |
| OSV | npm | vite | >= 4.2.0, < 4.2.3 | 4.2.3 |
| OSV | npm | vite | >= 4.3.0, < 4.3.9 | 4.3.9 |
References
- https://github.com/vitejs/vite/commit/813ddd6155c3d54801e264ba832d8347f6f66b32 · Patch, WEB
- https://github.com/vitejs/vite/pull/13348 · Patch, WEB
- https://github.com/vitejs/vite/security/advisories/GHSA-353f-5xf4-qw67 · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-34092 · ADVISORY
- https://github.com/vitejs/vite · PACKAGE
- https://security.snyk.io/package/npm/vite/3.2.0-beta.4 · WEB
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 1 Jun 2023)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 6 Jun 2023)