
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-21450 is a Server-Side Template Injection (SSTI) vulnerability in Bagisto, an open-source Laravel eCommerce platform developed by Webkul. Versions prior to 2.3.10 are vulnerable to SSTI via the type query parameter in the reporting module, which can lead to remote code execution (RCE) or other exploitation. The vulnerability was disclosed on January 2, 2026, with a patch released the same day in version 2.3.10. NVD assigned a CVSS v3.1 base score of 9.8 (Critical), while the CNA (GitHub) assigned a CVSS v4.0 score of 7.3 (High) (GitHub Advisory, Feedly).
The root cause is improper neutralization of special elements used in a template engine (CWE-1336). In the vulnerable code path, the ReportingController directly used unsanitized user input from the type query parameter as a dynamic method name via PHP's variable function call syntax ($this->reportingHelper->{$this->typeFunctions[request()->query('type')]}()), without first validating that the key existed in the allowed $typeFunctions array. This allowed an attacker to inject template expressions (e.g., {{7*7}}) into the type parameter of reporting endpoints such as /admin/reporting/products/view?type={{7*7}}. The fix introduced a resolveTypeFunction() method that validates the type parameter against an allowlist before use, aborting with a 404 if the key is not found (GitHub Advisory, Patch Commit).
Successful exploitation allows an attacker to achieve remote code execution on the server hosting the Bagisto application, resulting in full compromise of confidentiality, integrity, and availability. An attacker could exfiltrate sensitive eCommerce data including customer PII, payment information, and order records, modify or destroy application data, or render the service unavailable. Given that Bagisto is an eCommerce platform, exploitation could also facilitate lateral movement within the hosting environment or supply chain attacks against customers (GitHub Advisory, Feedly).
/admin/reporting/products/view.type query parameter, e.g., GET /admin/reporting/products/view?type={{7*7}}. A successful response evaluating to 49 confirms template injection./admin/reporting/products/view, /admin/reporting/customers/view, or /admin/reporting/sales/view with type parameter values containing template syntax such as {{, }}, {%, or encoded equivalents.type parameter values (e.g., type={{7*7}} or type=<payload>); PHP error logs indicating unexpected template evaluation or method resolution errors.bash, curl, wget, python) following requests to reporting endpoints./tmp by the web server user account.Upgrade all Bagisto installations to version 2.3.10 or later, which introduces input validation via the resolveTypeFunction() method that allowlists valid type parameter values and returns a 404 for unrecognized inputs (Bagisto Release, Patch Commit). As an interim workaround prior to patching, restrict access to the admin reporting endpoints via network-level controls (firewall rules, IP allowlisting) to limit exposure. Review and audit admin account access to minimize the attack surface if elevated privileges are required for exploitation.
The vulnerability was published by the Bagisto security team (devansh-webkul) via GitHub's security advisory program on January 2, 2026, with a coordinated patch release on the same day (GitHub Advisory). A technical write-up was published by Infinitsec shortly after disclosure (Infinitsec Blog). Trend Micro also catalogued the vulnerability in their threat encyclopedia. No significant broader media coverage or notable researcher controversy has been identified.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."