S4E just found a high-severity finding from top 10 tcp port service scan
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
medium·Product Based Web Vulnerabilities·Updated Oct 12, 2025

CVE-2025-58751 Scanner

CVE-2025-58751 Scanner - Path Traversal vulnerability in Vite Dev Server

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsurl
CostFree
3.3k
Times Used
continuous scan runs
6k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2025-58751
2.3
CVSSlow
Exploitable remotely over the internet · no authentication required.

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.

Attack Vector
Network
Privileges Req.
None
User Interaction
P
Affected
viteby vitejs
< 5.4.20
Updated Sep 9, 2026View on NVD →
Detail

The Vite Dev Server, a critical part of the modern web development workflow, is predominantly used by developers looking for a rapid and efficient way to build and test frontend applications. Its main focus is to provide fast development server capabilities, primarily for JavaScript-based projects. Companies and developers use Vite to handle static assets during development and serve applications over a network. The tooling framework offered by Vite facilitates the building, reliable versioning, and dynamic update of applications in a development environment, contributing to streamlined workflows. The framework is appreciated for its speed and configuration-free nature and supports a variety of modern JavaScript features. It is particularly beneficial for projects requiring constant builds and deployments to ensure features are updated and defect-free.

This vulnerability revolves around a path traversal flaw in the Vite Dev Server, specifically affecting applications exposing the Vite dev server to the network. It allows attackers to access unauthorized files by bypassing certain filesystem restrictions set in place. The issue has been identified in versions prior to 7.1.5, 7.0.7, 6.3.6, and 5.4.20. It exploits symlinks within the public directory, which can be affected under specific server configuration scenarios. In configurations using `--host` or `server.host`, the server may inadvertently expose sensitive files to users with network access. The discovery of this vulnerability underscores the need for configurations that prevent extraneous network exposure of development files.

Technically, the vulnerability is exploited by requesting files that start with the same name as the public directory. The path traversal occurs because these requests bypass the `server.fs` settings that aim to restrict filesystem access. An attacker can make a request that navigates back directories (`../`) and accesses files like `package.json`. The server, when configured improperly, does not adequately handle these cases. The issue arises particularly when symlinks in the public directory exist, causing a misconfigured server to serve sensitive files.

If exploited, this vulnerability can have serious repercussions. Unauthorized users could access confidential files, potentially exposing sensitive application data or system configurations. Malicious actors can utilize this information to craft more targeted attacks against the application or gain deeper insights into the structure of the application codebase. The exposure of critical files can lead to data leaks, affecting not only the application integrity but also possibly compromising user and operational data.

REFERENCES

  • https://github.com/vitejs/vite/security/advisories/GHSA-g4jq-h2w9-997c
  • https://nvd.nist.gov/vuln/detail/CVE-2025-58751
Solution Advice
  • Upgrade Vite Dev Server to versions 7.1.5, 7.0.7, 6.3.6, or 5.4.20 or later to resolve the path traversal issue.
  • Ensure the application's configuration does not expose the server to the public internet unless necessary.
  • Implement additional access control mechanisms to prevent unauthorized file access.
  • Review and revise the use of symlinks within the public directory to ensure they do not inadvertently expose sensitive data.
  • Utilize restrictive server configuration settings to limit filesystem navigation and request handling.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.

CVE-2025-58751 Scanner - Path Traversal vulnerability in Vite Dev Server | S4E