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

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.20%, higher than 69% of CVEs (2026-12-01)
- Published: 2026-10-20T15:10:51.025Z
- Modified: 2026-10-21T17:00:07.443Z
- Also known as: GHSA-vfpm-58rq-9qcg
- Weaknesses: CWE-22, CWE-200, CWE-209
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- vitejs vite: >= 8.3.0, < 8.3.3; >= 8.2.0, < 8.2.4
- vitejs vite-plus: >= 0.2.8, < 1.1.0
- vite (npm): from 8.3.0 before 8.3.3; from 8.2.0 before 8.2.4
- vite-plus (npm): from 0.2.8 before 1.1.0

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/vitejs/vite/security/advisories/GHSA-vfpm-58rq-9qcg> (web)
- <https://github.com/vitejs/vite/pull/23655> (web)
- <https://github.com/vitejs/vite/commit/b6c6d2fb3f853aab4092dc25f0d6816a96c23dff> (web)
- <https://github.com/vitejs/vite/commit/ba8b7ab43b4afa5d0292ab4b6e3a7b5033cc9c73> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112947> (advisory)
- <https://github.com/vitejs/vite> (package)

## Sources

- CVE List: [CVE-2026-112947](https://www.cve.org/CVERecord?id=CVE-2026-112947), CVE Terms of Use, modified 2026-10-21
- GitHub Advisory Database: [GHSA-vfpm-58rq-9qcg](https://github.com/advisories/GHSA-vfpm-58rq-9qcg), CC-BY-4.0, modified 2026-10-21
- NVD: [CVE-2026-112947](https://nvd.nist.gov/vuln/detail/CVE-2026-112947), Public domain, modified 2026-10-21

---

Page: https://cve.day/CVE-2026-112947 · Whole record: https://cve.day/CVE-2026-112947.json · Rebuilt by cve.day 2026-11-25T22:59:46.060Z
