Vite allows any websites to send any requests to the development server and read the response (vitejs vite)

CVE-2025-24010
MEDIUM 6.5

At a glance

Source
NVD
EPSS
EPSS 0.30 % · percentile 24 ()
State
PUBLISHED
Published
Updated
Assigner
GitHub_M
Affected products
vitejs · vite
NVD status
Analyzed

Description

Vite is a frontend tooling framework for javascript. 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. This vulnerability is fixed in 6.0.9, 5.4.12, and 4.5.6.

Weaknesses (CWE)

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

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:NGitHub_M
CVSS 3.1MEDIUM 6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:NNVD · security-advisories@github.com (Secondary)

Advisories

European references

Affected configurations (NVD CPE)

Affected products

ProductAffected versions
vitejs · vite
affected : >= 6.0.0, < 6.0.9
affected : >= 5.0.0, < 5.4.12
affected : < 4.5.6

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD