{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-45811","id":"CVE-2024-45811","title":"server.fs.deny bypassed when using ?import&raw in vite","description":"Vite a frontend build tooling framework for javascript. In affected versions the contents of arbitrary files can be returned to the browser. `@fs` denies access to files outside of Vite serving allow list. Adding `?import&raw` to the URL bypasses this limitation and returns the file content if it exists. This issue has been patched in versions 5.4.6, 5.3.6, 5.2.14, 4.5.5, and 3.2.11. Users are adv","descriptionLong":"Vite a frontend build tooling framework for javascript. In affected versions the contents of arbitrary files can be returned to the browser. `@fs` denies access to files outside of Vite serving allow list. Adding `?import&raw` to the URL bypasses this limitation and returns the file content if it exists. This issue has been patched in versions 5.4.6, 5.3.6, 5.2.14, 4.5.5, and 3.2.11. Users are advised to upgrade. There are no known workarounds for this vulnerability.","published":"2024-09-17T20:08:11.801Z","updated":"2026-11-11T10:47:18.253315317Z","reserved":"2024-09-09T14:23:07.505Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"medium","source":"GitHub"},{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["vitejs vite"],"affectedProducts":[{"vendor":"vitejs","product":"vite","defaultStatus":null,"versions":[{"version":">= 5.4.0, < 5.4.6","status":"affected"},{"version":">= 5.3.0, < 5.3.6","status":"affected"},{"version":">= 5.0.0, < 5.2.14","status":"affected"},{"version":">= 4.0.0, < 4.5.5","status":"affected"},{"version":"< 3.2.11","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=5.4.0 <5.4.6",">=5.3.0 <5.3.6",">=5.2.0 <5.2.14",">=4.0.0 <4.5.4","<3.2.11",">=5.0.0 <5.1.8"],"fixed":["5.4.6","5.3.6","5.2.14","4.5.4","3.2.11","5.1.8"],"advisory":"GHSA-9cwx-2883-4wfx"}],"cwes":["CWE-200","CWE-284"],"aliases":["GHSA-9cwx-2883-4wfx"],"references":[{"url":"https://github.com/vitejs/vite/security/advisories/GHSA-9cwx-2883-4wfx","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/vitejs/vite/commit/6820bb3b9a54334f3268fc5ee1e967d2e1c0db34","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/45xxx/CVE-2024-45811.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45811","tags":["advisory"]},{"url":"https://github.com/vitejs/vite/commit/4573a6fd6f1b097fb7296a3e135e0646b996b249","tags":["web"]},{"url":"https://github.com/vitejs/vite/commit/8339d7408668686bae56eaccbfdc7b87612904bd","tags":["web"]},{"url":"https://github.com/vitejs/vite/commit/a6da45082b6e73ddfdcdcc06bb5414f976a388d6","tags":["web"]},{"url":"https://github.com/vitejs/vite/commit/b901438f99e667f76662840826eec91c8ab3b3e7","tags":["web"]},{"url":"https://github.com/vitejs/vite","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.01105,"epssPercentile":0.6649,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-45811","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45811","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-45811","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-9cwx-2883-4wfx","ok":true,"note":"GHSA-9cwx-2883-4wfx"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-45811","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}