{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-112945","id":"CVE-2026-112945","title":"Vite XSS in transformIndexHtml proxy module URLs","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","descriptionLong":"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.","published":"2026-10-20T15:00:58.170Z","updated":"2026-11-04T10:46:25.600559868Z","reserved":"2026-10-19T21:30:47.245Z","status":"Awaiting Analysis","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":2.1,"vector":"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","rating":"low","source":"GitHub_M"},"metrics":[{"version":"4.0","score":2.1,"vector":"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","rating":"low","source":"GitHub_M"},{"version":"4.0","score":2.1,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"low","source":"github.com"},{"version":"4.0","score":null,"vector":"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"vector":"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","rating":"low","source":"GitHub"}],"rating":"low","products":["vitejs vite","vitejs vite-plus"],"affectedProducts":[{"vendor":"vitejs","product":"vite","defaultStatus":null,"versions":[{"version":">= 8.3.0, < 8.3.3","status":"affected"},{"version":">= 8.2.0, < 8.2.4","status":"affected"},{"version":">= 8.0.0, < 8.1.6","status":"affected"},{"version":">= 7.0.0, < 7.3.7","status":"affected"},{"version":"< 6.4.4","status":"affected"}],"platforms":[]},{"vendor":"vitejs","product":"vite-plus","defaultStatus":null,"versions":[{"version":"< 1.1.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=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"],"fixed":["8.3.3","8.2.4","8.1.6","7.3.7","6.4.4"],"advisory":"GHSA-9jrq-w75r-8gcw"},{"ecosystem":"npm","name":"vite-plus","purl":"pkg:npm/vite-plus","ranges":["<1.1.0"],"fixed":["1.1.0"],"advisory":"GHSA-9jrq-w75r-8gcw"}],"cwes":["CWE-80"],"aliases":["GHSA-9jrq-w75r-8gcw"],"references":[{"url":"https://github.com/vitejs/vite/security/advisories/GHSA-9jrq-w75r-8gcw","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/vitejs/vite/pull/23653","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/vitejs/vite/commit/7dafd8e56f152403a3230608fa4005273c2e9e17","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112945.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-112945","tags":["advisory"]},{"url":"https://github.com/vitejs/vite","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00672,"epssPercentile":0.52858,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-112945","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-112945","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-112945","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-9jrq-w75r-8gcw","ok":true,"note":"GHSA-9jrq-w75r-8gcw"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-112945","ok":true,"note":"scored 2026-11-19"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}