# CVE-2026-118662: Vite development server file access bypass via query parameters

Source: https://junglewise.ai/threats/cve-2026-118662-vite-is-a-frontend-tooling-framework-for-javascript-from-6-4-4  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-28. Updated: 2026-10-28  
License: CC BY 4.0 with a link back

CVE-2026-118662 · Severity: medium · CVSS 4 · Published 2026-10-28

Vite is a frontend development tool that serves JavaScript applications during development. When Vite's development server is exposed to a network, an attacker can append query parameters like ?raw or ?import&raw to bypass file access restrictions and retrieve files that should be denied, potentially exposing sensitive source code or configuration files.

Technologies: [Vite](https://junglewise.ai/threats/technologies/vite), [Vite](https://junglewise.ai/threats/technologies/npm-vite). Vendors: [Vite](https://junglewise.ai/threats/vendors/vite).

## Quick answers

**Is CVE-2026-118662 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-118662 being exploited in the wild.

**How severe is CVE-2026-118662?** Medium severity, with a CVSS score of 4, published 28 October 2026.

**Which products and versions are affected?** Vite 6.4.4; Vite = 6.4.4, SEMVER:introduced=6.4.4,fixed=6.4.5.

**Is there a fix for CVE-2026-118662?** Yes. Vite: upgrade to 6.4.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-118662 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-118662?** Check whether you run Vite or Vite at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Vite: upgrade to 6.4.5 or later

## Technical details

The Vite development server checks file access restrictions (server.fs.deny) against URLs after query parameters have been stripped, but does not re-check against the original URL with query parameters intact. An unauthenticated attacker can append loader query parameters (?raw, ?import&raw, ?import&url&inline) to bypass the access control check and retrieve denied files that match server.fs.allow. The fix re-validates access against both the cleaned URL and the original URL with query parameters.

## Affected products

- Vite Vite 6.4.4

## Identifiers

- CVE-2026-118662
- GHSA-8g5g-mxqh-grgj

## Timeline

- 2026-10-28: disclosed
- 2026-04-06: patched

## References

- [https://github.com/vitejs/vite/commit/91e40d7bf9777057bbd31c3eb036a54c9465697e](https://github.com/vitejs/vite/commit/91e40d7bf9777057bbd31c3eb036a54c9465697e)
- [https://github.com/vitejs/vite/pull/22160](https://github.com/vitejs/vite/pull/22160)

## Related threats

- [Vite information disclosure via WebAssembly query parameter](https://junglewise.ai/threats/cve-2026-112947-vite-is-a-frontend-tooling-framework-for-javascript-from-8-2-0)
- [Vite import analysis filesystem disclosure](https://junglewise.ai/threats/cve-2026-112946-vite-is-a-frontend-tooling-framework-for-javascript-prior-to-6-4)
- [Vite path traversal in transformIndexHtml](https://junglewise.ai/threats/cve-2026-112945-vite-is-a-frontend-tooling-framework-for-javascript-prior-to-6-4)
- [launch-editor command injection in editor invocation](https://junglewise.ai/threats/cve-2026-112944-launch-editor-allows-users-to-open-files-with-line-numbers-in)
- [launch-editor command injection via unescaped environment variables on Windows](https://junglewise.ai/threats/cve-2026-112943-launch-editor-allows-users-to-open-files-with-line-numbers-in)
