Read the docs
TI-2023-26929 Aliases CVE-2023-49293GHSA-92r3-m2mg-pj97

Cross-site Scripting in `server.transformIndexHtml` via URL payload in vite

Priority LOW 29CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · Low · None
Fix status
Partial Red Hat: 2 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.

Summary

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 (`<script type="module">...</script>`), 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 [email protected], [email protected], and [email protected]. There are no known workarounds for this vulnerability.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00997 62nd percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial vite (vitejs): 4.4.12, 5.0.5vite (npm): 4.4.12, 4.5.1, 5.0.5Red Hat: 2 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
vitejsvite4.4.0 to before 4.4.12; = 4.5.0; 5.0.0 to before 5.0.54.4.12, 5.0.5Patch availableCNA
—vite (npm)4.4.0 to before 4.4.124.4.12Patch availableGHSA-92r3-m2mg-pj97
—vite (npm)4.5.0 to before 4.5.14.5.1Patch availableGHSA-92r3-m2mg-pj97
—vite (npm)5.0.0 to before 5.0.55.0.5Patch availableGHSA-92r3-m2mg-pj97
  • vite Vendorvitejs Affected 4.4.0 to before 4.4.12; = 4.5.0; 5.0.0 to before 5.0.5 Fixed in 4.4.12, 5.0.5 Patch available CNA
  • vite (npm) Vendor— Affected 4.4.0 to before 4.4.12 Fixed in 4.4.12 Patch available GHSA-92r3-m2mg-pj97
  • vite (npm) Vendor— Affected 4.5.0 to before 4.5.1 Fixed in 4.5.1 Patch available GHSA-92r3-m2mg-pj97
  • vite (npm) Vendor— Affected 5.0.0 to before 5.0.5 Fixed in 5.0.5 Patch available GHSA-92r3-m2mg-pj97

CPE configurations NVD · 23

CPEVersionsRoleVendor
cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*4.4.0 – 4.4.11; 5.0.0 – 5.0.4Vulnerablevitejs
cpe:2.3:a:vitejs:vite:5.0.0:-:*:*:*:node.js:*:*5.0.0Vulnerablevitejs
cpe:2.3:a:vitejs:vite:5.0.0:beta0:*:*:*:node.js:*:*5.0.0 beta0Vulnerablevitejs
cpe:2.3:a:vitejs:vite:5.0.0:beta1:*:*:*:node.js:*:*5.0.0 beta1Vulnerablevitejs
cpe:2.3:a:vitejs:vite:5.0.0:beta10:*:*:*:node.js:*:*5.0.0 beta10Vulnerablevitejs
cpe:2.3:a:vitejs:vite:5.0.0:beta11:*:*:*:node.js:*:*5.0.0 beta11Vulnerablevitejs
cpe:2.3:a:vitejs:vite:5.0.0:beta12:*:*:*:node.js:*:*5.0.0 beta12Vulnerablevitejs
cpe:2.3:a:vitejs:vite:5.0.0:beta13:*:*:*:node.js:*:*5.0.0 beta13Vulnerablevitejs
cpe:2.3:a:vitejs:vite:5.0.0:beta14:*:*:*:node.js:*:*5.0.0 beta14Vulnerablevitejs
cpe:2.3:a:vitejs:vite:5.0.0:beta15:*:*:*:node.js:*:*5.0.0 beta15Vulnerablevitejs
  • cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:* Versions 4.4.0 – 4.4.11; 5.0.0 – 5.0.4 Vulnerable ·vitejs
  • cpe:2.3:a:vitejs:vite:5.0.0:-:*:*:*:node.js:*:* Versions 5.0.0 Vulnerable ·vitejs
  • cpe:2.3:a:vitejs:vite:5.0.0:beta0:*:*:*:node.js:*:* Versions 5.0.0 beta0 Vulnerable ·vitejs
  • cpe:2.3:a:vitejs:vite:5.0.0:beta1:*:*:*:node.js:*:* Versions 5.0.0 beta1 Vulnerable ·vitejs
  • cpe:2.3:a:vitejs:vite:5.0.0:beta10:*:*:*:node.js:*:* Versions 5.0.0 beta10 Vulnerable ·vitejs
  • cpe:2.3:a:vitejs:vite:5.0.0:beta11:*:*:*:node.js:*:* Versions 5.0.0 beta11 Vulnerable ·vitejs
  • cpe:2.3:a:vitejs:vite:5.0.0:beta12:*:*:*:node.js:*:* Versions 5.0.0 beta12 Vulnerable ·vitejs
  • cpe:2.3:a:vitejs:vite:5.0.0:beta13:*:*:*:node.js:*:* Versions 5.0.0 beta13 Vulnerable ·vitejs
  • cpe:2.3:a:vitejs:vite:5.0.0:beta14:*:*:*:node.js:*:* Versions 5.0.0 beta14 Vulnerable ·vitejs
  • cpe:2.3:a:vitejs:vite:5.0.0:beta15:*:*:*:node.js:*:* Versions 5.0.0 beta15 Vulnerable ·vitejs
Show 13 more CPE
CPEVersionsRoleVendor
cpe:2.3:a:vitejs:vite:5.0.0:beta16:*:*:*:node.js:*:*5.0.0 beta16Vulnerablevitejs
cpe:2.3:a:vitejs:vite:5.0.0:beta17:*:*:*:node.js:*:*5.0.0 beta17Vulnerablevitejs
cpe:2.3:a:vitejs:vite:5.0.0:beta18:*:*:*:node.js:*:*5.0.0 beta18Vulnerablevitejs
cpe:2.3:a:vitejs:vite:5.0.0:beta19:*:*:*:node.js:*:*5.0.0 beta19Vulnerablevitejs
cpe:2.3:a:vitejs:vite:5.0.0:beta2:*:*:*:node.js:*:*5.0.0 beta2Vulnerablevitejs
cpe:2.3:a:vitejs:vite:5.0.0:beta20:*:*:*:node.js:*:*5.0.0 beta20Vulnerablevitejs
cpe:2.3:a:vitejs:vite:5.0.0:beta3:*:*:*:node.js:*:*5.0.0 beta3Vulnerablevitejs
cpe:2.3:a:vitejs:vite:5.0.0:beta4:*:*:*:node.js:*:*5.0.0 beta4Vulnerablevitejs
cpe:2.3:a:vitejs:vite:5.0.0:beta5:*:*:*:node.js:*:*5.0.0 beta5Vulnerablevitejs
cpe:2.3:a:vitejs:vite:5.0.0:beta6:*:*:*:node.js:*:*5.0.0 beta6Vulnerablevitejs
cpe:2.3:a:vitejs:vite:5.0.0:beta7:*:*:*:node.js:*:*5.0.0 beta7Vulnerablevitejs
cpe:2.3:a:vitejs:vite:5.0.0:beta8:*:*:*:node.js:*:*5.0.0 beta8Vulnerablevitejs
cpe:2.3:a:vitejs:vite:5.0.0:beta9:*:*:*:node.js:*:*5.0.0 beta9Vulnerablevitejs
  • cpe:2.3:a:vitejs:vite:5.0.0:beta16:*:*:*:node.js:*:* Versions 5.0.0 beta16 Vulnerable ·vitejs
  • cpe:2.3:a:vitejs:vite:5.0.0:beta17:*:*:*:node.js:*:* Versions 5.0.0 beta17 Vulnerable ·vitejs
  • cpe:2.3:a:vitejs:vite:5.0.0:beta18:*:*:*:node.js:*:* Versions 5.0.0 beta18 Vulnerable ·vitejs
  • cpe:2.3:a:vitejs:vite:5.0.0:beta19:*:*:*:node.js:*:* Versions 5.0.0 beta19 Vulnerable ·vitejs
  • cpe:2.3:a:vitejs:vite:5.0.0:beta2:*:*:*:node.js:*:* Versions 5.0.0 beta2 Vulnerable ·vitejs
  • cpe:2.3:a:vitejs:vite:5.0.0:beta20:*:*:*:node.js:*:* Versions 5.0.0 beta20 Vulnerable ·vitejs
  • cpe:2.3:a:vitejs:vite:5.0.0:beta3:*:*:*:node.js:*:* Versions 5.0.0 beta3 Vulnerable ·vitejs
  • cpe:2.3:a:vitejs:vite:5.0.0:beta4:*:*:*:node.js:*:* Versions 5.0.0 beta4 Vulnerable ·vitejs
  • cpe:2.3:a:vitejs:vite:5.0.0:beta5:*:*:*:node.js:*:* Versions 5.0.0 beta5 Vulnerable ·vitejs
  • cpe:2.3:a:vitejs:vite:5.0.0:beta6:*:*:*:node.js:*:* Versions 5.0.0 beta6 Vulnerable ·vitejs
  • cpe:2.3:a:vitejs:vite:5.0.0:beta7:*:*:*:node.js:*:* Versions 5.0.0 beta7 Vulnerable ·vitejs
  • cpe:2.3:a:vitejs:vite:5.0.0:beta8:*:*:*:node.js:*:* Versions 5.0.0 beta8 Vulnerable ·vitejs
  • cpe:2.3:a:vitejs:vite:5.0.0:beta9:*:*:*:node.js:*:* Versions 5.0.0 beta9 Vulnerable ·vitejs

Remediation

  • Fix · CNA vite (vitejs) Fixed in 4.4.12, 5.0.5
  • Fix · GHSA-92r3-m2mg-pj97 vite (npm) Fixed in 4.4.12 Advisory →
  • Fix · GHSA-92r3-m2mg-pj97 vite (npm) Fixed in 4.5.1 Advisory →
  • Fix · GHSA-92r3-m2mg-pj97 vite (npm) Fixed in 5.0.5 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Build of KeycloakAffectedNo fix planned: Will not fix
Red Hat OpenShift distributed tracing 2AffectedNo fix yet
Not affected: 2 products
  • Red Hat Ansible Automation Platform 2
  • Red Hat JBoss Enterprise Application Platform 8

Timeline

  1. 2026-10-02 Threatist record created from CVE-2023-49293
  2. 2026-10-03 Alias added: GHSA-92r3-m2mg-pj97

References

  • TI-2025-22386 Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query KEVCVSS 3.1HIGH 7.5
  • TI-2026-28350 Vite Affected by Arbitrary File Read via Vite Dev Server WebSocket CVSS 4.0HIGH 8.2
  • TI-2025-21544 Vite bypasses server.fs.deny when using `?raw??` CVSS 3.1HIGH 7.5
  • TI-2023-16938 Vite Server Options (server.fs.deny) can be bypassed using double forward-slash (//) CVSS 3.1HIGH 7.5
  • TI-2026-38634 Vite: `server.fs.deny` bypass on Windows alternate paths CVSS 4.0HIGH 8.2
  • TI-2026-28352 Vite has a Path Traversal in Optimized Deps `.map` Handling CVSS 4.0MEDIUM 6.3
See all 13 →

Sources