CVE-2025-58751 json
Vite middleware may serve files starting with the same name with the public directory
published 2025-09-08 14 mo ago modified 2026-09-10 1 mo ago also EUVD-2025-27181 , GHSA-g4jq-h2w9-997c
- cvss
- 5.3
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 69%
- public exploits
- 0
- none known, plus a Nuclei check
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.
Patch / fix
- npm vite 5.4.20, 6.3.6, 7.0.7, 7.1.5
- vitejs vite 5.4.20, 6.3.6, 7.0.7, 7.1.5
- github.com/lukeed/sirv@f0113f3 commit
- github.com/vitejs/vite@09f2b52 commit
- github.com/vitejs/vite@4f1c35b commit
- github.com/vitejs/vite@63e2a5d commit
- github.com/vitejs/vite@e11d240 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-58751 updated cvss 3.7
vitejs/vite: lukeed/sirv: Vite middleware may serve files starting with the same name with the public directory
-
Red Hat Cryostat 4 io.cryostat-cryostat Red Hat Gatekeeper 3 gatekeeper/gatekeeper-rhel9 Red Hat Migration Toolkit for Virtualization mtv-candidate/mtv-console-plugin-rhel9, migration-toolkit-virtualization/mtv-console-plugin-rhel9 Red Hat Multicluster Engine for Kubernetes multicluster-engine/console-mce-rhel9 Red Hat Multicluster Global Hub multicluster-globalhub/multicluster-globalhub-grafana-rhel9 Red Hat OpenShift Service Mesh 3 openshift-service-mesh/istio-cni-rhel9, openshift-service-mesh/istio-pilot-rhel9, openshift-service-mesh/istio-proxyv2-rhel9, openshift-service-mesh/istio-rhel9-operator, openshift-service-mesh/istio-must-gather-rhel9, openshift-service-mesh/istio-sail-operator-bundle, +1 moreaffected: workaround, no fix available “* Avoid exposing the Vite dev server (--host / server.host) to untrusted networks. * Do not allow symlinks inside the public directory that reference files outside of it.”
+14 more productsfewer
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/console-rhel9, rhacm2/acm-grafana-rhel9 Red Hat Ansible Automation Platform 2 automation-gateway, automation-controller, automation-eda-controller Red Hat build of Apicurio Registry 2 io.apicurio-apicurio-registry Red Hat Data Grid 8 org.infinispan-infinispan-console Red Hat Discovery 1 discovery/discovery-ui-rhel9 Red Hat Discovery 2 discovery/discovery-ui-rhel9 Red Hat JBoss Enterprise Application Platform 8 org.keycloak-keycloak-parent Red Hat JBoss Enterprise Application Platform Expansion Pack org.keycloak-keycloak-parent Red Hat OpenShift AI (RHOAI) rhoai/odh-dashboard-rhel8, rhoai/odh-dashboard-rhel9 Red Hat OpenShift Container Platform 4 openshift4/ose-console-rhel9 Red Hat Openshift Data Foundation 4 odf4/odf-console-rhel9, odf4/ocs-client-console-rhel9, odf4/odf-multicluster-console-rhel9 Red Hat OpenShift Dev Spaces devspaces/traefik-rhel9, devspaces/dashboard-rhel9 Red Hat OpenShift distributed tracing 3 rhosdt/jaeger-agent-rhel8, rhosdt/jaeger-query-rhel8, rhosdt/jaeger-ingester-rhel8, rhosdt/jaeger-rhel8-operator, rhosdt/jaeger-collector-rhel8, rhosdt/jaeger-operator-bundle, +4 more Red Hat OpenShift GitOps openshift-gitops-1/dex-rhel8, openshift-gitops-1/argocd-rhel8, openshift-gitops-1/argocd-rhel9, openshift-gitops-1/gitops-rhel8, openshift-gitops-1/must-gather-rhel8, openshift-gitops-1/argocd-agent-rhel8, +5 more
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-26-071-03 updated cvss 4.3
Siemens SIDIS Prime
-
Siemens SIDIS Prime < 4.0.800affected: fixed in V4.0.800
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 13 mo ago
Exploit prediction
1.26% chance of exploitation in the next 30 days, higher than 69% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Nuclei template Vite Dev Server - Path Traversal nuclei detection template
- github.com https://github.com/vitejs/vite/security/advisories/GHSA-g4jq-h2w9-997c referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 2.3 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N |
| CNA | 4.0 | 2.3 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/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 |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | vite | >=7.1.0, <7.1.5 >=7.0.0, <7.0.7 >=6.0.0, <6.3.6 <5.4.20 |
7.1.5 7.0.7 6.3.6 5.4.20 |
Affected products
- vitejs vite
Classification
References
-
github.com
/lukeed/sirv/commit/f0113f3f8266328d804ee808f763a3c11f8997eb
web, patch
-
github.com
/vitejs/vite/commit/09f2b52e8d5907f26602653caf41b3a56692600d
web, patch
-
github.com
/vitejs/vite/commit/4f1c35bcbb5830290c694aa14b6789e07450f069
web, patch
-
github.com
/vitejs/vite/commit/63e2a5d232218f3f8d852056751e609a5367aaec
web, patch
-
github.com
/vitejs/vite/commit/e11d24008b97d4ca731ecc1a3b95260a6d12e7e0
web, patch
-
github.com
/vitejs/vite/security/advisories/GHSA-g4jq-h2w9-997c
exploit, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-58751
advisory
-
github.com
/vitejs/vite
package
Sources
- CVE List CVE-2025-58751
- GitHub Advisory GHSA-g4jq-h2w9-997c
- NVD CVE-2025-58751
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.