{"id":"CVE-2024-58401","aliases":[],"title":"Bagisto 2.1.0 < 2.2.1 Client-Side Template Injection via search query","originalDescription":"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.","severity":{"cvss":5.1,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","label":"medium"},"exploitation":{"kev":null,"epss":{"score":0.00324,"percentile":0.27375},"exploitDb":null},"affected":[{"ecosystem":"vendor","name":"Bagisto","range":">=2.1.0, <2.2.1","fixed":"2.2.1"}],"references":[{"url":"https://packetstorm.news/files/id/179153/","type":"exploit"},{"url":"https://github.com/bagisto/bagisto/commit/31234e710c81670b0025eabdc847786e19eb4f65","type":"patch"},{"url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/bagisto-csti.yaml","type":"technical-description"},{"url":"https://www.vulncheck.com/advisories/bagisto-2.1.0-before-2.2.1-client-side-template-injection-via-search-query","type":"third-party-advisory"},{"url":"https://www.vulncheck.com/advisories/bagisto-2.1.0-2.2.1-client-side-template-injection-via-search-query","type":"third-party-advisory"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58401.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58401","type":"advisory"}],"sources":[{"name":"nvd","at":"2026-11-19T21:47:02.442Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58401","license":"NVD terms of use","firstSeenAt":"2026-11-18T16:30:57.054Z"},{"name":"osv","at":"2026-11-18T18:43:25.980Z","url":"https://osv.dev/vulnerability/CVE-2024-58401","license":"CC-BY 4.0","firstSeenAt":"2026-11-18T17:04:32.000Z"},{"name":"cvelistV5","at":"2026-11-19T21:46:30.168Z","url":"https://www.cve.org/CVERecord?id=CVE-2024-58401","license":"CVE Terms of Use","firstSeenAt":"2026-11-18T15:55:18.034Z"}],"firstSeenAt":"2026-11-18T15:55:18.034Z","publishedAt":"2026-11-18T15:34:58.732Z","modifiedAt":"2026-11-19T21:45:05.007Z"}