{"cve":"CVE-2026-112945","nvd":{"published":"2026-10-20T16:17:05.043","modified":"2026-10-20T19:56:45.543","status":"Awaiting Analysis","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.","cvss_v4":{"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","score":2.1},"cvss_v3":null,"cwes":["CWE-80"],"references":["https://github.com/vitejs/vite/commit/7dafd8e56f152403a3230608fa4005273c2e9e17","https://github.com/vitejs/vite/pull/23653","https://github.com/vitejs/vite/security/advisories/GHSA-9jrq-w75r-8gcw"],"products":[],"source":"nvd","synced_at":"2026-10-21T03:56:58.798400159+00:00"},"epss":{"cve":"CVE-2026-112945","score":0.00562,"percentile":0.46457,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-9jrq-w75r-8gcw","url":"https://osv.dev/vulnerability/GHSA-9jrq-w75r-8gcw","summary":"Vite: Cross origin script execution through Vite custom middleware","modified":"2026-10-21T17:00:26.569382874Z","packages":[{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=8.3.0 <8.3.3"],"fixed":["8.3.3"]},{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=8.2.0 <8.2.4"],"fixed":["8.2.4"]},{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=8.0.0 <8.1.6"],"fixed":["8.1.6"]},{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=7.0.0 <7.3.7"],"fixed":["7.3.7"]},{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":["<6.4.4"],"fixed":["6.4.4"]},{"ecosystem":"npm","name":"vite-plus","purl":"pkg:npm/vite-plus","ranges":["<1.1.0"],"fixed":["1.1.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}