cve.bz

CVE-2025-62522 vitejs vite: Path traversal

6.0 mediumEPSS 1.0%Fix available

Medium (6.0) in vitejs vite. EPSS 1.0% estimated probability of exploitation activity in the next 30 days. Fixed in vite 5.4.21, 6.4.1, 7.0.8.

On this page
Vite is a frontend tooling framework for JavaScript. In versions from 2.9.18 to before 3.0.0, 3.2.9 to before 4.0.0, 4.5.3 to before 5.0.0, 5.2.6 to before 5.4.21, 6.0.0 to before 6.4.1, 7.0.0 to before 7.0.8, and 7.1.0 to before 7.1.11, files denied by server.fs.deny were sent if the URL ended with \ when the dev server is running on Windows. Only apps explicitly exposing the Vite dev server to the network and running the dev server on Windows were affected. This issue has been patched in versions 5.4.21, 6.4.1, 7.0.8, and 7.1.11.

Severity

CVSS 4.0

6.0 medium
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
EPSS
1.0% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 65th 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-10-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • vite (npm): fixed in 7.1.11, 7.0.8, 6.4.1, 5.4.21

Ask an AI about this CVE

Show the promptExplain CVE-2025-62522 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-62522?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-62522?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-62522 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 CNA's record in the CVE List.

ProductAffected
vitejs vite>= 7.1.0, < 7.1.11
vitejs vite>= 7.0.0, < 7.0.8
vitejs vite>= 6.0.0, < 6.4.1
vitejs vite>= 5.2.6, < 5.4.21
vitejs vite>= 4.5.3, < 5.0.0
vitejs vite>= 3.2.9, < 4.0.0
vitejs vite>= 2.9.18, < 3.0.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-93m4-6634-74q7npmvite>=7.1.0 <7.1.117.1.11
GHSA-93m4-6634-74q7npmvite>=7.0.0 <7.0.87.0.8
GHSA-93m4-6634-74q7npmvite>=6.0.0 <6.4.16.4.1
GHSA-93m4-6634-74q7npmvite>=2.9.18 <5.4.215.4.21
GHSA-93m4-6634-74q7npmvite>=3.2.9 <5.4.215.4.21
GHSA-93m4-6634-74q7npmvite>=4.5.3 <5.4.215.4.21
GHSA-93m4-6634-74q7npmvite>=5.2.6 <5.4.215.4.21

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2automation-controllerNot affected
Red Hat Ansible Automation Platform 2automation-eda-controllerNot affected
Red Hat Ansible Automation Platform 2automation-gatewayNot affected
Red Hat JBoss Enterprise Application Platform 8org.keycloak-keycloak-parentNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packorg.keycloak-keycloak-parentNot affected
Red Hat OpenShift Dev Spacesdevspaces/traefik-rhel9Not affected

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-62522.

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.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON