CVE-2024-45812: Vite DOM Clobbering Gadget Found
Affects viteSource GCVE Database
Not known to be exploited · CVSS 6.4 Medium : upgrade to 5.4.6 when convenient.
Data as of 13 Nov 2026, 21:02 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 51% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.4.6
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:HExploitation evidence
Disclosed: evidence found.
CVE published 13 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.
What to do
Upgrade vite to 5.4.6.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewvitepkg:brew/viteOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
An official fix is available for this vulnerability. Users should upgrade Vite to a patched version at or beyond 5.4.6. Until patched, avoid using the vulnerable output formats (cjs, iife, umd) with untrusted content that may allow injection of HTML elements named 'currentScript'. Review and sanitize any user-generated content that can embed HTML elements to prevent DOM Clobbering attacks.
Description
A DOM Clobbering vulnerability in Vite affects bundled scripts built with output formats cjs, iife, or umd. This flaw allows an attacker to manipulate the document.currentScript property by injecting a scriptless HTML element named 'currentScript', causing the application to load attacker-controlled scripts dynamically. This can lead to cross-site scripting (XSS) in web pages that include vulnerable Vite bundles and allow embedding of such HTML elements. The vulnerability impacts Vite versions from 2.5.1 up to but not including 5.4.6. A fix is available.
References
- github.com/vitejs/vite/security/advisories/GHSA-64vr-g452-qvp3 (opens in a new tab)
- github.com/webpack/webpack/security/advisories/GHSA-4vvj-4cpr-p986 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2024-45812 (opens in a new tab)
- github.com/vitejs/vite/commit/179b17773cf35c73ddb041f9e6c703fd9f3126af (opens in a new tab)
- github.com/vitejs/vite/commit/2691bb3ff6b073b41fb9046909e1e03a74e36675 (opens in a new tab)
- github.com/vitejs/vite/commit/2ddd8541ec3b2d2e5b698749e0f2362ef28056bd (opens in a new tab)
- github.com/vitejs/vite/commit/ade1d89660e17eedfd35652165b0c26905259fad (opens in a new tab)
- github.com/vitejs/vite/commit/e8127166979e7ace6eeaa2c3b733c8994caa31f3 (opens in a new tab)
- github.com/vitejs/vite/commit/ebb94c5b3bf41950f45562595adec117a4d0ba5e (opens in a new tab)
- github.com/vitejs/vite (opens in a new tab)
- research.securitum.com/xss-in-amp4email-dom-clobbering (opens in a new tab)
- scnps.co/papers/sp23_domclob.pdf (opens in a new tab)