Read the docs
TI-2025-29278 Aliases CVE-2025-46565GHSA-859w-5945-r5v3

Vite's server.fs.deny bypassed with /. for files under project root

Priority MEDIUM 60CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
Present
Impact type
Information disclosure
Confidentiality · integrity · availability
High · None · None
Fix status
Partial Red Hat: 3 without a fix

Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-22 and the CVSS impact.

Summary

Vite is a frontend tooling framework for javascript. Prior to versions 6.3.4, 6.2.7, 6.1.6, 5.4.19, and 4.5.14, the contents of files in the project root that are denied by a file matching pattern can be returned to the browser. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected. Only files that are under project root and are denied by a file matching pattern can be bypassed. `server.fs.deny` can contain patterns matching against files (by default it includes .env, .env.*, *.{crt,pem} as such patterns). These patterns were able to bypass for files under `root` by using a combination of slash and dot (/.). This issue has been patched in versions 6.3.4, 6.2.7, 6.1.6, 5.4.19, and 4.5.14.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01243 69th percentileScored 2026-11-08
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial vite (vitejs): 6.3.4, 6.2.7, 6.1.6 +2vite (npm): 6.3.4, 6.2.7, 6.1.6 +2Red Hat: 3 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
vitejsvite6.3.0 to before 6.3.4; 6.2.0 to before 6.2.7; 6.0.0 to before 6.1.6; 5.0.0 to before 5.4.19; before 4.5.146.3.4, 6.2.7, 6.1.6, 5.4.19, 4.5.14Patch availableCNA
—vite (npm)6.3.0 to before 6.3.46.3.4Patch availableGHSA-859w-5945-r5v3
—vite (npm)6.2.0 to before 6.2.76.2.7Patch availableGHSA-859w-5945-r5v3
—vite (npm)6.0.0 to before 6.1.66.1.6Patch availableGHSA-859w-5945-r5v3
—vite (npm)5.0.0 to before 5.4.195.4.19Patch availableGHSA-859w-5945-r5v3
—vite (npm)before 4.5.144.5.14Patch availableGHSA-859w-5945-r5v3
  • vite Vendorvitejs Affected 6.3.0 to before 6.3.4; 6.2.0 to before 6.2.7; 6.0.0 to before 6.1.6; 5.0.0 to before 5.4.19; before 4.5.14 Fixed in 6.3.4, 6.2.7, 6.1.6, 5.4.19, 4.5.14 Patch available CNA
  • vite (npm) Vendor— Affected 6.3.0 to before 6.3.4 Fixed in 6.3.4 Patch available GHSA-859w-5945-r5v3
  • vite (npm) Vendor— Affected 6.2.0 to before 6.2.7 Fixed in 6.2.7 Patch available GHSA-859w-5945-r5v3
  • vite (npm) Vendor— Affected 6.0.0 to before 6.1.6 Fixed in 6.1.6 Patch available GHSA-859w-5945-r5v3
  • vite (npm) Vendor— Affected 5.0.0 to before 5.4.19 Fixed in 5.4.19 Patch available GHSA-859w-5945-r5v3
  • vite (npm) Vendor— Affected before 4.5.14 Fixed in 4.5.14 Patch available GHSA-859w-5945-r5v3

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*before 4.5.14; 5.0.0 to before 5.4.19; 6.0.0 to before 6.1.6; 6.2.0 to before 6.2.7; 6.3.0 to before 6.3.4Vulnerablevitejs
  • cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:* Versions before 4.5.14; 5.0.0 to before 5.4.19; 6.0.0 to before 6.1.6; 6.2.0 to before 6.2.7; 6.3.0 to before 6.3.4 Vulnerable ·vitejs

Remediation

  • Fix · CNA vite (vitejs) Fixed in 6.3.4, 6.2.7, 6.1.6, 5.4.19, 4.5.14
  • Fix · GHSA-859w-5945-r5v3 vite (npm) Fixed in 6.3.4 Advisory →
  • Fix · GHSA-859w-5945-r5v3 vite (npm) Fixed in 6.2.7 Advisory →
  • Fix · GHSA-859w-5945-r5v3 vite (npm) Fixed in 6.1.6 Advisory →
  • Fix · GHSA-859w-5945-r5v3 vite (npm) Fixed in 5.4.19 Advisory →
  • Fix · GHSA-859w-5945-r5v3 vite (npm) Fixed in 4.5.14 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Ansible Automation Platform 2AffectedNo fix yet: Fix deferred
Red Hat JBoss Enterprise Application Platform 8AffectedNo fix yet: Fix deferred
Red Hat JBoss Enterprise Application Platform Expansion PackAffectedNo fix yet: Fix deferred

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-46565
  2. 2026-10-03 Alias added: GHSA-859w-5945-r5v3

References

  • TI-2025-22386 Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query KEVCVSS 3.1HIGH 7.5
  • TI-2026-28350 Vite Affected by Arbitrary File Read via Vite Dev Server WebSocket CVSS 4.0HIGH 8.2
  • TI-2025-21544 Vite bypasses server.fs.deny when using `?raw??` CVSS 3.1HIGH 7.5
  • TI-2023-16938 Vite Server Options (server.fs.deny) can be bypassed using double forward-slash (//) CVSS 3.1HIGH 7.5
  • TI-2026-38634 Vite: `server.fs.deny` bypass on Windows alternate paths CVSS 4.0HIGH 8.2
  • TI-2026-28352 Vite has a Path Traversal in Optimized Deps `.map` Handling CVSS 4.0MEDIUM 6.3
See all 13 →

Sources