# CVE-2026-112945: Vite: Cross origin script execution through Vite custom middleware

- Priority: **Routine**
- Reason: Not severe (CVSS 2.1, 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-28
- Aliases: GHSA-9jrq-w75r-8gcw, CGA-5gm6-2m2h-mcr3, CGA-c3rc-vxv8-wrfr, CGA-gc8f-vpwm-9rg2, CGA-jv99-2mwf-5672, CGA-2753-4gvr-c77q, CGA-27fh-fwgq-qhc3, CGA-2m4j-87rf-h368, CGA-33rr-89vh-g7xp, CGA-369f-qmrj-gmxg, CGA-4gf4-mhj2-j65x, CGA-6c89-9qgg-h373, CGA-6fhg-qv27-8r5v, CGA-g8hg-qg5c-c9rm, CGA-gwqx-f27g-jw6v, CGA-gx59-35r6-mpx2, CGA-qxm4-hqhm-w9pq, CGA-rm55-8prc-23jx, CGA-v2fg-cjgh-h4rc, CGA-wf3g-3786-22p9, CGA-x4wp-9jj5-p9v3, CGA-25p3-383q-r698, CGA-2vm8-xv4c-v9m9, CGA-4vqr-vxv3-gjg6, CGA-5fph-hrrh-wjgq, CGA-6vcp-92c3-6275, CGA-7hhg-2fr2-2h34, CGA-8v2c-m4g2-vwj5, CGA-hwgx-8373-p47v, CGA-pmr3-854g-87pc, CGA-qj8x-qmww-rc9f, CGA-qxjx-f3gx-pf9p, CGA-r855-qvrv-cpfg, CGA-x29g-jm22-829q, CGA-vq7p-jvxr-hrjr, UBUNTU-CVE-2026-112945, CGA-8c99-3cwr-j6vf, CGA-c8cw-79qv-vjh7, CGA-f9vg-2wvh-jg8j, CGA-r7hf-fh65-gr2c
- Record: https://cvemate.com/vulnerability/CVE-2026-112945 · JSON: https://cvemate.com/vulnerability/CVE-2026-112945/json

## Description

```text
Vite is a frontend tooling framework for JavaScript. Prior to 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3, applications using custom middleware are vulnerable when they pass an unchanged browser request URL to server.transformIndexHtml. getHtmlFilename uses the query-bearing request URL to resolve an existing local file while preserving attacker-supplied leading slashes in the generated proxy module URL. If the transformed HTML contains an inline module script and a victim browser loads the crafted development-server page, the leading double slash makes the browser fetch and execute an attacker-controlled module in the Vite-served page. This execution can expose sensitive page data or permit critical actions available to the affected application. This issue is fixed in versions 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3.
```

## Signals

- CVSS: 2.1 low (v4.0, CVE.org) CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
- EPSS: 0.672%, percentile 53.448%, 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 (first 20 of 21)

- chainguard gitlab-rails-ce-18.10 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.11 (Chainguard): All versions (No fix recorded) \| \< 18.11.13-r0
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- 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) \| \< 19.1.9-r0
- chainguard gitlab-rails-ce-19.5 (Chainguard): All versions (No fix recorded) \| \< 19.5.1-r1
- chainguard gitlab-rails-ce-fips-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-19.2 (Chainguard): All versions (No fix recorded) \| \< 19.2.9-r1
- chainguard kubeflow-pipelines-frontend (Chainguard): All versions (No fix recorded) \| \< 2.17.2-r16
- chainguard langfuse-4-worker (Chainguard): All versions (No fix recorded) \| \< 4.66.0-r1
- chainguard langfuse-fips-4-worker (Chainguard): All versions (No fix recorded) \| \< 4.68.0-r0
- chainguard nextcloud-server-32 (Chainguard): All versions (No fix recorded)
- chainguard nextcloud-server-34 (Chainguard): All versions (No fix recorded) \| \< 34.0.5-r1
- chainguard nextcloud-server-35 (Chainguard): All versions (No fix recorded) \| \< 35.0.0-r8
- wolfi kubeflow-pipelines-frontend (Wolfi): All versions (No fix recorded) \| \< 2.17.2-r16
- ubuntu vite (Ubuntu): All versions (No fix recorded)
- Npm vite (Npm): ≥ 8.3.0, \< 8.3.3 \| ≥ 8.2.0, \< 8.2.4 \| ≥ 8.0.0, \< 8.1.6 \| ≥ 7.0.0, \< 7.3.7 \| \< 6.4.4
- Npm vite-plus (Npm): \< 1.1.0
- vitejs vite: ≥ 8.3.0, \< 8.3.3 \| ≥ 8.2.0, \< 8.2.4 \| ≥ 8.0.0, \< 8.1.6 \| ≥ 7.0.0, \< 7.3.7 \| \< 6.4.4

## References

- <https://github.com/vitejs/vite/security/advisories/GHSA-9jrq-w75r-8gcw>
- <https://github.com/vitejs/vite/pull/23653>
- <https://github.com/vitejs/vite/commit/7dafd8e56f152403a3230608fa4005273c2e9e17>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112945>
- <https://github.com/vitejs/vite>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112945.json>
- <https://ubuntu.com/security/CVE-2026-112945>
- <https://www.cve.org/CVERecord?id=CVE-2026-112945>
- <https://github.com/cveproject/cvelistv5/tree/main/cves/2026/112xxx/cve-2026-112945.json>
- <https://github.com/vitejs/vite/security/advisories/ghsa-9jrq-w75r-8gcw>
- <https://nvd.nist.gov/vuln/detail/cve-2026-112945>
- <https://advisory.echohq.com/cve/cve-2026-112945>

---

Data as of 2026-12-05T08:09:16.545Z. 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
