CORS Misconfiguration in Vite Framework Affects WebSocket Security
CVE-2025-24010

6.5MEDIUM

Key Information:

Vendor
Vitejs
Status
Vendor
CVE Published:
20 January 2025

Summary

The Vite framework, a popular frontend tooling solution for JavaScript, has a security flaw that permits any website to send requests to its development server. This issue arises from default CORS settings and insufficient validation of the Origin header for WebSocket connections. As a result, sensitive data could potentially be exposed, enabling malicious actors to exploit this vulnerability. The issue has been addressed in versions 6.0.9, 5.4.12, and 4.5.6 as listed in the advisory.

Affected Version(s)

vite >= 6.0.0, < 6.0.9 < 6.0.0, 6.0.9

vite >= 5.0.0, < 5.4.12 < 5.0.0, 5.4.12

vite < 4.5.6 < 4.5.6

References

CVSS V3.1

Score:
6.5
Severity:
MEDIUM
Confidentiality:
High
Integrity:
None
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.
CVE-2025-24010 : CORS Misconfiguration in Vite Framework Affects WebSocket Security | SecurityVulnerability.io