CVE-2026-118662 Vite: `server.fs.deny` bypassed with queries

Medium 6.9 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2026-118662?

CVE-2026-118662 is a medium-severity vulnerability in vitejs vite, published on 28 Oct 2026.

Official description

Vite is a frontend tooling framework for JavaScript. From 6.4.4 until 6.4.5, the Vite development server can evaluate server.fs.deny before stripping loader query parameters such as ?raw, ?import&raw, or ?import&url&inline. When the development server is exposed to the network and a sensitive file is inside server.fs.allow but matched by server.fs.deny, an unauthenticated attacker can append one of these queries and retrieve the denied file. This issue is fixed in version 6.4.5.

Weakness: CWE-284, CWE-180

Which versions are affected by CVE-2026-118662?

2 open source packages ship an affected version, including vite.

PackageAffectedFixed in
vite npmFrom 6.4.46.4.5
vite npmFrom 6.4.46.4.5

How do I fix CVE-2026-118662?

Upgrade vite to 6.4.5 or later.

Is CVE-2026-118662 being exploited?

There is no known exploitation of CVE-2026-118662 in the wild and no public exploit code.

Sources

Also known as GHSA-8g5g-mxqh-grgj.

Is CVE-2026-118662 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free