---
title: "GHSA-8g5g-mxqh-grgj: Vite: `server.fs.deny` bypassed with queries"
description: "Moderate severity. Vite: `server.fs.deny` bypassed with queries. Affects vite; fixed in 6.4.5."
url: https://inlinr.com/advisories/GHSA-8g5g-mxqh-grgj
lang: en
---

[Packages](https://inlinr.com/packages) / [vite](https://inlinr.com/packages/vite) / [Security](https://inlinr.com/packages/vite/security)

Moderate Vulnerability GHSA-8g5g-mxqh-grgj CVE-2026-118662 Published 29 Oct 2026

# Vite: \`server.fs.deny\` bypassed with queries

Your version 

Affected releases · [vite](https://inlinr.com/packages/vite)

- 6.x 6.4.4 Fixed in 6.4.5

On 6.x, the newest line:

```
npm install vite@6.4.5
```

Every release on a timeline

8.x 

1. Not affected

8.0.0 – 8.3.8  
39 releases, latest

6.x 

1. Not affected

6.0.0 – 6.4.3  
43 releases
2. Affected

6.4.4  
1 release
3. Fixed

6.4.5 – 6.4.6  
2 releases

447 stable releases of vite, oldest to newest, one row per major.

## What happens

Summary

The contents of files that are specified by [server.fs.deny](https://vite.dev/config/server-options#server-fs-deny "https://vite.dev/config/server-options#server-fs-deny") can be returned to the browser. This is the same as [github.com/vitejs/vite/security/advisories/GHSA…](https://github.com/vitejs/vite/security/advisories/GHSA-v2wj-q39q-566r "https://github.com/vitejs/vite/security/advisories/GHSA-v2wj-q39q-566r").

Impact

Only apps that match the following conditions are affected:

- explicitly exposes the Vite dev server to the network (using `--host` or [server.host config option](https://vitejs.dev/config/server-options.html#server-host "https://vitejs.dev/config/server-options.html#server-host"))
- the sensitive file exists in the allowed directories specified by [server.fs.allow](https://vite.dev/config/server-options#server-fs-allow "https://vite.dev/config/server-options#server-fs-allow")
- the sensitive file is denied with a pattern that matches a file by [server.fs.deny](https://vite.dev/config/server-options#server-fs-deny "https://vite.dev/config/server-options#server-fs-deny")

Details

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.

For the fix for [github.com/vitejs/vite/security/advisories/GHSA…](https://github.com/vitejs/vite/security/advisories/GHSA-rq7h-c2jc-7f22 "https://github.com/vitejs/vite/security/advisories/GHSA-rq7h-c2jc-7f22"), v6.4.4 back-ported [#20410](https://github.com/vitejs/vite/pull/20410 "https://github.com/vitejs/vite/pull/20410"). But while that PR requires [#22160](https://github.com/vitejs/vite/pull/22160 "https://github.com/vitejs/vite/pull/22160") for [github.com/vitejs/vite/security/advisories/GHSA…](https://github.com/vitejs/vite/security/advisories/GHSA-v2wj-q39q-566r "https://github.com/vitejs/vite/security/advisories/GHSA-v2wj-q39q-566r"), [#22160](https://github.com/vitejs/vite/pull/22160 "https://github.com/vitejs/vite/pull/22160") wasn't back-ported together causing v6 vulnerable to [github.com/vitejs/vite/security/advisories/GHSA…](https://github.com/vitejs/vite/security/advisories/GHSA-v2wj-q39q-566r "https://github.com/vitejs/vite/security/advisories/GHSA-v2wj-q39q-566r").

## How it is exploited

Exploitable over the network, with no account and no action from a user.

- **Confidentiality**: low
- **Integrity**: none
- **Availability**: none

CVSS:4.0/​AV:N/​AC:L/​AT:P/​PR:N/​UI:N/​VC:L/​VI:N/​VA:N/​SC:H/​SI:N/​SA:N

## References

- [Reference](https://github.com/vitejs/vite/security/advisories/GHSA-8g5g-mxqh-grgj "https://github.com/vitejs/vite/security/advisories/GHSA-8g5g-mxqh-grgj")  
github.com/vitejs/vite/security/advisories/GHSA…
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-118662 "https://nvd.nist.gov/vuln/detail/CVE-2026-118662")  
nvd.nist.gov/vuln/detail/CVE-2026-118662
- [Pull request](https://github.com/vitejs/vite/pull/22160 "https://github.com/vitejs/vite/pull/22160")  
#22160
- [Pull request](https://github.com/vitejs/vite/pull/23855 "https://github.com/vitejs/vite/pull/23855")  
#23855
- [Fix commit](https://github.com/vitejs/vite/commit/91e40d7bf9777057bbd31c3eb036a54c9465697e "https://github.com/vitejs/vite/commit/91e40d7bf9777057bbd31c3eb036a54c9465697e")  
91e40d7
- [Package](https://github.com/vitejs/vite "https://github.com/vitejs/vite")  
github.com/vitejs/vite
- [Reference](https://github.com/vitejs/vite/releases/tag/v6.4.5 "https://github.com/vitejs/vite/releases/tag/v6.4.5")  
github.com/vitejs/vite/releases/tag/v6.4.5

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
