Vulnerability Monitor

The vendors, products, and vulnerabilities you care about

CVE-2023-49293


Vite is a website frontend framework. When Vite's HTML transformation is invoked manually via `server.transformIndexHtml`, the original request URL is passed in unmodified, and the `html` being transformed contains inline module scripts (`<script type="module">...</script>`), it is possible to inject arbitrary HTML into the transformed output by supplying a malicious URL query string to `server.transformIndexHtml`. Only apps using `appType: 'custom'` and using the default Vite HTML middleware are affected. The HTML entry must also contain an inline script. The attack requires a user to click on a malicious URL while running the dev server. Restricted files aren't exposed to the attacker. This issue has been addressed in [email protected], [email protected], and [email protected]. There are no known workarounds for this vulnerability.


Security Impact Summary

This vulnerability carries a MEDIUM severity rating with a CVSS v3.1 score of 6.1, indicating it can be exploited remotely over the network with relatively low complexity though user interaction is required and does not require pre-existing privileges . The vulnerability impacts limited data confidentiality, limited integrity, for affected systems. Impacting 1 product from vitejs organizations running these solutions should prioritize assessment and patching.

Historical Context

Reported in 2023, this vulnerability emerged during an era marked by increased sophistication in supply chain attacks, cloud infrastructure vulnerabilities, and software-as-a-service (SaaS) security challenges. Security practices during this period emphasized zero-trust architectures, container security, and API protection.


Published

2023-12-04T23:15:27.730

Last Modified

2026-06-17T06:35:47.193

Status

Modified

Source

[email protected]

Severity

CVSSv3.1: 6.1 (MEDIUM)

Weaknesses
  • Type: Secondary
    CWE-79

Affected Vendors & Products
Type Vendor Product Version/Range Vulnerable?
Application vitejs vite ≤ 4.4.11 Yes
Application vitejs vite ≤ 5.0.4 Yes
Application vitejs vite 5.0.0 Yes
Application vitejs vite 5.0.0 Yes
Application vitejs vite 5.0.0 Yes
Application vitejs vite 5.0.0 Yes
Application vitejs vite 5.0.0 Yes
Application vitejs vite 5.0.0 Yes
Application vitejs vite 5.0.0 Yes
Application vitejs vite 5.0.0 Yes
Application vitejs vite 5.0.0 Yes
Application vitejs vite 5.0.0 Yes
Application vitejs vite 5.0.0 Yes
Application vitejs vite 5.0.0 Yes
Application vitejs vite 5.0.0 Yes
Application vitejs vite 5.0.0 Yes
Application vitejs vite 5.0.0 Yes
Application vitejs vite 5.0.0 Yes
Application vitejs vite 5.0.0 Yes
Application vitejs vite 5.0.0 Yes
Application vitejs vite 5.0.0 Yes
Application vitejs vite 5.0.0 Yes
Application vitejs vite 5.0.0 Yes
Application vitejs vite 5.0.0 Yes

References

How SecUtils Interprets This CVE

SecUtils normalizes and enriches National Vulnerability Database (NVD) records by standardizing vendor and product identifiers, aggregating vulnerability metadata from both NVD and MITRE sources, and providing structured context for security teams. For vitejs's affected products, we extract Common Platform Enumeration (CPE) data, Common Weakness Enumeration (CWE) classifications, CVSS severity metrics, and reference data to enable rapid vulnerability prioritization and asset correlation. This record contains no exploit code, proof-of-concept instructions, or attack methodologies—only defensive intelligence necessary for patch management, risk assessment, and security operations.