{"id":"CVE-2024-58401","summary":"Bagisto 2.1.0 \u003c 2.2.1 Client-Side Template Injection via search query","details":"Bagisto 2.1.0 before 2.2.1 contains a client-side template injection vulnerability in the search page where the 'query' parameter is rendered unescaped inside a Vue app root. Unauthenticated attackers can send crafted VueJS template expressions to the /bagisto-common/search endpoint via the 'query' parameter to execute arbitrary JavaScript in victims' browsers. Exploitation evidence was first observed by the Shadowserver Foundation on 2024-07-30.","modified":"2026-11-18T17:45:57.907761425Z","published":"2026-11-18T15:34:58.732Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-1336"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58401.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58401.json"},{"type":"FIX","url":"https://github.com/bagisto/bagisto/commit/31234e710c81670b0025eabdc847786e19eb4f65"},{"type":"ARTICLE","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/bagisto-csti.yaml"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58401"},{"type":"EVIDENCE","url":"https://packetstorm.news/files/id/179153/"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/bagisto-2.1.0-2.2.1-client-side-template-injection-via-search-query"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/bagisto-2.1.0-before-2.2.1-client-side-template-injection-via-search-query"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/bagisto/bagisto","events":[{"introduced":"99f06d40670b631e995f05e6bef7ffae00b428ee"},{"fixed":"ba2f865dc64f42d961a7b983dd46a65ab34dd99d"},{"fixed":"31234e710c81670b0025eabdc847786e19eb4f65"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"2.1.0"},{"fixed":"2.2.1"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"31234e710c81670b0025eabdc847786e19eb4f65"}]}]}}],"versions":["v2.2.0","v2.1.2","v2.1.1","v2.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-58401.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"}]}