cve.bz

CVE-2025-58752 vitejs vite: Relative Path Traversal

2.3 lowExploit referenceEPSS 0.6%Fix available

Low (2.3) in vitejs vite. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in vite 5.4.20, 6.3.6, 7.0.7.

On this page
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.

Severity

CVSS 4.0

2.3 low
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

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 50th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-09-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-23 Relative Path Traversal
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
CWE-284 Improper Access Control
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-58752 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-58752?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-58752?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-58752 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
vitejs:vitebefore 5.4.20
vitejs:vitefrom 6.0.0 before 6.3.6
vitejs:vitefrom 7.0.0 before 7.0.7
vitejs:vitefrom 7.1.0 before 7.1.5

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-jqfw-vq24-v9c3npmvite>=7.1.0 <7.1.57.1.5
GHSA-jqfw-vq24-v9c3npmvite>=7.0.0 <7.0.77.0.7
GHSA-jqfw-vq24-v9c3npmvite>=6.0.0 <6.3.66.3.6
GHSA-jqfw-vq24-v9c3npmvite<5.4.205.4.20

Red Hat

Red Hat rates this Low.

Red Hat's statement

This issue is rated Low severity as it only allows unintended disclosure of HTML files and does not impact system integrity or availability.

Exploitation requires specific conditions: the application must explicitly expose the Vite dev server to the network (via --host or server.host), and must be configured as appType: 'spa' (default) or appType: 'mpa'.

The vulnerability also affects the preview server, which may serve HTML files outside of the designated output directory.

Red Hat's mitigation

* Avoid exposing the dev or preview server to untrusted networks.

* Disable or restrict HTML fallback handlers if possible.

* Carefully review server.fs.allow / server.fs.deny settings to minimize exposure.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2automation-controllerFix deferred
Red Hat Ansible Automation Platform 2automation-eda-controllerFix deferred
Red Hat Ansible Automation Platform 2automation-gatewayFix deferred
Red Hat JBoss Enterprise Application Platform 8org.keycloak-keycloak-parentFix deferred
Red Hat JBoss Enterprise Application Platform Expansion Packorg.keycloak-keycloak-parentFix deferred
Red Hat OpenShift Dev Spacesdevspaces/traefik-rhel9Fix deferred
Red Hat OpenShift distributed tracing 3rhosdt/jaeger-agent-rhel8Fix deferred
Red Hat OpenShift distributed tracing 3rhosdt/jaeger-all-in-one-rhel8Fix deferred
Red Hat OpenShift distributed tracing 3rhosdt/jaeger-collector-rhel8Fix deferred
Red Hat OpenShift distributed tracing 3rhosdt/jaeger-es-index-cleaner-rhel8Fix deferred
Red Hat OpenShift distributed tracing 3rhosdt/jaeger-es-rollover-rhel8Fix deferred
Red Hat OpenShift distributed tracing 3rhosdt/jaeger-ingester-rhel8Fix deferred
Red Hat OpenShift distributed tracing 3rhosdt/jaeger-operator-bundleFix deferred
Red Hat OpenShift distributed tracing 3rhosdt/jaeger-query-rhel8Fix deferred
Red Hat OpenShift distributed tracing 3rhosdt/jaeger-rhel8-operatorFix deferred
Red Hat OpenShift distributed tracing 3rhosdt/tempo-jaeger-query-rhel8Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-58752.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-071-03Siemens SIDIS Prime2026-03-10Critical ManufacturingSIDIS Primenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-139 Relative Path Traversal Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-284 (17), CWE-200 (59).

References

Check your stackJSON