
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-21449 is a Server-Side Template Injection (SSTI) vulnerability in Bagisto, an open-source Laravel-based eCommerce platform developed by Webkul. The flaw allows low-privilege authenticated users to inject malicious template expressions through the first name and last name fields in their customer profile, potentially leading to Remote Code Execution (RCE). All versions prior to 2.3.10 are affected. The vulnerability was published on January 2, 2026, with a patch released the same day. It carries a CVSS v3.1 base score of 8.8 (High) and a CVSS v4.0 base score of 7.4 (High) (GitHub Advisory, Bagisto Advisory).
The vulnerability is classified as CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine). Bagisto fails to sanitize user-supplied input in the first name and last name profile fields before passing them to the Blade or underlying template engine for rendering. An attacker with a standard (non-admin) customer account can submit template expressions such as {{7*7}}, which are evaluated server-side and return computed results (e.g., 49), confirming template injection. Escalating beyond arithmetic expressions, an attacker can craft payloads to execute arbitrary OS commands on the server. The attack requires only network access and a low-privilege account — no user interaction or elevated permissions are needed (GitHub Advisory, Bagisto Advisory).
Successful exploitation grants an attacker the ability to execute arbitrary commands on the server, resulting in full compromise of confidentiality, integrity, and availability of the affected Bagisto instance. An attacker could exfiltrate sensitive customer and payment data stored in the eCommerce database, modify application content or configurations, install backdoors, or disrupt service availability entirely. Given that Bagisto is an eCommerce platform, exploitation could also expose customer PII and financial information, with potential for lateral movement to other systems accessible from the server (GitHub Advisory, Bagisto Advisory).
http://target.com/customer/register).http://target.com/customer/account/profile).{{7*7}} in the first name or last name field and save the profile. If the rendered output shows 49, the application is vulnerable./customer/account/profile containing template syntax characters such as {{, }}, {%, or %}..php files) in the Bagisto public or storage directories; unexpected modification timestamps on core application files.bash, sh, curl, wget, python) that are not part of normal application operation (Bagisto Advisory).The primary remediation is to upgrade Bagisto to version 2.3.10 or later, which addresses the SSTI vulnerability by properly sanitizing user-supplied input in name fields (GitHub Advisory, Bagisto Advisory). If immediate patching is not feasible, restrict access to the customer profile editing functionality to trusted users, or temporarily disable self-service account registration. Additionally, implement Web Application Firewall (WAF) rules to detect and block requests containing template injection patterns (e.g., {{, }}) in user input fields. Monitor application logs for suspicious template expressions as a detection measure until patching is complete.
The vulnerability was disclosed by Webkul's security team (devansh-webkul) via GitHub's coordinated disclosure process on January 2, 2026, with a patch released the same day, demonstrating a rapid vendor response (Bagisto Advisory). A technical write-up was published by Infinit Security at infinitsec.net, highlighting the SSTI vector via non-admin user name fields. The vulnerability was also tracked by INCIBE-CERT and referenced by Red Hat's security advisory database, indicating broad community awareness (GitHub Advisory).
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."