{"cve":"CVE-2025-31125","nvd":{"published":"2025-03-31T17:15:43.163","modified":"2026-06-17T09:09:54.040","status":"Analyzed","description":"Vite is a frontend tooling framework for javascript. Vite exposes content of non-allowed files using ?inline&import or ?raw?import. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected. This vulnerability is fixed in 6.2.4, 6.1.3, 6.0.13, 5.4.16, and 4.5.11.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5},"cwes":["CWE-200","CWE-284"],"references":["https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949","https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8","https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8","https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125"],"products":["vitejs:vite"],"source":"nvd","synced_at":"2026-10-19T22:00:28.034033815+00:00"},"epss":{"cve":"CVE-2025-31125","score":0.74939,"percentile":0.99506,"date":"2026-11-01"},"kev":{"cve":"CVE-2025-31125","date_added":"2026-01-22","due_date":"2026-02-12","vendor":"Vite","product":"Vitejs","known_ransomware":false},"osv":[{"id":"GHSA-4r4m-qw57-chr8","url":"https://osv.dev/vulnerability/GHSA-4r4m-qw57-chr8","summary":"Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query","modified":"2026-09-10T03:50:56.858424937Z","packages":[{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=6.2.0 <6.2.4"],"fixed":["6.2.4"]},{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=6.1.0 <6.1.3"],"fixed":["6.1.3"]},{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=6.0.0 <6.0.13"],"fixed":["6.0.13"]},{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=5.0.0 <5.4.16"],"fixed":["5.4.16"]},{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":["<4.5.11"],"fixed":["4.5.11"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}