cve.bz

CVE-2026-112945 vitejs

2.1 lowEPSS 0.7%Fix available

Low (2.1) in vitejs. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in vite 6.4.4, 7.3.7, 8.1.6.

On this page
Vite is a frontend tooling framework for JavaScript. Prior to 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3, applications using custom middleware are vulnerable when they pass an unchanged browser request URL to server.transformIndexHtml. getHtmlFilename uses the query-bearing request URL to resolve an existing local file while preserving attacker-supplied leading slashes in the generated proxy module URL. If the transformed HTML contains an inline module script and a victim browser loads the crafted development-server page, the leading double slash makes the browser fetch and execute an attacker-controlled module in the Vite-served page. This execution can expose sensitive page data or permit critical actions available to the affected application. This issue is fixed in versions 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3.

Severity

CVSS 4.0

2.1 low
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
EPSS
0.7% (unchanged from 0.7% a week ago) estimated probability of exploitation activity in the next 30 days; 53rd percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-10-28. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • vite (npm): fixed in 8.3.3, 8.2.4, 8.1.6, 7.3.7, 6.4.4
  • vite-plus (npm): fixed in 1.1.0

Ask an AI about this CVE

Show the promptExplain CVE-2026-112945 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-112945?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-112945?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-112945 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
vitejs vite>= 8.3.0, < 8.3.3
vitejs vite>= 8.2.0, < 8.2.4
vitejs vite>= 8.0.0, < 8.1.6
vitejs vite>= 7.0.0, < 7.3.7
vitejs vite< 6.4.4
vitejs vite-plus< 1.1.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-9jrq-w75r-8gcwnpmvite>=8.3.0 <8.3.38.3.3
GHSA-9jrq-w75r-8gcwnpmvite>=8.2.0 <8.2.48.2.4
GHSA-9jrq-w75r-8gcwnpmvite>=8.0.0 <8.1.68.1.6
GHSA-9jrq-w75r-8gcwnpmvite>=7.0.0 <7.3.77.3.7
GHSA-9jrq-w75r-8gcwnpmvite<6.4.46.4.4
GHSA-9jrq-w75r-8gcwnpmvite-plus<1.1.01.1.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 4 moreviteno fix listedUBUNTU-CVE-2026-112945

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated as Moderate impact because exploitation is restricted to local development environments and necessitates both user interaction and an uncommon custom server configuration. The flaw only triggers when an application implements custom Vite middleware and passes raw, untrusted request paths directly into the HTML transformation pipeline containing inline module scripts. Standard Vite development servers and production application builds that serve pre-compiled assets are not susceptible to this attack, limiting the potential blast radius across Red Hat product deployments.

ProductPackageStateAdvisory
Red Hat AMQ Broker 7amq-broker-bin.zipFix deferred
Red Hat AMQ Broker 7amq-broker-maven-repository.zipFix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/gateway-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-27/gateway-rhel9Fix deferred
Red Hat Ansible Automation Platform 2automation-controllerOut of support scope
Red Hat Ansible Automation Platform 2automation-eda-controllerOut of support scope
Red Hat Ansible Automation Platform 2automation-gatewayOut of support scope
Red Hat Ansible Automation Platform 2automation-platform-uiFix deferred
Red Hat Build of Keycloakkeycloak-operator.redhat-00001.zipFix deferred
Red Hat Build of Keycloakkeycloak-operator.redhat-00003.zipFix deferred
Red Hat Build of Keycloakrhbk-quarkus-dist.zipFix deferred
Red Hat Build of Podman Desktoprh-podman-desktopFix deferred
Red Hat Hardened Imagesgrafana13.2Not affected
Red Hat Hardened Imagesprometheus3.13Not affected
Red Hat JBoss Enterprise Application Platform 8jboss-eap.1-runtime-maven-repository.zipFix deferred
Red Hat JBoss Enterprise Application Platform 8jboss-eap-runtime-maven-repository.zipFix deferred
Red Hat JBoss Enterprise Application Platform Expansion Packjboss-eap.1-runtime-maven-repository.zipFix deferred
Red Hat JBoss Enterprise Application Platform Expansion Packjboss-eap-runtime-maven-repository.zipFix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-feature-server-rhel9Fix deferred
Red Hat OpenShift Dev Spacesdevspaces/openvsx-rhel9Fix deferred
1 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-112945.

Attack patterns (CAPEC)

  • CAPEC-18 XSS Targeting Non-Script Elements Likelihood: High · Severity: Very High
  • CAPEC-32 XSS Through HTTP Query Strings Likelihood: High · Severity: High
  • CAPEC-86 XSS Through HTTP Headers Likelihood: High · Severity: Very High
  • CAPEC-193 PHP Remote File Inclusion Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON