{"answers":{"affected":"6 open source packages ship an affected version, including vite. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-24010 exists.","fix":"Upgrade vite to a fixed version for your release line: 4.5.6, 5.4.12 or 6.0.9.","what":"CVE-2025-24010 is a medium-severity missing authorization vulnerability in vitejs vite, published on 20 Jan 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-24010 and fix it if it is affected.\n\nWhat it is: CVE-2025-24010 is a medium-severity missing authorization vulnerability in vitejs vite, published on 20 Jan 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-24010 exists.\n\nAffected packages and fixed versions:\n- vite (npm): affected all versions; fixed in 4.5.6\n- vite (npm): affected all versions; fixed in 4.5.6\n- vite (npm): affected from 5.0.0; fixed in 5.4.12\n- vite (npm): affected from 5.0.0; fixed in 5.4.12\n- vite (npm): affected from 6.0.0; fixed in 6.0.9\n- vite (npm): affected from 6.0.0; fixed in 6.0.9\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-24010/ (Markdown: https://insights.sbomify.com/CVE-2025-24010/index.md)","id":"CVE-2025-24010","markdown":"https://insights.sbomify.com/CVE-2025-24010/index.md","name":"CVE-2025-24010","record":{"aliases":["CLSA-2026-1791806355","GHSA-vg6x-rcgg-rjx6","MINI-w53c-chvf-q48m"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Vite frontend tooling","requires_auth":"none","summary":"Attackers can send arbitrary requests to the Vite development server and read responses due to missing Origin validation and permissive CORS settings.","user_interaction":"required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"vite","vendor":"vitejs"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-350","name":"Reliance on Reverse DNS Resolution for a Security-Critical Action"},{"id":"CWE-346","name":"Origin Validation Error"},{"id":"CWE-1385","name":"Missing Origin Validation in WebSockets"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Vite allows any websites to send any requests to the development server and read the response","id":"CVE-2025-24010","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"missing_authorization","year":"2025"},"n_packages":6,"n_references":1,"next":{"headline":"Umbraco CMS Vulnerable to User Enumeration Feasible Based On Management API Timing and Response Codes","id":"CVE-2025-24011"},"packages":[{"ecosystem":"npm","fixed":["4.5.6"],"introduced":["0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-vg6x-rcgg-rjx6"},{"ecosystem":"npm","fixed":["4.5.6"],"introduced":["0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-vg6x-rcgg-rjx6"},{"ecosystem":"npm","fixed":["5.4.12"],"introduced":["5.0.0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-vg6x-rcgg-rjx6"},{"ecosystem":"npm","fixed":["5.4.12"],"introduced":["5.0.0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-vg6x-rcgg-rjx6"},{"ecosystem":"npm","fixed":["6.0.9"],"introduced":["6.0.0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-vg6x-rcgg-rjx6"},{"ecosystem":"npm","fixed":["6.0.9"],"introduced":["6.0.0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-vg6x-rcgg-rjx6"}],"prev":{"headline":"Missing authorization in SIRIUS 3RK3 Modular Safety System (MSS)","id":"CVE-2025-24009"},"products":["vite"],"published":"2025-01-20","related":[{"cvss_score":5.3,"headline":"Vite Vitejs Improper Access Control","id":"CVE-2025-31125","kev_date_added":"2026-01-22","published":"2025-03-31"},{"cvss_score":8.2,"headline":"Vite: `server.fs.deny` bypass on Windows alternate paths","id":"CVE-2026-53571","kev_date_added":null,"published":"2026-06-22"},{"cvss_score":8.2,"headline":"Vite Affected by Arbitrary File Read via Vite Dev Server WebSocket","id":"CVE-2026-39363","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":8.2,"headline":"Vite has a `server.fs.deny` bypass with queries","id":"CVE-2026-39364","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":7.5,"headline":"Vite dev server option `server.fs.deny` can be bypassed when hosted on case-insensitive filesystem","id":"CVE-2024-23331","kev_date_added":null,"published":"2024-01-19"},{"cvss_score":7.5,"headline":"Vite Server Options (server.fs.deny) can be bypassed using double forward-slash (//)","id":"CVE-2023-34092","kev_date_added":null,"published":"2023-06-01"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-01-21","vendors":["vitejs"]},"summary":"Attackers can send arbitrary requests to the Vite development server and read responses due to missing Origin validation and permissive CORS settings.","url":"https://insights.sbomify.com/CVE-2025-24010/"}