# Vite DOM Clobbering gadget found in vite bundled scripts that leads to XSS

Advisory record · `GHSA-64vr-g452-qvp3`

- **Identifiers:** `GHSA-64vr-g452-qvp3` · `CVE-2024-45812`
- **State:** Confirmed
- **Severity:** CVSS 6.4 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-79](https://cwe.mitre.org/data/definitions/79.html)
- **Tags:** [Cross-site scripting (XSS)](https://agentprime.io/advisories/tag/xss.md)
- **Published:** 17 Sept 2024
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 17 Sept 2024, 19:28 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `vite` (npm): affected `>=5.4.0, <5.4.6 || >=5.3.0, <5.3.6 || >=5.2.0, <5.2.14 || >=4.0.0, <4.5.4 || <3.2.11 || >=5.0.0, <5.1.8`; fixed in `5.4.6`, `5.3.6`, `5.2.14`, `4.5.4`, `3.2.11`, `5.1.8`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 6.4 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0064, the 51st percentile, on 23 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 17 Sept 2024, 09:12 UTC: [Published by the maintainers as a GitHub repository advisory](https://github.com/vitejs/vite/security/advisories/GHSA-64vr-g452-qvp3)

## Sources

- [GitHub Advisory Database: GHSA-64vr-g452-qvp3](https://github.com/advisories/GHSA-64vr-g452-qvp3)
- [OSV: GHSA-64vr-g452-qvp3](https://osv.dev/vulnerability/GHSA-64vr-g452-qvp3)
- <https://github.com/vitejs/vite/security/advisories/GHSA-64vr-g452-qvp3>
- <https://github.com/webpack/webpack/security/advisories/GHSA-4vvj-4cpr-p986>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-45812>
- <https://github.com/vitejs/vite/commit/179b17773cf35c73ddb041f9e6c703fd9f3126af>
- <https://github.com/vitejs/vite/commit/2691bb3ff6b073b41fb9046909e1e03a74e36675>
- <https://github.com/vitejs/vite/commit/2ddd8541ec3b2d2e5b698749e0f2362ef28056bd>
- <https://github.com/vitejs/vite/commit/ade1d89660e17eedfd35652165b0c26905259fad>
- <https://github.com/vitejs/vite/commit/e8127166979e7ace6eeaa2c3b733c8994caa31f3>
- <https://github.com/vitejs/vite/commit/ebb94c5b3bf41950f45562595adec117a4d0ba5e>
- <https://github.com/vitejs/vite>
- <https://research.securitum.com/xss-in-amp4email-dom-clobbering>
- <https://scnps.co/papers/sp23_domclob.pdf>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-64vr-g452-qvp3>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-64vr-g452-qvp3/>. Everything for agents: <https://agentprime.io/llms.txt>.
