{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2025-31125","published":"2025-03-31T17:15:43.163000Z","last_modified":"2026-06-17T09:09:54.040000Z","status":"Analyzed","cvss":{"version":"3.1","score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-200","CWE-284"],"cpes":[{"criteria":"cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*","part":"a","vendor":"vitejs","product":"vite","version_end_excluding":"4.5.11"},{"criteria":"cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*","part":"a","vendor":"vitejs","product":"vite","version_start_including":"5.0.0","version_end_excluding":"5.4.16"},{"criteria":"cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*","part":"a","vendor":"vitejs","product":"vite","version_start_including":"6.0.0","version_end_excluding":"6.0.13"},{"criteria":"cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*","part":"a","vendor":"vitejs","product":"vite","version_start_including":"6.1.0","version_end_excluding":"6.1.3"},{"criteria":"cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*","part":"a","vendor":"vitejs","product":"vite","version_start_including":"6.2.0","version_end_excluding":"6.2.4"}],"cpes_truncated":false,"vendors":["vitejs"],"products":["vitejs/vite"],"ssvc":{"exploitation":"active","automatable":"no","technical_impact":"total"},"kev":{"date_added":"2026-01-22","due_date":"2026-02-12","ransomware":false,"forensic_triage":false,"cwes":["CWE-200","CWE-284"]},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-4r4m-qw57-chr8","ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[{"introduced":"6.2.0","fixed":"6.2.4"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-4r4m-qw57-chr8","ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[{"introduced":"6.1.0","fixed":"6.1.3"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-4r4m-qw57-chr8","ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[{"introduced":"6.0.0","fixed":"6.0.13"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-4r4m-qw57-chr8","ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[{"introduced":"5.0.0","fixed":"5.4.16"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-4r4m-qw57-chr8","ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[{"introduced":"0","fixed":"4.5.11"}],"versions":[],"versions_truncated":false}],"severity":"high","priority_score":60,"links":{"html_es":"/es/cve/CVE-2025-31125/","html_en":"/en/cve/CVE-2025-31125/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-31125","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-31125"},"untrusted":{"vendor_name":"Vite","product_name":"Vitejs","desc_en":"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.","affected":[{"untrusted_vendor":"vitejs","untrusted_product":"vite"}],"kev":{"vendor":"Vite","product":"Vitejs","name":"Vite Vitejs Improper Access Control Vulnerability","desc":"Vite Vitejs contains an improper access control vulnerability that 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.","action":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","notes":"This vulnerability could affect an open-source component, third-party library, protocol, or proprietary implementation that could be used by different products. For more information, please see: https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949 ; https://nvd.nist.gov/vuln/detail/CVE-2025-31125"},"ai":{"model":"us.anthropic.claude-haiku-4-5-20251001-v1:0","prompt_version":"2","input_hash":"177b259d86867f5f73f5be9495ed33d4","generated":"2026-11-26T23:13:32.197832Z","es":{"untrusted_title":"Divulgación de información en Vite por acceso impropio a archivos","untrusted_summary":"Vite expone contenido de archivos no permitidos mediante parámetros ?inline&import o ?raw?import cuando el servidor de desarrollo está expuesto a la red. Un atacante sin autenticación puede acceder a archivos sensibles si la aplicación usa --host o la opción server.host. CISA confirmó que esta vulnerabilidad está siendo explotada activamente."},"en":{"untrusted_title":"Information Disclosure in Vite via Improper File Access Control","untrusted_summary":"Vite exposes content of non-allowed files using ?inline&import or ?raw?import parameters when the dev server is exposed to the network. An unauthenticated attacker can access sensitive files if the application uses --host or server.host option. CISA confirmed this vulnerability is actively exploited."},"remediation":{"status":"fix","fixed_versions":["4.5.11","5.4.16","6.0.13","6.1.3","6.2.4"],"untrusted_action_es":"Actualiza Vite a versión 4.5.11, 5.4.16, 6.0.13, 6.1.3 o 6.2.4 según tu rama. Evita exponer el servidor de desarrollo a la red en producción.","untrusted_action_en":"Update Vite to version 4.5.11, 5.4.16, 6.0.13, 6.1.3, or 6.2.4 depending on your branch. Avoid exposing the dev server to the network in production.","vendor_url":"https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8"},"reviewed":false},"references":[{"url":"https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949","tags":["Patch"]},{"url":"https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8","tags":["Exploit","Vendor Advisory"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125","tags":["US Government Resource"]}]}}