Vite: Files outside `server.fs.allow` could be served when project paths match system paths on non-Windows machine
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| vitejs | vite | affected |
|
||||||||||||||||||
| vitejs | vite-plus | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Vitejs | Vite |
|
||||||||||||||||||||||||
| Vitejs | Vite-plus |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-rq7h-c2jc-7f22 | Vite: Files outside `server.fs.allow` could be served when project paths match system paths on non-Windows machine |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.852% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Weaknesses | CWE-552 | |
| References |
| |
| Metrics |
threat_severity
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Vitejs
Vitejs vite Vitejs vite-plus |
|
| Vendors & Products |
Vitejs
Vitejs vite Vitejs vite-plus |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Vite is a frontend tooling framework for JavaScript. Prior to 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3, import analysis can record a root-relative browser URL in safeModulePaths instead of the cleaned resolved module identifier. On a network-accessible, non-Windows development server, an imported project file whose URL matches an absolute host path can authorize a later raw-filesystem request for that host file, provided server.fs.deny does not block it. The request can disclose the matching file outside the project root, but it does not allow arbitrary path traversal because the host path must correspond to a project-relative URL authorized by the application graph. This issue is fixed in versions 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3. | |
| Title | Vite: Files outside `server.fs.allow` could be served when project paths match system paths on non-Windows machine | |
| Weaknesses | CWE-22 CWE-284 |
|
| References |
|
|
| Metrics |
cvssV4_0
|