Security incident · CVE-2026-112945
Vite is a frontend tooling framework for JavaScript.
Published Oct 20, 2026 · catalog updated Oct 21, 2026 · Vite is a frontend
Last checked Nov 7, 2026. A connected source was read within the last 7 days.
Check if you run it
No confirmed exploitation is on record for CVE-2026-112945. EPSS is 0.67%. Act only if a listed version of Vite is a frontend is installed.
Gaps on this record
- The stored product name is a package slug. The name on this page is taken from the title (Vite is a frontend).
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
- Severity
- Low2.1
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 0.67%
- Remediation
- Version ranges on file
- Affected products
- npm vite · npm vite-plus
### Summary When accessing a malicious site while a dev server using Vite is running, that site was able to load scripts in a page served by the dev server. ### Impact Only apps that match the following conditions are affected: - the dev server passes an unchanged browser request URL to : this is normally used for or . The internal call for and does not match this. - the transformed HTML contains an inline module script - from the script in the page served by the dev server, the app stores sensitive values in the location accessible or allows critical actions ### Details [Vite's SSR guide for 8.2.1](https://github.com/vitejs/vite/blob/421615865dad3ed39137d17281814fc78a41246c/docs/guide/ssr.md#L119-L131) documents the affected setup. The application embeds Vite in middleware mode, reads trusted HTML, and passes the browser's unchanged request URL to the transform: For a development server at , an attacker can send this URL: In Vite 8.2.1, [ and in ](https://github.com/vitejs/vite/blob/421615865dad3ed39137d17281814fc78a41246c/packages/vite/src/node/server/middlewares/indexHtml.ts#L99-L115) use the request URL as both the transform and the input to . The value passed to still includes its query text. Chromium preserves because it follows and is therefore query text. Vite treats the same characters as filesystem path components, so the components resolve the derived filename to the existing project . [The existing file branch in ](https://github.com/vitejs/vite/blob/421615865dad3ed39137d17281814fc78a41246c/packages/vite/src/node/server/middlewares/indexHtml.ts#L216-L232) checks that filename with , then preserves the supplied by the attacker as . [The inline module rewrite in the same file](https://github.com/vitejs/vite/blob/421615865dad3ed39137d17281814fc78a41246c/packages/vite/src/node/server/middlewares/indexHtml.ts#L271-L278) writes that value into the generated : The generated value is a valid URL. Its leading tells the browser to request the module from using the
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- npm vite0 → 6.4.4
- npm vite7.0.0 → 7.3.7
- npm vite8.0.0 → 8.1.6
- npm vite8.2.0 → 8.2.4
- npm vite8.3.0 → 8.3.3
- npm vite<= 6.4.3
- npm vite>= 7.0.0, <= 7.3.6
- npm vite>= 8.0.0, <= 8.1.5
- npm vite>= 8.2.0, <= 8.2.3
- npm vite>= 8.3.0, <= 8.3.2
- npm vite-plus0 → 1.1.0
- npm vite-plus<= 1.0.0
How to fix CVE-2026-112945
Upgrade
CVE-2026-112945 lists a fix boundary at 6.4.4. Compare the installed build with that boundary before you change production.
Version check
Affected <= 6.4.3
Advisory
Open the cve_org record and follow its fix.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
No confirmed exploitation is on record for CVE-2026-112945. EPSS is 0.67%. Act only if a listed version of Vite is a frontend is installed.
Which versions are affected?
Compare what you have installed with 0 → 6.4.4, 7.0.0 → 7.3.7, 8.0.0 → 8.1.6, 8.2.0 → 8.2.4, 8.3.0 → 8.3.3, <= 6.4.3. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
CWE-80: Basic XSS. EPSS 0.67%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
Oct 20, 2026 · NIST NVD
Detected
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
Oct 20, 2026 · NIST NVD
Updated
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
Oct 21, 2026 · GitHub Advisory Database
Fix available
vite fixed in 8.3.3; vite fixed in 8.2.4; vite fixed in 8.1.6; vite fixed in 7.3.7
Oct 21, 2026 · GitHub Advisory Database
Fix available
vite fixed in 8.3.3
Oct 21, 2026 · GitHub Advisory Database
Fix available
vite fixed in 8.2.4
Oct 21, 2026 · GitHub Advisory Database
Fix available
vite fixed in 8.1.6
Oct 21, 2026 · GitHub Advisory Database
Fix available
vite fixed in 7.3.7
Oct 21, 2026 · GitHub Advisory Database
Fix available
vite fixed in 6.4.4
Oct 21, 2026 · GitHub Advisory Database
Fix available
vite-plus fixed in 1.1.0
Oct 21, 2026 · GitHub Advisory Database
Updated
### Summary When accessing a malicious site while a dev server using Vite is running, that site was able to load scripts in a page served by the dev server. ### Impact Only apps that match the following conditions are affected: - the dev server passes an unchanged browser request URL to : this is normally used for or . The internal call for and does not match this. - the transformed HTML contains
Sources
- CVE.orgVulnerability recordCVE-2026-112945
Official CVE identifier
cve.org - FIRST EPSSExploitation probabilityCVE-2026-112945
30-day exploitation probability 0.67%
first.org - GitHub Advisory DatabasePackage advisoryGHSA-9jrq-w75r-8gcw
Vite: Cross origin script execution through Vite custom middleware
github.com - NIST NVDVulnerability recordCVE-2026-112945
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 UR
nvd.nist.gov - OpenSSF OSV / OSV ScannerPackage advisoryGHSA-9jrq-w75r-8gcw
Vite: Cross origin script execution through Vite custom middleware
osv.dev
References
Freshness
Last verified in this catalog Nov 7, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.
- FIRST EPSSNov 7, 2026
- GitHub Advisory DatabaseOct 22, 2026
- CVE.orgOct 21, 2026
- OpenSSF OSV / OSV ScannerOct 21, 2026
- NIST NVDOct 21, 2026