Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. vite
  4. ›
  5. CVE-2026-112945

CVE-2026-112945: Vite: Cross origin script execution through Vite custom middleware

October 21, 2026

When accessing a malicious site while a dev server using Vite is running, that site was able to load scripts in a page served by the dev server.

References

  • github.com/advisories/GHSA-9jrq-w75r-8gcw
  • github.com/vitejs/vite/commit/7dafd8e56f152403a3230608fa4005273c2e9e17
  • github.com/vitejs/vite/pull/23653
  • github.com/vitejs/vite/security/advisories/GHSA-9jrq-w75r-8gcw
  • nvd.nist.gov/vuln/detail/CVE-2026-112945

Code Behaviors & Features

Detect and mitigate CVE-2026-112945 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 6.4.4, all versions starting from 7.0.0 before 7.3.7, all versions starting from 8.0.0 before 8.1.6, all versions starting from 8.2.0 before 8.2.4, all versions starting from 8.3.0 before 8.3.3

Fixed versions

  • 6.4.4
  • 7.3.7
  • 8.1.6
  • 8.2.4
  • 8.3.3

Solution

Upgrade to versions 6.4.4, 7.3.7, 8.1.6, 8.2.4, 8.3.3 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)

Source file

npm/vite/CVE-2026-112945.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:55 +0000.