{"url":"http://public2.vulnerablecode.io/api/packages/66827?format=json","purl":"pkg:npm/vite@5.0.5","type":"npm","namespace":"","name":"vite","version":"5.0.5","qualifiers":{},"subpath":"","is_vulnerable":false,"next_non_vulnerable_version":"5.0.12","latest_non_vulnerable_version":"7.1.11","affected_by_vulnerabilities":[],"fixing_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/18956?format=json","vulnerability_id":"VCID-qqmk-huxn-kkcq","summary":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')\nVite is a website frontend framework. When Vite's HTML transformation is invoked manually via `server.transformIndexHtml`, the original request URL is passed in unmodified, and the `html` being transformed contains inline module scripts (`<script type=\"module\">...</script>`), it is possible to inject arbitrary HTML into the transformed output by supplying a malicious URL query string to `server.transformIndexHtml`. Only apps using `appType: 'custom'` and using the default Vite HTML middleware are affected. The HTML entry must also contain an inline script. The attack requires a user to click on a malicious URL while running the dev server. Restricted files aren't exposed to the attacker. This issue has been addressed in vite@5.0.5, vite@4.5.1, and vite@4.4.12. There are no known workarounds for this vulnerability.","references":[{"reference_url":"https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2023-49293.json","reference_id":"","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}],"url":"https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2023-49293.json"},{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2023-49293","reference_id":"","reference_type":"","scores":[{"value":"0.08295","scoring_system":"epss","scoring_elements":"0.92381","published_at":"2026-05-30T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2023-49293"},{"reference_url":"https://github.com/vitejs/vite","reference_id":"","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/vitejs/vite"},{"reference_url":"https://bugzilla.redhat.com/show_bug.cgi?id=2252893","reference_id":"2252893","reference_type":"","scores":[],"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2252893"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2023-49293","reference_id":"CVE-2023-49293","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-49293"},{"reference_url":"https://github.com/advisories/GHSA-92r3-m2mg-pj97","reference_id":"GHSA-92r3-m2mg-pj97","reference_type":"","scores":[{"value":"MODERATE","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-92r3-m2mg-pj97"},{"reference_url":"https://github.com/vitejs/vite/security/advisories/GHSA-92r3-m2mg-pj97","reference_id":"GHSA-92r3-m2mg-pj97","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"cvssv3.1_qr","scoring_elements":""},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2025-05-29T13:40:33Z/"}],"url":"https://github.com/vitejs/vite/security/advisories/GHSA-92r3-m2mg-pj97"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/66825?format=json","purl":"pkg:npm/vite@4.4.12","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/vite@4.4.12"},{"url":"http://public2.vulnerablecode.io/api/packages/66826?format=json","purl":"pkg:npm/vite@4.5.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-s6e9-86vw-kqej"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/vite@4.5.1"},{"url":"http://public2.vulnerablecode.io/api/packages/66827?format=json","purl":"pkg:npm/vite@5.0.5","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/vite@5.0.5"}],"aliases":["CVE-2023-49293","GHSA-92r3-m2mg-pj97"],"risk_score":2.8,"exploitability":"0.5","weighted_severity":"5.5","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-qqmk-huxn-kkcq"}],"risk_score":null,"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/vite@5.0.5"}