Skip to content
OpenAdvisories
Low · 2.1 CVE-2026-112945 EUVD-2026-105125GHSA-9jrq-w75r-8gcw

Vite: Cross origin script execution through Vite custom middleware

Published Oct 20, 2026 · Updated Oct 28, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
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 —
vitejs vite-plus < 1.1.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 vite No fix yet —
Ubuntu 26.04 LTS vite No fix yet —
Ubuntu 24.04 LTS vite No fix yet —
Ubuntu 22.04 LTS vite No fix yet —
Ubuntu 20.04 LTS vite No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS vite No fix yet —
Ubuntu 16.04 LTS vite No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling kubeflow-pipelines-frontend 2.17.2-r16 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm vite >= 8.3.0, < 8.3.3 8.3.3 GHSA-9jrq-w75r-8gcw
npm vite >= 8.2.0, < 8.2.4 8.2.4 GHSA-9jrq-w75r-8gcw
npm vite >= 8.0.0, < 8.1.6 8.1.6 GHSA-9jrq-w75r-8gcw
npm vite >= 7.0.0, < 7.3.7 7.3.7 GHSA-9jrq-w75r-8gcw
npm vite < 6.4.4 6.4.4 GHSA-9jrq-w75r-8gcw
npm vite-plus < 1.1.0 1.1.0 GHSA-9jrq-w75r-8gcw

References