Skip to main content
VulnerabilityPublished Updated

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

Affects viteSource GCVE Database

0
Compare
Authoritative record:CVE-2026-112945· Low 2.1

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

CVSS 4.0 base score
2.1Low
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 4.02.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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 20 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Homebrewvitepkg:brew/viteOther threatsAffected
  • >=2.5.1 <8.3.3
Fixed in
  • 8.3.3

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

Community reviews

Loading reviews…