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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-10-20 · Modified: 2026-10-21
- Aliases: GHSA-vfpm-58rq-9qcg, CGA-496f-4vmp-xf57, CGA-gffw-jv36-5x9j, CGA-p8g3-wj2x-hj4h, CGA-45v8-73hh-6562, CGA-4hj9-66q6-xrc4, CGA-5jf5-j77x-5cm6, CGA-m7p5-mfcq-m2x5, CGA-qgj2-mj2j-4x53, UBUNTU-CVE-2026-112947
- Record: https://cvemate.com/vulnerability/CVE-2026-112947 · JSON: https://cvemate.com/vulnerability/CVE-2026-112947/json

## Description

```text
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.
```

## Signals

- CVSS: 6.3 medium (v4.0, CVE.org) 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
- EPSS: 1.199%, percentile 69.175%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard gitlab-rails-ce-18.11 (Chainguard): All versions (No fix recorded) \| \< 18.11.13-r0
- chainguard gitlab-rails-ce-19.0 (Chainguard): All versions (No fix recorded) \| \< 19.0.10-r0
- chainguard gitlab-rails-ce-19.1 (Chainguard): All versions (No fix recorded)
- ubuntu vite (Ubuntu): All versions (No fix recorded)
- Npm vite (Npm): ≥ 8.3.0, \< 8.3.3 \| ≥ 8.2.0, \< 8.2.4
- Npm vite-plus (Npm): ≥ 0.2.8, \< 1.1.0
- vitejs vite: ≥ 8.3.0, \< 8.3.3 \| ≥ 8.2.0, \< 8.2.4
- vitejs vite-plus: ≥ 0.2.8, \< 1.1.0

## References

- <https://github.com/vitejs/vite/security/advisories/GHSA-vfpm-58rq-9qcg>
- <https://github.com/vitejs/vite/pull/23655>
- <https://github.com/vitejs/vite/commit/b6c6d2fb3f853aab4092dc25f0d6816a96c23dff>
- <https://github.com/vitejs/vite/commit/ba8b7ab43b4afa5d0292ab4b6e3a7b5033cc9c73>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112947>
- <https://github.com/vitejs/vite>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112947.json>
- <https://ubuntu.com/security/CVE-2026-112947>
- <https://www.cve.org/CVERecord?id=CVE-2026-112947>
- <https://github.com/cveproject/cvelistv5/tree/main/cves/2026/112xxx/cve-2026-112947.json>
- <https://github.com/vitejs/vite/security/advisories/ghsa-vfpm-58rq-9qcg>
- <https://nvd.nist.gov/vuln/detail/cve-2026-112947>
- <https://advisory.echohq.com/cve/cve-2026-112947>

---

Data as of 2026-12-05T08:10:18.669Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
