Vite has a `server.fs.deny` bypass with queries
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 1 fixed, 4 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-284.
Summary
Vite is a frontend tooling framework for JavaScript. From 7.1.0 to before 7.3.2 and 8.0.5, on the Vite dev server, files that should be blocked by server.fs.deny (e.g., .env, *.crt) can be retrieved with HTTP 200 responses when query parameters such as ?raw, ?import&raw, or ?import&url&inline are appended. This vulnerability is fixed in 7.3.2 and 8.0.5.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| vitejs | vite | 8.0.0 to before 8.0.5; 7.1.0 to before 7.3.2 | 8.0.5, 7.3.2 | Patch available | CNA |
| vitejs | vite-plus | before 0.1.16 | 0.1.16 | Patch available | CNA |
| — | vite (npm) | 8.0.0 to before 8.0.5 | 8.0.5 | Patch available | GHSA-v2wj-q39q-566r |
| — | vite (npm) | 7.1.0 to before 7.3.2 | 7.3.2 | Patch available | GHSA-v2wj-q39q-566r |
- vite Vendorvitejs Affected 8.0.0 to before 8.0.5; 7.1.0 to before 7.3.2 Fixed in 8.0.5, 7.3.2 Patch available CNA
- vite-plus Vendorvitejs Affected before 0.1.16 Fixed in 0.1.16 Patch available CNA
- vite (npm) Vendor— Affected 8.0.0 to before 8.0.5 Fixed in 8.0.5 Patch available GHSA-v2wj-q39q-566r
- vite (npm) Vendor— Affected 7.1.0 to before 7.3.2 Fixed in 7.3.2 Patch available GHSA-v2wj-q39q-566r
Remediation
- Fix · CNA vite (vitejs) Fixed in 8.0.5, 7.3.2
- Fix · CNA vite-plus (vitejs) Fixed in 0.1.16
- Fix · GHSA-v2wj-q39q-566r vite (npm) Fixed in 8.0.5 Advisory →
- Fix · GHSA-v2wj-q39q-566r vite (npm) Fixed in 7.3.2 Advisory →
Red Hat 1 advisory
- RHSA-2026:24866 Released 2026-06-09 · Red Hat rating CriticalRed Hat Ansible Automation Platform 2.6 Container Release Update
- Red Hat Ansible Automation Platform 2.6 registry.redhat.io/ansible-automation-platform-26/controller-rhel9, registry.redhat.io/ansible-automation-platform-26/eda-controller-rhel9, registry.redhat.io/ansible-automation-platform-26/ee-supported-rhel9 +7
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet |
| Red Hat Build of Keycloak | Affected | No fix planned: Will not fix |
| Red Hat Build of Podman Desktop | Affected | No fix yet |
| Red Hat Build of Podman Desktop - Tech Preview | Affected | No fix yet |
| Red Hat Ansible Automation Platform 2.6 | Fixed | RHSA-2026:24866 |
Not affected: 6 products
- Red Hat Advanced Cluster Security 4
- Red Hat Ansible Automation Platform 2
- Red Hat Ansible Automation Platform 2.6
- Red Hat JBoss Enterprise Application Platform 8
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat OpenShift Container Platform 4
Timeline
- 2026-10-02 Threatist record created from CVE-2026-39364
- 2026-10-03 Alias added: GHSA-v2wj-q39q-566r
- 2026-11-05 Affected versions changed · Red Hat
References
More vitejs Vite vulnerabilities
- TI-2025-22386 Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query KEVCVSS 3.1HIGH 7.5
- TI-2026-28350 Vite Affected by Arbitrary File Read via Vite Dev Server WebSocket CVSS 4.0HIGH 8.2
- TI-2025-21544 Vite bypasses server.fs.deny when using `?raw??` CVSS 3.1HIGH 7.5
- TI-2023-16938 Vite Server Options (server.fs.deny) can be bypassed using double forward-slash (//) CVSS 3.1HIGH 7.5
- TI-2026-38634 Vite: `server.fs.deny` bypass on Windows alternate paths CVSS 4.0HIGH 8.2
- TI-2026-28352 Vite has a Path Traversal in Optimized Deps `.map` Handling CVSS 4.0MEDIUM 6.3
Sources
- CVE-2026-39364 · CVE Program
- CVE-2026-39364 · NVD
- FIRST EPSS
- GHSA-v2wj-q39q-566r · GitHub Advisory Database · CC BY 4.0
- CVE-2026-39364 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences