# Vite: Cross origin script execution through Vite custom middleware

Advisory record · `GHSA-9jrq-w75r-8gcw`

- **Identifiers:** `GHSA-9jrq-w75r-8gcw` · `CVE-2026-112945`
- **State:** Confirmed
- **Severity:** CVSS 2.1 Low
- **Critical:** No
- **Weakness (CWE):** [CWE-80](https://cwe.mitre.org/data/definitions/80.html)
- **Tags:** [Cross-site scripting (XSS)](https://agentprime.io/advisories/tag/xss.md)
- **Published:** 21 Oct 2026
- **Updated:** 21 Oct 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 21 Oct 2026, 16:48 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `vite` (npm): affected `>=8.3.0, <8.3.3 || >=8.2.0, <8.2.4 || >=8.0.0, <8.1.6 || >=7.0.0, <7.3.7 || <6.4.4`; fixed in `8.3.3`, `8.2.4`, `8.1.6`, `7.3.7`, `6.4.4`
- `vite-plus` (npm): affected `<1.1.0`; fixed in `1.1.0`

## 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

- 2.1 Low, CVSS 4.0: `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0067, the 52nd percentile, on 12 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 6 Oct 2026, 14:15 UTC: [Published by the maintainers as a GitHub repository advisory](https://github.com/vitejs/vite/security/advisories/GHSA-9jrq-w75r-8gcw)
- 31 Oct 2026, 13:33 UTC: First seen by agentprime
- 31 Oct 2026, 13:33 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-9jrq-w75r-8gcw)

## Sources

- [GitHub Advisory Database: GHSA-9jrq-w75r-8gcw](https://github.com/advisories/GHSA-9jrq-w75r-8gcw)
- [OSV: GHSA-9jrq-w75r-8gcw](https://osv.dev/vulnerability/GHSA-9jrq-w75r-8gcw)
- <https://github.com/vitejs/vite/security/advisories/GHSA-9jrq-w75r-8gcw>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112945>
- <https://github.com/vitejs/vite/pull/23653>
- <https://github.com/vitejs/vite/commit/7dafd8e56f152403a3230608fa4005273c2e9e17>
- <https://github.com/vitejs/vite>

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-9jrq-w75r-8gcw>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-9jrq-w75r-8gcw/>. Everything for agents: <https://agentprime.io/llms.txt>.
