CVE-2026-112947
Received Received - Intake

Vite Wasm Plugin File Disclosure via Query Parameter

Vulnerability report for CVE-2026-112947, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-10-20

Last updated on: 2026-10-20

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-10-20
Last Modified
2026-10-20
Generated
2026-10-20
AI Q&A
2026-10-20
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
vitejs vite >= 8.3.0, < 8.3.3
vitejs vite >= 8.2.0, < 8.2.4
vitejs vite-plus >= 0.2.8, < 1.1.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-209 The product generates an error message that includes sensitive information about its environment, users, or associated data.
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
CWE-200 The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects Vite versions between 8.2.0-8.2.3 and 8.3.0-8.3.2. It allows the first 4 bytes of files outside the server.fs setting to be exposed to the browser when a request containing the ?vite-wasm-instance query is made. The issue occurs because the Wasm plugin's load hook processes such requests without applying server.fs restrictions, reads the file directly from disk, and attempts to parse it as WebAssembly. When parsing fails, Node.js or Deno throws an error that includes the first 4 bytes of the file.

Detection Guidance

To detect this vulnerability, check if your Vite version is between 8.2.0-8.2.3 or 8.3.0-8.3.2. Run `npm list vite` or `yarn list vite` to verify the installed version. If vulnerable, test for exposure by sending a request with the `?vite-wasm-instance` query parameter to your Vite dev server and inspecting the response for the first 4 bytes of files outside the `server.fs` setting.

Impact Analysis

This vulnerability could expose sensitive information if the first 4 bytes of files contain sensitive data. It requires specific conditions: exposing the Vite dev server to the network, having files with sensitive data in the first 4 bytes, and running Vite on Node.js or Deno. The impact is limited to unauthorized exposure of file content fragments.

Compliance Impact

This vulnerability could lead to non-compliance with GDPR or HIPAA if sensitive personal or health data is exposed in the first 4 bytes of files. Unauthorized exposure of sensitive information violates data protection requirements under these regulations.

Mitigation Strategies

Upgrade Vite to version 8.2.4 or 8.3.3 (or vite-plus to 1.1.0) immediately. If upgrading is not possible, restrict access to the Vite dev server by binding it to localhost only or using a firewall. Avoid exposing the dev server to untrusted networks.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-112947. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart