CVE-2024-58401
published medium CVSS 4.0 · 5.1Bagisto 2.1.0 < 2.2.1 Client-Side Template Injection via search query
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Webkul | — | Bagisto2.1.0 to < 2.2.1 · Other versions: unaffected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.1 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.1 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Webkul | Bagisto | 2.1.0 to < 2.2.1 (affected · custom)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine
References
5- Fix Commit https://github.com/bagisto/bagisto/commit/31234e710c81670b0025eabdc847786e19eb4f65
- Nuclei Template https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/bagisto-csti.yaml
- Packet Storm 179153 https://packetstorm.news/files/id/179153/
- VulnCheck Advisory: Bagisto 2.1.0 < 2.2.1 Client-Side Template Injection via search query https://www.vulncheck.com/advisories/bagisto-2.1.0-2.2.1-client-side-template-injection-via-search-query
- VulnCheck Advisory: Bagisto 2.1.0 before 2.2.1 Client-Side Template Injection via search query https://www.vulncheck.com/advisories/bagisto-2.1.0-before-2.2.1-client-side-template-injection-via-search-query
Provider assertions
2VulnCheck · cna
Bagisto 2.1.0 < 2.2.1 Client-Side Template Injection via search query
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f41541738335e28ef9c1363fc80bfc9a2a022cd59992fce6512112a27334043b
- Ingested
- 18 Nov 2026, 16:35:59 UTC
- Source record
- Official CVE record