Every CVE Search/ Get API key

CVE-2026-112947

Vite: First 4 bytes of files outside of `server.fs` setting is exposed by `?vite-wasm-instance`

6.3 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
Low
Integrity
None
Availability
None

Exploit likelihood

0.50%Up 0.1 points since Oct 21, 2026
90%50%10%1%

What each source reports

CVE List Score used 6.3

Vite: First 4 bytes of files outside of `server.fs` setting is exposed by `?vite-wasm-instance`

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.

Record
CVE-2026-112947
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Weakness
CWE-22, CWE-200, CWE-209
Updated
2026-11-02
EUVDEUVD-2026-105135 6.3

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.

Record
EUVD-2026-105135
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-vfpm-58rq-9qcg 6.3

Vite: First 4 bytes of files outside of `server.fs` setting is exposed by `?vite-wasm-instance`

Summary

The first 4 bytes of files outside of server.fs setting can be returned to the browser by a request containing ?vite-wasm-instance.

Impact

Only apps that match one of the following conditions are affected:

  • explicitly expose the Vite dev server to the network using --host or the server.host option
  • there's a file that has a sensitive information in the first 4 bytes
  • uses Node.js or Deno to run Vite (if Bun is used, it is not affected)

Details

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.

PoC

Create a denied file and start an affected Vite dev server:

echo 'SECRET_KEY=abc123\n' > .env
npm run dev
curl 'http://localhost:5173/.env?vite-wasm-instance'

This will show

Failed to parse WASM file "<root>/.env": WebAssembly.compile(): expected magic word 00 61 73 6d, found 53 45 43 52 @+0
Record
GHSA-vfpm-58rq-9qcg
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Weakness
CWE-22, CWE-200, CWE-209
Updated
2026-11-02
NVD 6.3

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.

Record
CVE-2026-112947
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness
CWE-22, CWE-200, CWE-209
Updated
2026-11-02
OSV 6.3

Vite: First 4 bytes of files outside of `server.fs` setting is exposed by `?vite-wasm-instance`

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.

Record
CVE-2026-112947
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Weakness
CWE-200, CWE-209, CWE-22
Updated
2026-11-02
OSVGHSA-vfpm-58rq-9qcg 6.3

Vite: First 4 bytes of files outside of `server.fs` setting is exposed by `?vite-wasm-instance`

Summary

The first 4 bytes of files outside of server.fs setting can be returned to the browser by a request containing ?vite-wasm-instance.

Impact

Only apps that match one of the following conditions are affected:

  • explicitly expose the Vite dev server to the network using --host or the server.host option
  • there's a file that has a sensitive information in the first 4 bytes
  • uses Node.js or Deno to run Vite (if Bun is used, it is not affected)

Details

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.

PoC

Create a denied file and start an affected Vite dev server:

echo 'SECRET_KEY=abc123\n' > .env
npm run dev
curl 'http://localhost:5173/.env?vite-wasm-instance'

This will show

Failed to parse WASM file "<root>/.env": WebAssembly.compile(): expected magic word 00 61 73 6d, found 53 45 43 52 @+0
Record
GHSA-vfpm-58rq-9qcg
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Weakness
CWE-200, CWE-209, CWE-22
Updated
2026-11-02
OSVUBUNTU-CVE-2026-112947 6.3

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.

Record
UBUNTU-CVE-2026-112947
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
vite
npm
8.3.0 to 8.3.2
8.3.3
vite
npm
8.2.0 to 8.2.3
8.2.4
vite-plus
npm
0.2.8 to 1.0.0
1.1.0
vite
npm
8.3.0 up to 8.3.3
8.3.3
vite
npm
8.2.0 up to 8.2.4
8.2.4
vite-plus
npm
0.2.8 up to 1.1.0
1.1.0
vite
Ubuntu:16.04:LTS
All versions, plus listed versions
1.2+svn1430-21.2+svn1430-31.2+svn1430-41.2+svn1430-5
None known
vite
Ubuntu:18.04:LTS
All versions, plus listed versions
1.2+svn1430-51.2+svn1430-6
None known
vite
Ubuntu:20.04:LTS
All versions, plus listed versions
1.2+svn1430-61.2+svn1430-6build1
None known
vite
Ubuntu:22.04:LTS
All versions, plus listed versions
1.2+svn+git4.c6c0ce7-31.2+svn+git4.c6c0ce7-4
None known
vite
Ubuntu:24.04:LTS
All versions, plus listed versions
1.2+svn+git4.c6c0ce7-81.2+svn+git4.c6c0ce7-8build11.2+svn+git4.c6c0ce7-8build2
None known
vite
Ubuntu:26.10
All versions, plus listed versions
1.4-61.4-6build1
None known
vite
Ubuntu:26.04:LTS
All versions, plus listed versions
1.4-11.4-51.4-5build11.4-6
None known

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-112947 is a medium vulnerability (CVSS 6.3) in Vitejs Vite, published October 20, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.50%, the 43rd percentile. Fixed in vite 8.3.3.

References

Show 8 moreShow less
MoveEnter Open