Skip to main content

CVE-2026-112945: CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in vitejs vite

0
Low
VulnerabilityCVE-2026-112945cvecve-2026-112945cwe-80
Published: 10/20/2026 (10/20/2026, 15:00:58 UTC)
Source: CVE Database V5
Vendor/Project: vitejs
Product: vite

Description

Vite, a JavaScript frontend tooling framework, has a cross-site scripting (XSS) vulnerability identified as CVE-2026-112945. This vulnerability affects versions prior to 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3 when applications use custom middleware that passes an unchanged browser request URL to server.transformIndexHtml. The flaw allows attacker-controlled module execution via crafted development-server pages, potentially exposing sensitive data or enabling critical actions. The issue is fixed in the specified patched versions.

CVSS v4.0

Score 2.1low

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

vitejs

vite

Affected versions
>=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

vitejs

vite-plus

Affected versions
<1.1.0
vitejs/vite
pkg:npm/vitejs/vite
Affected versions
<6.4.4<1.1.0>=7.0.0 <7.3.7>=8.0.0 <8.1.6>=8.2.0 <8.2.4>=8.3.0 <8.3.3

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/20/2026, 15:49:19 UTC

Technical Analysis

CVE-2026-112945 is an improper neutralization of script-related HTML tags (CWE-80) vulnerability in Vite. When custom middleware passes an unchanged browser request URL to server.transformIndexHtml, the function getHtmlFilename uses this query-bearing URL to resolve local files but preserves leading slashes in the generated proxy module URL. If the transformed HTML contains an inline module script, the leading double slash causes the browser to fetch and execute an attacker-controlled module. This can lead to exposure of sensitive page data or execution of critical actions within the affected application. The vulnerability is addressed in Vite versions 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3.

Potential Impact

Successful exploitation allows an attacker to execute arbitrary module scripts in the context of the development server page, potentially exposing sensitive data or enabling critical actions accessible to the application. The CVSS 4.0 base score is 2.1, indicating low severity with network attack vector, low complexity, partial attack and user interaction required, and low impact on confidentiality and integrity.

Mitigation Recommendations

This vulnerability is fixed in Vite versions 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3. Users should upgrade to these or later versions to remediate the issue. No additional mitigation steps are indicated by the vendor advisory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-10-19T21:30:47.245Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6ad789f42cdf04f6563b842c

Added to database: 10/20/2026, 15:34:12 UTC

Last enriched: 10/20/2026, 15:49:19 UTC

Last updated: 10/20/2026, 19:06:08 UTC

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses