Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. vite
  4. ›
  5. CVE-2025-24010

CVE-2025-24010: Websites were able to send any requests to the development server and read the response in vite

January 21, 2025 (updated February 7, 2025)

Vite allowed any websites to send any requests to the development server and read the response due to default CORS settings and lack of validation on the Origin header for WebSocket connections.

[!WARNING] This vulnerability even applies to users that only run the Vite dev server on the local machine and does not expose the dev server to the network.

References

  • github.com/advisories/GHSA-vg6x-rcgg-rjx6
  • github.com/vitejs/vite
  • github.com/vitejs/vite/security/advisories/GHSA-vg6x-rcgg-rjx6
  • nvd.nist.gov/vuln/detail/CVE-2025-24010

Code Behaviors & Features

Detect and mitigate CVE-2025-24010 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.5.6, all versions starting from 5.0.0 before 5.4.12, all versions starting from 6.0.0 before 6.0.9

Fixed versions

  • 6.0.9
  • 5.4.12
  • 4.5.6

Solution

Upgrade to versions 4.5.6, 5.4.12, 6.0.9 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-1385: Missing Origin Validation in WebSockets
  • CWE-346: Origin Validation Error
  • CWE-350: Reliance on Reverse DNS Resolution for a Security-Critical Action

Source file

npm/vite/CVE-2025-24010.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:48 +0000.