cve.bz

CVE-2023-34092 vitejs vite

7.5 highExploit referenceEPSS 3.2%Fix available

High (7.5) in vitejs vite. EPSS 3.2% estimated probability of exploitation activity in the next 30 days. Fixed in vite 2.9.16, 3.2.7, 4.0.5.

On this page
Vite provides frontend tooling. Prior to versions 2.9.16, 3.2.7, 4.0.5, 4.1.5, 4.2.3, and 4.3.9, Vite Server Options (`server.fs.deny`) can be bypassed using double forward-slash (//) allows any unauthenticated user to read file from the Vite root-path of the application including the default `fs.deny` settings (`['.env', '.env.*', '*.{crt,pem}']`). Only users explicitly exposing the Vite dev server to the network (using `--host` or `server.host` config option) are affected, and only files in the immediate Vite project root folder could be exposed. This issue is fixed in vite@4.3.9, vite@4.2.3, vite@4.1.5, vite@4.0.5, vite@3.2.7, and vite@2.9.16.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
3.2% (unchanged from 3.2% a week ago; 3.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2025-01-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-706 Use of Incorrectly-Resolved Name or Reference
CWE-50 Path Equivalence: '//multiple/leading/slash'
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-34092 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-34092?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-34092?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-34092 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
vitejs:vitefrom 3.0.2 before 3.2.7
vitejs:vitefrom 4.0.0 before 4.0.5
vitejs:vitefrom 4.1.0 before 4.1.5
vitejs:vitefrom 4.2.0 before 4.2.3
vitejs:vitefrom 4.3.0 before 4.3.9
vitejs:vite2.9.15

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-353f-5xf4-qw67npmvite<2.9.162.9.16
GHSA-353f-5xf4-qw67npmvite>=3.0.2 <3.2.73.2.7
GHSA-353f-5xf4-qw67npmvite>=4.0.0 <4.0.54.0.5
GHSA-353f-5xf4-qw67npmvite>=4.1.0 <4.1.54.1.5
GHSA-353f-5xf4-qw67npmvite>=4.2.0 <4.2.34.2.3
GHSA-353f-5xf4-qw67npmvite>=4.3.0 <4.3.94.3.9

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

  • CAPEC-48 Passing Local Filenames to Functions That Expect a URL Likelihood: High · Severity: High
  • CAPEC-159 Redirect Access to Libraries Likelihood: High · Severity: Very High
  • CAPEC-177 Create files with the same name as files protected with a higher classification Severity: Very High
  • CAPEC-641 DLL Side-Loading Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON