Vite dev server - Cross-Site Scripting
Vite's dev server, when used with `appType: 'custom'` and manually invoking `server.transformIndexHtml` using the unmodified request URL, is vulnerable to XSS via a crafted URL payload. If the HTML being served includes an inline module script (` ... `), an attacker can inject a script via the URL, potentially leading to XSS in the browser. The vulnerability only affects certain custom SSR/dev configurations, not plain `vite dev`. References: https://github.com/vitejs/vite/security/advisories/GHSA-92r3-m2mg-pj97 https://nvd.nist.gov/vuln/detail/CVE-2023-49293
url