NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

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

highCVSS 4.0 8.2GHSA-v2wj-q39q-566r

Summary The contents of files that are specified by server.fs.deny can be returned to the browser. 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) - the sensitive file exists in the allowed directories specified by server.fs.allow - the sensitive file is denied with a pattern that matches a file by…

Published Apr 6, 2026 · Updated Apr 7, 2026

Affected packages

vite

Ecosystem
npm
Affected
>= 8.0.0, <= 8.0.4
Fixed in
8.0.5
Check
npm ls vite

vite

Ecosystem
npm
Affected
>= 7.1.0, <= 7.3.1
Fixed in
7.3.2
Check
npm ls vite

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Summary

The contents of files that are specified by `server.fs.deny` can be returned to the browser.

Impact

Only apps that match the following conditions are affected:

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.

PoC

  1. Start the dev server: pnpm exec vite root --host 127.0.0.1 --port 5175 --strictPort
  2. Confirm that server.fs.deny is enforced (expect 403): curl -i http://127.0.0.1:5175/src/.env | head -n 20
  1. Confirm that the same files can be retrieved with query parameters (expect 200):

Credited to odgrso, ritikchaddha, neo-ai-engineer, instantraaamen, fg0x0, jonathanwd, kq5y, bluwy.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries