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

- Severity: Low 2.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.67%, higher than 53% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-20T15:00:58.170Z
- Modified: 2026-10-28T15:17:03.200Z
- Also known as: GHSA-9jrq-w75r-8gcw
- Weaknesses: CWE-80
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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
- vite (npm): from 8.3.0 before 8.3.3; from 8.2.0 before 8.2.4; from 8.0.0 before 8.1.6; from 7.0.0 before 7.3.7; before 6.4.4
- vite-plus (npm): before 1.1.0

## Every score

- GitHub_M: CVSS:4.0 2.1 Low `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`
- GitHub: CVSS:4.0 Low `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`

## References

- <https://github.com/vitejs/vite/security/advisories/GHSA-9jrq-w75r-8gcw> (exploit, web)
- <https://github.com/vitejs/vite/pull/23653> (web)
- <https://github.com/vitejs/vite/commit/7dafd8e56f152403a3230608fa4005273c2e9e17> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112945> (advisory)
- <https://github.com/vitejs/vite> (package)

## Sources

- CVE List: [CVE-2026-112945](https://www.cve.org/CVERecord?id=CVE-2026-112945), CVE Terms of Use, modified 2026-10-28
- GitHub Advisory Database: [GHSA-9jrq-w75r-8gcw](https://github.com/advisories/GHSA-9jrq-w75r-8gcw), CC-BY-4.0, modified 2026-10-21
- NVD: [CVE-2026-112945](https://nvd.nist.gov/vuln/detail/CVE-2026-112945), Public domain, modified 2026-10-28

---

Page: https://cve.day/CVE-2026-112945 · Whole record: https://cve.day/CVE-2026-112945.json · Rebuilt by cve.day 2026-11-25T22:59:46.059Z
