CVE-2024-58401
Bagisto 2.1.0 < 2.2.1 Client-Side Template Injection via search query
Medium · 5.1Fix available
- CVSS
- 5.1
- EPSS
- 0.32% (p27)
- Published
- 2026-11-18
- Age
- 18d old
- Modified
- 2026-11-19
- Product
- Webkul Bagisto
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
Description
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.
Fixed in
2.2.1
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | Bagisto | >=2.1.0, <2.2.1 | 2.2.1 |
Sources
- NVD · first seen 18d ago · NVD terms of use
- OSV · first seen 18d ago · CC-BY 4.0
- CVE List · first seen 18d ago · CVE Terms of Use
References
- https://packetstorm.news/files/id/179153/ exploit
- https://github.com/bagisto/bagisto/commit/31234e710c81670b0025eabdc847786e19eb4f65 patch
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/bagisto-csti.yaml technical-description
- https://www.vulncheck.com/advisories/bagisto-2.1.0-before-2.2.1-client-side-template-injection-via-search-query third-party-advisory
- https://www.vulncheck.com/advisories/bagisto-2.1.0-2.2.1-client-side-template-injection-via-search-query third-party-advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58401.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2024-58401 advisory