Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query (vitejs vite)
At a glance
- Source
- NVD
- EPSS
- EPSS 74.94 % Β· percentile 100 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- Affected products
- vitejs Β· vite
- NVD status
- Analyzed
Description
Vite is a frontend tooling framework for javascript. Vite exposes content of non-allowed files using ?inline&import or ?raw?import. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected. This vulnerability is fixed in 6.2.4, 6.1.3, 6.0.13, 5.4.16, and 4.5.11.
Weaknesses (CWE)
- CWE-200 β Exposure of Sensitive Information to an Unauthorized Actor
- CWE-284 β Improper Access Control
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N | GitHub_M |
| CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N | 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) |
Advisories
- GHSA-4r4m-qw57-chr8 β Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query
European references
- ENISA EUVD Β· EUVD-2025-8866
- GCVE Β· GCVE-0-2025-31125
Affected configurations (NVD CPE)
cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*< 4.5.11cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*β₯ 5.0.0 < 5.4.16cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*β₯ 6.0.0 < 6.0.13cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*β₯ 6.1.0 < 6.1.3cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*β₯ 6.2.0 < 6.2.4
Affected products
| Product | Affected versions |
|---|---|
| vitejs Β· vite | affected : >= 6.2.0, < 6.2.4 affected : >= 6.1.0, < 6.1.3 affected : >= 6.0.0, < 6.0.13 affected : >= 5.0.0, < 5.4.16 affected : < 4.5.11 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| CISA Known Exploited Vulnerabilities | CC0 1.0 |
| EPSS (FIRST.org) | FIRST β attribution requested |
| ENISA EUVD | ENISA β reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain β this product uses data from the NVD API but is not endorsed or certified by the NVD |