Description
Vite is a frontend tooling framework for JavaScript. From 8.2.0 until 8.2.4 and 8.3.3, the first 4 bytes of files outside of server.fs setting can be returned to the browser by a request containing ?vite-wasm-instance. Requests containing the ?vite-wasm-instance query are handled by the internal Wasm plugin's load hook. The hook removes the query and reads the resulting path directly from disk, but the server.fs checks were not applied. After reading the file, Vite attempts to parse it as WebAssembly. When that parse fails, Node and deno throws an error that contains the first 4 bytes of the file. This vulnerability is fixed in 8.2.4 and 8.3.3.
Published: 2026-10-20
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Information Disclosure
Action: Patch
AI Analysis

Impact

The vulnerability allows the first four bytes of any file located outside the configured server.fs directory to be exposed through an HTTP request that includes the query parameter ?vite-wasm-instance. The internal WebAssembly plugin processes the request, strips the query, and reads the referenced file directly from disk without performing the server.fs access check. When the file cannot be parsed as WebAssembly, Vite returns an error that contains the file’s initial four bytes. This leads to an information‑exposure weakness defined by CWE‑200, CWE‑209, and CWE‑22; an attacker can glean potentially sensitive data from arbitrary files on the host.

Affected Systems

Vite and Vite‑Plus were affected. The vulnerability exists in all releases prior to the fixed releases 8.2.4 and 8.3.3, and the fix was applied in those releases and in all later versions. No other vendors are listed.

Risk and Exploitability

The CVSS score of 6.3 indicates moderate severity. An attacker can exploit the issue by sending a GET request containing ?vite-wasm-instance to a Vite server, learning the first four bytes of arbitrary files. The EPSS metric is not available, and the vulnerability is not listed in the CISA KEV catalog. The attack requires direct HTTP access to the server, making it most relevant to developers using Vite in non‑production or internal environments.

Generated by OpenCVE AI on October 20, 2026 at 18:13 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Vite to version 8.2.4 or later, including 8.3.3, or to any subsequent release that contains the fix.
  • If upgrading immediately is not possible, configure the Vite server’s fs options to restrict file access strictly to the intended root directory, ensuring that paths outside server.fs are denied before the Wasm plugin processes them.
  • For environments where the query parameter ?vite-wasm-instance is unnecessary, disable or remove the query handling in the Wasm plugin; validate file paths before disk access to prevent leakage of the first four bytes.

Generated by OpenCVE AI on October 20, 2026 at 18:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-vfpm-58rq-9qcg Vite: First 4 bytes of files outside of `server.fs` setting is exposed by `?vite-wasm-instance`
History

Wed, 21 Oct 2026 17:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 21 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}

threat_severity

Moderate


Tue, 20 Oct 2026 17:15:00 +0000

Type Values Removed Values Added
First Time appeared Vitejs
Vitejs vite
Vitejs vite-plus
Vendors & Products Vitejs
Vitejs vite
Vitejs vite-plus

Tue, 20 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Description Vite is a frontend tooling framework for JavaScript. From 8.2.0 until 8.2.4 and 8.3.3, the first 4 bytes of files outside of server.fs setting can be returned to the browser by a request containing ?vite-wasm-instance. Requests containing the ?vite-wasm-instance query are handled by the internal Wasm plugin's load hook. The hook removes the query and reads the resulting path directly from disk, but the server.fs checks were not applied. After reading the file, Vite attempts to parse it as WebAssembly. When that parse fails, Node and deno throws an error that contains the first 4 bytes of the file. This vulnerability is fixed in 8.2.4 and 8.3.3.
Title Vite: First 4 bytes of files outside of `server.fs` setting is exposed by `?vite-wasm-instance`
Weaknesses CWE-200
CWE-209
CWE-22
References
Metrics cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-21T15:54:49.530Z

Reserved: 2026-10-19T21:30:47.245Z

Link: CVE-2026-112947

cve-icon Vulnrichment

Updated: 2026-10-21T14:24:24.413Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-20T16:17:05.370

Modified: 2026-10-21T16:17:15.320

Link: CVE-2026-112947

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-20T15:10:51Z

Links: CVE-2026-112947 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-20T18:15:14Z

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-209

    Generation of Error Message Containing Sensitive Information

  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')