CVE-2024-58401: Bagisto Template Injection
Published 2026-11-18 · Updated 2026-11-19 · Source disclosure@vulncheck.com
Not known to be exploited · medium severity — update Bagisto to 2.2.1 or later on your normal schedule.
What to do
- Update Bagisto to version 2.2.1 or later. Versions from 2.1.0 up to, but not including, 2.2.1 are affected.
- Until it is patched, do not leave Bagisto reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
- Restrict who can edit templates or the affected fields until the fix is applied.
- Exploitation needs a victim to act, so warn users of the affected system about unexpected links and files.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| Bagisto | ≥ 2.1.0, < 2.2.1 | 2.2.1 |
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
It can be exploited remotely over the network; the attacker does not need an account, and a victim has to take an action such as opening a link or file. Attack complexity is low, so a working exploit is expected to be reliable. The impact is limited: confidentiality and integrity are rated low. A successful attack can affect components beyond the vulnerable one.
| Attack vector | Network | It can be exploited remotely over the network. |
|---|---|---|
| Attack complexity | Low | No special conditions are needed; the attack is repeatable. |
| Privileges required | None | The attacker does not need an account. |
| User interaction | Required | A victim has to take an action, such as opening a link or file. |
| Confidentiality | Low | Partial loss of confidentiality. |
| Integrity | Low | Partial loss of integrity. |
| Availability | None | No effect on availability. |
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness: Template Injection
Attacker-controlled input is evaluated by a template engine, which commonly leads to code execution on the server.
Classified as CWE-1336.
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.
Advisory text as published in the NVD record.
References
- Patchhttps://github.com/bagisto/bagisto/commit/31234e710c81670b0025eabdc847786e19eb4f65
- Advisoryhttps://www.vulncheck.com/advisories/bagisto-2.1.0-2.2.1-client-side-template-injection-via-search-query
- Advisoryhttps://www.vulncheck.com/advisories/bagisto-2.1.0-before-2.2.1-client-side-template-injection-via-search-query
- Exploithttps://packetstorm.news/files/id/179153/
- Referencehttps://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/bagisto-csti.yaml