HackerFeeds
All CVEs

CVE-2024-58401: Bagisto Template Injection

MEDIUM6.1

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

  1. Update Bagisto to version 2.2.1 or later. Versions from 2.1.0 up to, but not including, 2.2.1 are affected.
  2. Until it is patched, do not leave Bagisto reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
  3. Restrict who can edit templates or the affected fields until the fix is applied.
  4. Exploitation needs a victim to act, so warn users of the affected system about unexpected links and files.

Affected and fixed versions

ProductAffectedFixed in
Bagisto≥ 2.1.0, < 2.2.12.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.

CVSS 3.1 metrics for CVE-2024-58401
Attack vectorNetworkIt can be exploited remotely over the network.
Attack complexityLowNo special conditions are needed; the attack is repeatable.
Privileges requiredNoneThe attacker does not need an account.
User interactionRequiredA victim has to take an action, such as opening a link or file.
ConfidentialityLowPartial loss of confidentiality.
IntegrityLowPartial loss of integrity.
AvailabilityNoneNo 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.

View on NVD