Back to CVE records
Low 2.1Published Oct 20, 2026

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

Updated under an hour ago ()

Does this affect you?

It affects vitejs vite and 1 other product. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

CVSS
2.1 LOW (v4.0, CNA)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
Weakness (CWE)
CWE-80
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
GitHub_M
NVD analysis
Awaiting Analysis
Record last updated
Oct 20, 2026
First seen by InfoSec Signals
Oct 20, 2026

Affected products

Affected products
vitejs vite
vitejs:vite (from the name)
from 8.3.0, < 8.3.3; from 8.2.0, < 8.2.4; from 8.0.0, < 8.1.6; from 7.0.0, < 7.3.7; before 6.4.4
CNA record
vitejs vite-plus
vitejs:vite_plus (from the name)
before 1.1.0
CNA record

References

  • x-refsource-confirm
  • x-refsource-misc
  • x-refsource-misc

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.