Bug 2556242 (CVE-2026-112945) - CVE-2026-112945 vite: vite: Arbitrary script execution via improper URL handling during HTML transformation
Summary: CVE-2026-112945 vite: vite: Arbitrary script execution via improper URL handl...
Keywords:
Status: NEW
Alias: CVE-2026-112945
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2561770 2561771 2561772
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-20 15:32 UTC by OSIDB Bzimport
Modified: 2026-11-03 08:30 UTC (History)
54 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-10-20 15:32:39 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.