Relative Path Traversal Affecting vite package, versions <5.4.20>=6.0.0 <6.3.6>=7.0.0 <7.0.7>=7.1.0 <7.1.5


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.05% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Relative Path Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-VITE-12558116
  • published9 Sept 2025
  • disclosed8 Sept 2025
  • creditOri Hollander

Introduced: 8 Sep 2025

NewCVE-2025-58752  (opens in a new tab)
CWE-23  (opens in a new tab)

How to fix?

Upgrade vite to version 5.4.20, 6.3.6, 7.0.7, 7.1.5 or higher.

Overview

vite is a Native-ESM powered web dev build tool

Affected versions of this package are vulnerable to Relative Path Traversal via improper enforcement of server.fs settings. An attacker can access arbitrary HTML files on the server by sending crafted requests to the preview server.

Note: This is only exploitable if the server is explicitly exposed to the network using the --host flag or the server.host configuration option, and the application uses appType set to 'spa' (default) or 'mpa'.

CVSS Base Scores

version 4.0
version 3.1