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

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, Vite. 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

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.