Vite serves files outside server.fs.allow on non-Windows hosts
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Information disclosure, Security bypass
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Partial Red Hat: 9 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-22, CWE-284 and the CVSS impact.
Summary
Vite before 6.4.4, from 7.0.0 before 7.3.7, from 8.0.0 before 8.1.6, from 8.2.0 before 8.2.4 and from 8.3.0 before 8.3.3 are affected. Import analysis records a root-relative URL instead of the resolved module path, which lets a project file authorize a raw request for a matching host file (CWE-22). On network-accessible development servers on non-Windows systems, an unauthenticated remote attacker can read such a file outside the project root unless server.fs.deny blocks it.
Written with Claude Haiku 5.5 from the sources below · 2026-10-28
Description from the CNA
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.
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.3.0 to before 8.3.3; 8.2.0 to before 8.2.4; 8.0.0 to before 8.1.6; 7.0.0 to before 7.3.7; before 6.4.4 | 8.3.3, 8.2.4, 8.1.6, 7.3.7, 6.4.4 | Patch available | CNA |
| vitejs | vite-plus | before 1.1.0 | 1.1.0 | Patch available | CNA |
| — | vite (npm) | 8.3.0 to before 8.3.3 | 8.3.3 | Patch available | GHSA-rq7h-c2jc-7f22 |
| — | vite (npm) | 8.2.0 to before 8.2.4 | 8.2.4 | Patch available | GHSA-rq7h-c2jc-7f22 |
| — | vite (npm) | 8.0.0 to before 8.1.6 | 8.1.6 | Patch available | GHSA-rq7h-c2jc-7f22 |
| — | vite (npm) | 7.0.0 to before 7.3.7 | 7.3.7 | Patch available | GHSA-rq7h-c2jc-7f22 |
| — | vite (npm) | before 6.4.4 | 6.4.4 | Patch available | GHSA-rq7h-c2jc-7f22 |
| — | vite-plus (npm) | before 1.1.0 | 1.1.0 | Patch available | GHSA-rq7h-c2jc-7f22 |
- vite Vendorvitejs Affected 8.3.0 to before 8.3.3; 8.2.0 to before 8.2.4; 8.0.0 to before 8.1.6; 7.0.0 to before 7.3.7; before 6.4.4 Fixed in 8.3.3, 8.2.4, 8.1.6, 7.3.7, 6.4.4 Patch available CNA
- vite-plus Vendorvitejs Affected before 1.1.0 Fixed in 1.1.0 Patch available CNA
- vite (npm) Vendor— Affected 8.3.0 to before 8.3.3 Fixed in 8.3.3 Patch available GHSA-rq7h-c2jc-7f22
- vite (npm) Vendor— Affected 8.2.0 to before 8.2.4 Fixed in 8.2.4 Patch available GHSA-rq7h-c2jc-7f22
- vite (npm) Vendor— Affected 8.0.0 to before 8.1.6 Fixed in 8.1.6 Patch available GHSA-rq7h-c2jc-7f22
- vite (npm) Vendor— Affected 7.0.0 to before 7.3.7 Fixed in 7.3.7 Patch available GHSA-rq7h-c2jc-7f22
- vite (npm) Vendor— Affected before 6.4.4 Fixed in 6.4.4 Patch available GHSA-rq7h-c2jc-7f22
- vite-plus (npm) Vendor— Affected before 1.1.0 Fixed in 1.1.0 Patch available GHSA-rq7h-c2jc-7f22
Remediation
Upgrade Vite to 6.4.4, 7.3.7, 8.1.6, 8.2.4 or 8.3.3, and upgrade vite-plus to 1.1.0. The sources list no fixed version for Red Hat AMQ Broker 7, Red Hat Ansible Automation Platform 2, Red Hat Build of Keycloak and other products.
Written with Claude Haiku 5.5 from the sources below · 2026-10-28
- Fix · CNA vite (vitejs) Fixed in 8.3.3, 8.2.4, 8.1.6, 7.3.7, 6.4.4
- Fix · CNA vite-plus (vitejs) Fixed in 1.1.0
- Fix · GHSA-rq7h-c2jc-7f22 vite (npm) Fixed in 8.3.3 Advisory →
- Fix · GHSA-rq7h-c2jc-7f22 vite (npm) Fixed in 8.2.4 Advisory →
- Fix · GHSA-rq7h-c2jc-7f22 vite (npm) Fixed in 8.1.6 Advisory →
- Fix · GHSA-rq7h-c2jc-7f22 vite (npm) Fixed in 7.3.7 Advisory →
- Fix · GHSA-rq7h-c2jc-7f22 vite (npm) Fixed in 6.4.4 Advisory →
- Fix · GHSA-rq7h-c2jc-7f22 vite-plus (npm) Fixed in 1.1.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat AMQ Broker 7 | Affected | No fix yet: Fix deferred |
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet: Fix deferred |
| Red Hat Build of Keycloak | Affected | No fix yet: Fix deferred |
| Red Hat Build of Podman Desktop | Affected | No fix yet: Fix deferred |
| Red Hat JBoss Enterprise Application Platform 8 | Affected | No fix yet: Fix deferred |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Dev Spaces | Affected | No fix yet: Fix deferred |
| Red Hat Trusted Artifact Signer | Affected | No fix yet: Fix deferred |
Not affected: 1 product
- Red Hat Hardened Images
Timeline
- 2026-10-20 Threatist record created from CVE-2026-112946
- 2026-10-20 CISA SSVC decision points changed
- 2026-10-21 Affected versions changed · Red Hat
- 2026-10-21 CVSS score added · Red Hat
- 2026-10-21 Alias added: GHSA-rq7h-c2jc-7f22
- 2026-10-21 Fix available: npm/[email protected], npm/[email protected], npm/[email protected] +3 · GHSA-rq7h-c2jc-7f22
- 2026-10-21 CVSS score added · GHSA-rq7h-c2jc-7f22
- 2026-10-21 Weakness changed · GHSA-rq7h-c2jc-7f22
- 2026-10-21 9 new references · GHSA-rq7h-c2jc-7f22
References
Other 8
- https://github.com/vitejs/vite/security/advisories/GHSA-rq7h-c2jc-7f22
- https://github.com/vitejs/vite/pull/23656
- https://github.com/vitejs/vite/commit/170b92791421bcd484f7325936d989a82d6bd4aa
- https://github.com/vitejs/vite/commit/45c0e3392a298626955a0ab93a8e51232daac721
- https://github.com/vitejs/vite/commit/c3e06f92e969952466b4e2f5801e85e1e00cd905
- https://github.com/vitejs/vite/commit/e570d8d016096b5f8f6f09808376ca6cf73f27d0
- https://github.com/vitejs/vite/commit/f0d76c7da13d5e794807b82f0b86c1931a8438e3
- https://github.com/vitejs/vite
More vitejs vulnerabilities
- TI-2025-22386 Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query KEVCVSS 3.1HIGH 7.5
- TI-2025-41248 Code injection in vitejs vite-plugin-react CVSS 3.1CRITICAL 9.8
- TI-2026-28350 Vite Affected by Arbitrary File Read via Vite Dev Server WebSocket CVSS 4.0HIGH 8.2
- TI-2025-41735 @vitejs/plugin-rsc has Arbitrary File Read via `/__vite_rsc_findSourceMapURL` Endpoint on Development CVSS 3.1HIGH 7.5
- 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
Sources
- CVE-2026-112946 · CVE Program
- CVE-2026-112946 · NVD
- FIRST EPSS
- GHSA-rq7h-c2jc-7f22 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-112946 · 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