Read the docs
TI-2025-36409 Aliases CVE-2025-58751GHSA-g4jq-h2w9-997c

Vite middleware may serve files starting with the same name with the public directory

Priority MEDIUM 45CWE-200Published · Updated

Key facts

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

Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-200 and CWE-284.

Summary

Vite is a frontend tooling framework for JavaScript. Prior to versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20, files starting with the same name with the public directory were served bypassing the `server.fs` settings. Only apps that explicitly expose the Vite dev server to the network (using --host or `server.host` config option), use the public directory feature (enabled by default), and have a symlink in the public directory are affected. Versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20 fix the issue.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01214 68th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial vite (vitejs): 5.4.20, 6.3.6, 7.0.7 +1vite (npm): 7.1.5, 7.0.7, 6.3.6 +1Red Hat: 20 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
vitejsvitebefore 5.4.20; 6.0.0 to before 6.3.6; 7.0.0 to before 7.0.7; 7.1.0 to before 7.1.55.4.20, 6.3.6, 7.0.7, 7.1.5Patch availableCNA
—vite (npm)7.1.0 to before 7.1.57.1.5Patch availableGHSA-g4jq-h2w9-997c
—vite (npm)7.0.0 to before 7.0.77.0.7Patch availableGHSA-g4jq-h2w9-997c
—vite (npm)6.0.0 to before 6.3.66.3.6Patch availableGHSA-g4jq-h2w9-997c
—vite (npm)before 5.4.205.4.20Patch availableGHSA-g4jq-h2w9-997c
  • vite Vendorvitejs Affected before 5.4.20; 6.0.0 to before 6.3.6; 7.0.0 to before 7.0.7; 7.1.0 to before 7.1.5 Fixed in 5.4.20, 6.3.6, 7.0.7, 7.1.5 Patch available CNA
  • vite (npm) Vendor— Affected 7.1.0 to before 7.1.5 Fixed in 7.1.5 Patch available GHSA-g4jq-h2w9-997c
  • vite (npm) Vendor— Affected 7.0.0 to before 7.0.7 Fixed in 7.0.7 Patch available GHSA-g4jq-h2w9-997c
  • vite (npm) Vendor— Affected 6.0.0 to before 6.3.6 Fixed in 6.3.6 Patch available GHSA-g4jq-h2w9-997c
  • vite (npm) Vendor— Affected before 5.4.20 Fixed in 5.4.20 Patch available GHSA-g4jq-h2w9-997c

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*before 5.4.20; 6.0.0 to before 6.3.6; 7.0.0 to before 7.0.7; 7.1.0 to before 7.1.5Vulnerablevitejs
  • cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:* Versions before 5.4.20; 6.0.0 to before 6.3.6; 7.0.0 to before 7.0.7; 7.1.0 to before 7.1.5 Vulnerable ·vitejs

Remediation

  • Fix · CNA vite (vitejs) Fixed in 5.4.20, 6.3.6, 7.0.7, 7.1.5
  • Fix · GHSA-g4jq-h2w9-997c vite (npm) Fixed in 7.1.5 Advisory →
  • Fix · GHSA-g4jq-h2w9-997c vite (npm) Fixed in 7.0.7 Advisory →
  • Fix · GHSA-g4jq-h2w9-997c vite (npm) Fixed in 6.3.6 Advisory →
  • Fix · GHSA-g4jq-h2w9-997c vite (npm) Fixed in 5.4.20 Advisory →

Vendor assessments

Red Hat

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

ProductStatusPlan or fix
Cryostat 4AffectedNo fix yet: Fix deferred
Gatekeeper 3AffectedNo fix yet: Fix deferred
Migration Toolkit for VirtualizationAffectedNo fix yet: Fix deferred
Multicluster Engine for KubernetesAffectedNo fix yet: Fix deferred
Multicluster Global HubAffectedNo fix yet: Fix deferred
OpenShift Service Mesh 3AffectedNo fix yet: Fix deferred
Red Hat Advanced Cluster Management for Kubernetes 2AffectedNo fix yet: Fix deferred
Red Hat Ansible Automation Platform 2AffectedNo fix yet: Fix deferred
Red Hat Data Grid 8AffectedNo fix yet: Fix deferred
Red Hat Discovery 1AffectedNo fix yet: Fix deferred
Red Hat Discovery 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
Red Hat OpenShift AI (RHOAI)AffectedNo fix yet: Fix deferred
Red Hat OpenShift Container Platform 4AffectedNo fix yet: Fix deferred
Red Hat OpenShift Dev SpacesAffectedNo fix yet: Fix deferred
Red Hat OpenShift GitOpsAffectedNo fix yet: Fix deferred
Red Hat OpenShift distributed tracing 3AffectedNo fix yet: Fix deferred
Red Hat Openshift Data Foundation 4AffectedNo fix yet: Fix deferred
Red Hat build of Apicurio Registry 2AffectedNo fix yet: Fix deferred

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-58751
  2. 2026-10-03 Alias added: GHSA-g4jq-h2w9-997c

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