S4E just found a high top 10 tcp port service scan
medium·Product Based Web Vulnerabilities·Updated Apr 9, 2025

CVE-2025-31125 Scanner

CVE-2025-31125 Scanner - Path Traversal vulnerability in Vite Development Server

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsdomain, subdomain, ipv4
CostFree
3.1k
Times Used
continuous scan runs
3.4k
Continuously Checked
assets under CS
1
Vulnerabilities Found
confirmed findings
References
🔴
CISA Known Exploited Vulnerability
This CVE is actively exploited in the wild. CISA mandates federal agencies to patch immediately.
CVECVE-2025-31125
7.5
CVSSmedium
Exploitable remotely over the internet · no authentication required · user interaction needed.

Vite is a frontend tooling framework for javascript. Vite exposes content of non-allowed files using ?inline&import or ?raw?import. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected. This vulnerability is fixed in 6.2.4, 6.1.3, 6.0.13, 5.4.16, and 4.5.11.

Attack Vector
Network
Privileges Req.
None
User Interaction
Required
Affected
viteby vitejs
>= 6.2.0, < 6.2.4
Updated Aug 22, 2026View on NVD →
Detail

Vite Development Server is an essential tool used primarily in web development environments. It's employed by developers to swiftly build and preview web applications, offering instant feedback and rapid recompilation. The server finds application within development teams aiming for quick iterations on web projects. It serves as a backbone in environments where efficient frontend development is required, supporting multiple front-end frameworks. In addition, Vite's design facilitates seamless integration into existing development workflows. The tool's popularity is largely due to its optimized build process and user-friendly nature.

The path traversal vulnerability in the Vite Development Server arises from the @fs endpoint. This flaw can be exploitable when the server is publicly accessible on a network. Attackers leverage malformed URLs to traverse directories and access files outside the intended scope. As such, sensitive system files not intended for public access can be read by unauthorized users. This vulnerability gains prominence due to the potential exposure of critical data. The exploitation complexity is moderate because it requires crafting specific URLs to succeed.

In this specific vulnerability, the @fs endpoint is misconfigured, allowing crafted requests to exploit directory traversal techniques. The vulnerable parameters include URLs that misuse directory paths, such as "../../../../../../../" patterns, to access restricted areas. Another avenue involves encoding sequences like "%%%%252e%%%%252e" to bypass typical checks. These exploits target both Windows and Unix-like systems, aiming to disclose critical file information. The endpoint fails to appropriately restrict access to directories, creating a loophole exploited by adversaries.

Exploiting this path traversal vulnerability could result in severe repercussions, including unauthorized access to sensitive files and system configurations. Critical information exposure can lead to further attacks, including data manipulation and unauthorized system control. Attackers gaining insights into directory structures may exploit other vulnerabilities within the environment. Moreover, compromised system files can enable attackers to introduce malicious software or scripts. These actions could severely degrade system integrity, confidentiality, and availability.

REFERENCES

Solution Advice
  • Upgrade the Vite Development Server to the latest patched version.
  • Disable public network exposure of the server or configure access restrictions.
  • Avoid using the --host flag in production environments to reduce vulnerability risks.
  • Regularly audit and monitor server configurations for unauthorized access attempts.
  • Implement network-level policies to restrict unwanted access to the server.

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-31125 Scanner - Path Traversal vulnerability in Vite Development Server S4E