Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-39364

Vite: `server.fs.deny` bypassed with queries
Back to all
CVE

CVE-2026-39364

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

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

   <img width="3944" height="1092" alt="image" src="https://github.com/user-attachments/assets/ecb9f2e0-e08f-4ac7-b194-e0f988c4cd4f" />

  1. Confirm that the same files can be retrieved with query parameters (expect 200):

   <img width="2014" height="373" alt="image" src="https://github.com/user-attachments/assets/76bc2a6a-44f4-4161-ae47-eab5ae0c04a8" />

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
8.2
-
4.0
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
C
H
U
0
-
C
H
U
7.5
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Related Resources

No items found.

References

https://github.com/vitejs/vite/security/advisories/GHSA-v2wj-q39q-566r, https://nvd.nist.gov/vuln/detail/CVE-2026-39364, https://github.com/vitejs/vite/pull/22160, https://github.com/vitejs/vite/commit/a9a3df299378d9cbc5f069e3536a369f8188c8ff, https://github.com/vitejs/vite, https://github.com/vitejs/vite/releases/tag/v7.3.2, https://github.com/vitejs/vite/releases/tag/v8.0.5

Severity

7.5

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
7.5
EPSS Probability
0.05147%
EPSS Percentile
0.90088%
Introduced Version
8.0.0,8.0.0-beta.0,8.0.0-beta.13,7.1.11,7.1.0,7.1.0-beta.0,0
Fix Available
8.0.5,7.3.2,8.0.11-r0,22.0.4-r9,23.0.3-r11

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading