CVE-2025-58752 json
Vite's `server.fs` settings were not applied to HTML files
published 2025-09-08 14 mo ago modified 2026-09-30 39 d ago also EUVD-2025-27180 , GHSA-jqfw-vq24-v9c3
- cvss
- 5.3
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 49%
- public exploits
- 0
- none known
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, any HTML files on the machine were served regardless of the `server.fs` settings. Only apps that explicitly expose the Vite dev server to the network (using --host or server.host config option) and use `appType: 'spa'` (default) or `appType: 'mpa'` are affected. This vulnerability also affects the preview server. The preview server allowed HTML files not under the output directory to be served. 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/vitejs/vite@0ab19ea commit
- github.com/vitejs/vite@14015d7 commit
- github.com/vitejs/vite@482000f commit
- github.com/vitejs/vite@6f01ff4 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-58752 updated cvss 3.7
vite: Vite's `server.fs` settings were not applied to HTML files
-
Red Hat Ansible Automation Platform 2 automation-gateway, automation-controller, automation-eda-controller 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 Dev Spaces devspaces/traefik-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 moreaffected: workaround, no fix available “Fix deferred”
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
0.61% chance of exploitation in the next 30 days, higher than 49% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/vitejs/vite/security/advisories/GHSA-jqfw-vq24-v9c3 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
/vitejs/vite/commit/0ab19ea9fcb66f544328f442cf6e70f7c0528d5f
web, patch
-
github.com
/vitejs/vite/commit/14015d794f69accba68798bd0e15135bc51c9c1e
web, patch
-
github.com
/vitejs/vite/commit/482000f57f56fe6ff2e905305100cfe03043ddea
web, patch
-
github.com
/vitejs/vite/commit/6f01ff4fe072bcfcd4e2a84811772b818cd51fe6
web, patch
-
github.com
/vitejs/vite/security/advisories/GHSA-jqfw-vq24-v9c3
exploit, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-58752
advisory
-
github.com
/vitejs/vite
package
-
github.com
/vitejs/vite/blob/v7.1.5/packages/vite/CHANGELOG.md
web
Sources
- CVE List CVE-2025-58752
- GitHub Advisory GHSA-jqfw-vq24-v9c3
- NVD CVE-2025-58752
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.