CVE-2026-112945: Cross origin script execution through Vite custom middleware
Affects viteSource GCVE Database
Not known to be exploited · CVSS 2.1 Low : upgrade to 8.3.3 when convenient.
Data as of 13 Nov 2026, 21:06 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 4.0 | 2.1 |
|---|
- Patch
- Available – fixed in 8.3.3
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 20 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.
What to do
Upgrade vite to 8.3.3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewvitepkg:brew/viteOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in Vite version 8.3.3 that fixes this vulnerability. Users should upgrade to version 8.3.3 or later. No additional mitigation is required if the upgrade is applied. If upgrading is not immediately possible, avoid using middlewareMode: true or appType: 'custom' configurations that pass the original request URL unchanged to transformIndexHtml, or ensure that inline module scripts do not handle sensitive data or critical actions.
Description
CVE-2026-112945 is a low-severity vulnerability in Vite development server versions from 2.5.1 up to but not including 8.3.3. It allows a malicious site to execute cross-origin scripts in a page served by the Vite dev server when certain middleware configurations are used. The issue arises when the dev server passes an unchanged browser request URL to the transformIndexHtml function, enabling an attacker to inject a crafted script URL that the browser executes in the context of the Vite page. This affects setups using middlewareMode: true or appType: 'custom' with inline module scripts that store sensitive data or allow critical actions. The vulnerability is fixed in Vite 8.3.3.
References
- github.com/vitejs/vite/security/advisories/GHSA-9jrq-w75r-8gcw (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-112945 (opens in a new tab)
- github.com/vitejs/vite/pull/23653 (opens in a new tab)
- github.com/vitejs/vite/commit/7dafd8e56f152403a3230608fa4005273c2e9e17 (opens in a new tab)
- github.com/vitejs/vite (opens in a new tab)