<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-06T05:43:43.428176+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/cve-2023-49293</id>
    <title>CVE-2023-49293 — Cross-site Scripting in `server.transformIndexHtml` via URL payload in vite</title>
    <updated>2026-10-06T05:43:43.457045+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> vitejs vite</p>
<p>Vite is a website frontend framework. When Vite's HTML transformation is invoked manually via `server.transformIndexHtml`, the original request URL is passed in unmodified, and the `html` being transformed contains inline module scripts (`&lt;script type="module"&gt;...&lt;/script&gt;`), it is possible to inject arbitrary HTML into the transformed output by supplying a malicious URL query string to `server.transformIndexHtml`. Only apps using `appType: 'custom'` and using the default Vite HTML middleware are affected. The HTML entry must also contain an inline script. The attack requires a user to click on a malicious URL while running the dev server. Restricted files aren't exposed to the attacker. This issue has been addressed in vite@5.0.5, vite@4.5.1, and vite@4.4.12. There are no known workarounds for this vulnerability.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2023-49293"/>
  </entry>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-92r3-m2mg-pj97</id>
    <title>GHSA-92r3-m2mg-pj97 — Vite XSS vulnerability in `server.transformIndexHtml` via URL payload</title>
    <updated>2026-10-06T05:43:43.457272+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: vite</p>
<p>### Summary
When Vite's HTML transformation is invoked manually via `server.transformIndexHtml`, the original request URL is passed in unmodified, and the `html` being transformed contains inline module scripts (`&lt;script type="module"&gt;...&lt;/script&gt;`), it is possible to inject arbitrary HTML into the transformed output by supplying a malicious URL query string to `server.transformIndexHtml`.</p>
<p>### Impact
Only apps using `appType: 'custom'` and using the default Vite HTML middleware are affected. The HTML entry must also contain an inline script. The attack requires a user to click on a malicious URL while running the dev server. Restricted files aren't exposed to the attacker.</p>
<p>### Patches
Fixed in vite@5.0.5, vite@4.5.1, vite@4.4.12</p>
<p>### Details
Suppose `index.html` contains an inline module script:</p>
<p>```html
&lt;script type="module"&gt;
  // Inline script
&lt;/script&gt;
```</p>
<p>This script is transformed into a proxy script like</p>
<p>```html
&lt;script type="module" src="/index.html?html-proxy&amp;index=0.js"&gt;&lt;/script&gt;
```</p>
<p>due to Vite's HTML plugin:</p>
<p>https://github.com/vitejs/vite/blob/7fd7c6cebfcad34ae7021ebee28f97b1f28ef3f3/packages/vite/src/node/plugins/html.ts#L429-L465</p>
<p>When `appType: 'spa' | 'mpa'`, Vite serves HTML itself, and `htmlFallbackMiddleware` rewrites `req.url` to the canonical path of `index.html`,</p>
<p>https://github.com/vitejs/vite/blob/73ef074b80fa7252e0c46a37a2c94ba8cba46504/packages/vite/src/node/server/middlewares/htmlFallback.ts#L44-L47</p>
<p>so the `url` passed to `server.transformInd…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-92r3-m2mg-pj97"/>
  </entry>
</feed>
