CVE-2026-112945 Vite: Cross origin script execution through Vite custom middleware
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuRed Hat
Description
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.
Upgrade path
24 packages: 2 fixed, 20 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/amq-broker-bin.zip(Red Hat amq_broker 7) | All versions | No fix listed | No fix yet |
| redhat/amq-broker-maven-repository.zip(Red Hat amq_broker 7) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-26/gateway-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-27/gateway-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/automation-platform-ui(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/devspaces/openvsx-rhel9(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| redhat/jboss-eap-runtime-maven-repository.zip(Red Hat jboss_enterprise_application_platform 8) | All versions | No fix listed | No fix yet |
| redhat/jboss-eap-runtime-maven-repository.zip(Red Hat jbosseapxp) | All versions | No fix listed | No fix yet |
| redhat/jboss-eap.1-runtime-maven-repository.zip(Red Hat jboss_enterprise_application_platform 8) | All versions | No fix listed | No fix yet |
| redhat/jboss-eap.1-runtime-maven-repository.zip(Red Hat jbosseapxp) | All versions | No fix listed | No fix yet |
| redhat/keycloak-operator.redhat-00001.zip(Red Hat build_keycloak) | All versions | No fix listed | No fix yet |
| redhat/keycloak-operator.redhat-00003.zip(Red Hat build_keycloak) | All versions | No fix listed | No fix yet |
| redhat/rh-podman-desktop(Red Hat podman_desktop 1) | All versions | No fix listed | No fix yet |
| redhat/rhbk-quarkus-dist.zip(Red Hat build_keycloak) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-feature-server-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhtas/rhtas-console-ui-rhel9(Red Hat trusted_artifact_signer 1) | All versions | No fix listed | No fix yet |
| ubuntu/vite(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/vite(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/vite(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/vite(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| npm vite(npm) | < 6.4.4; <= 6.4.3; >= 7.0.0, < 7.3.7; >= 7.0.0, <= 7.3.6 +6 more | 6.4.4, 7.3.7, 8.1.6, 8.2.4, 8.3.3 | Fixed |
| npm vite-plus(npm) | < 1.1.0; <= 1.0.0 | 1.1.0 | Fixed |
| vitejs vite | = < 6.4.4; = >= 7.0.0, < 7.3.7; = >= 8.0.0, < 8.1.6; = >= 8.2.0, < 8.2.4 +1 more | No fix listed | Versions listed |
| vitejs vite-plus | = < 1.1.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/amq-broker-bin.zip(Red Hat:amq_broker:7) | All versions | No fix listed |
| redhat/amq-broker-maven-repository.zip(Red Hat:amq_broker:7) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/gateway-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-27/gateway-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/automation-controller(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/automation-eda-controller(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/automation-gateway(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/automation-platform-ui(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/keycloak-operator.redhat-00001.zip(Red Hat:build_keycloak:) | All versions | No fix listed |
| redhat/keycloak-operator.redhat-00003.zip(Red Hat:build_keycloak:) | All versions | No fix listed |
| redhat/rhbk-quarkus-dist.zip(Red Hat:build_keycloak:) | All versions | No fix listed |
| redhat/rh-podman-desktop(Red Hat:podman_desktop:1) | All versions | No fix listed |
| redhat/jboss-eap.1-runtime-maven-repository.zip(Red Hat:jboss_enterprise_application_platform:8) | All versions | No fix listed |
| redhat/jboss-eap-runtime-maven-repository.zip(Red Hat:jboss_enterprise_application_platform:8) | All versions | No fix listed |
| redhat/jboss-eap.1-runtime-maven-repository.zip(Red Hat:jbosseapxp) | All versions | No fix listed |
| redhat/jboss-eap-runtime-maven-repository.zip(Red Hat:jbosseapxp) | All versions | No fix listed |
| redhat/rhoai/odh-feature-server-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/devspaces/openvsx-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
| redhat/rhtas/rhtas-console-ui-rhel9(Red Hat:trusted_artifact_signer:1) | All versions | No fix listed |
| vitejs vite | = >= 8.3.0, < 8.3.3 | No fix listed |
| vitejs vite | = >= 8.2.0, < 8.2.4 | No fix listed |
| vitejs vite | = >= 8.0.0, < 8.1.6 | No fix listed |
| vitejs vite | = >= 7.0.0, < 7.3.7 | No fix listed |
| vitejs vite | = < 6.4.4 | No fix listed |
| vitejs vite-plus | = < 1.1.0 | No fix listed |
Show 16 more
| Product | Affected versions | Fixed in |
|---|---|---|
| npm vite(npm) | >= 8.3.0, <= 8.3.2 | No fix listed |
| npm vite(npm) | >= 8.2.0, <= 8.2.3 | No fix listed |
| npm vite(npm) | >= 8.0.0, <= 8.1.5 | No fix listed |
| npm vite(npm) | >= 7.0.0, <= 7.3.6 | No fix listed |
| npm vite(npm) | <= 6.4.3 | No fix listed |
| npm vite-plus(npm) | <= 1.0.0 | No fix listed |
| ubuntu/vite(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/vite(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/vite(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/vite(Ubuntu:26.10) | All versions | No fix listed |
| npm vite(npm) | >= 8.3.0, < 8.3.3 | 8.3.3 |
| npm vite(npm) | >= 8.2.0, < 8.2.4 | 8.2.4 |
| npm vite(npm) | >= 8.0.0, < 8.1.6 | 8.1.6 |
| npm vite(npm) | >= 7.0.0, < 7.3.7 | 7.3.7 |
| npm vite(npm) | < 6.4.4 | 6.4.4 |
| npm vite-plus(npm) | < 1.1.0 | 1.1.0 |
References
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2556242 issue-tracking
- www.cve.org
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/vitejs/vite/commit/7dafd8e56f152403a3230608fa4005273c2e9e17 patch
- https://github.com/vitejs/vite/pull/23653 patch
- https://github.com/vitejs/vite/security/advisories/GHSA-9jrq-w75r-8gcw exploit vendor-advisory
- github.com
- Ubuntu CVE tracker vendor-advisory
- github.com product
- ENISA EUVD EUVD-2026-105125 third-party-advisory