On this page (7 sections)
TastyIgniter, the open source restaurant ordering platform built on Laravel, has a critical flaw in the mail template editor of its admin panel. According to the GitHub advisory GHSA-743w-g9pf-8p94, the editor does not validate or sanitize template content, which allows server-side template injection and arbitrary PHP execution on the server.
The flaw requires a logged-in admin with a specific permission, so it is not an anonymous attack. Even so, anyone who runs TastyIgniter below version 4.3.1, especially with several admin accounts or shared credentials, should update.
What happened
The advisory describes the issue in the mail templates feature of the admin area. The vulnerable endpoint is a POST request to the mail template edit route, and the problem lies in the template body field. The advisory states that the impact is arbitrary PHP execution on the server, which it describes as full remote code execution.
The advisory was published on GitHub on Jul 6, 2026 and the GitHub Advisory Database reviewed and updated it on Nov 25, 2026. The maintainer's fix is referenced as a commit in the tastyigniter/core repository and shipped in release v4.3.1. Only one independent publisher covers this story so far, so details beyond the advisory are limited.
Technical details
Server-side template injection (SSTI) happens when an application treats user-supplied text as template code instead of plain data. Template engines can evaluate expressions, and in some engines those expressions can reach the underlying language. Here, the mail template body is rendered without validation or sanitization, so content that contains PHP directives can be evaluated on the server.
Per the advisory, the person who can trigger it is any admin user holding the Admin.MailTemplates permission. The advisory's proof of concept involves saving a malicious template and then invoking the template test handler. This article does not reproduce that payload.
The CVSS v3 metrics listed in the advisory are:
| Metric | Value |
|---|---|
| Attack vector | Network |
| Attack complexity | Low |
| Privileges required | High |
| User interaction | None |
| Scope | Changed |
| Confidentiality, Integrity, Availability | High, High, High |
As general background on CVSS (not a statement from the advisory): a high privileges-required value usually lowers a score compared with an unauthenticated flaw, while a changed scope and high impact ratings push it up. That is why a bug needing an admin login can still be rated critical.
Who is affected
Any installation of the tastyigniter/tastyigniter Composer package below 4.3.1 is affected. The realistic risk depends on who holds the Admin.MailTemplates permission:
- Sites where many staff, contractors or agency accounts have admin access.
- Sites with weak, reused or shared admin passwords, or without two-factor protection around the admin login.
- Sites where an admin account was already compromised by phishing or credential stuffing. This flaw could turn that foothold into control of the server.
- Hosting setups where the web server user can read configuration files, database credentials or other sites' data.
The advisory frames the impact as follows: if an attacker has access to an admin user, the flaw can be abused to gain access to the system. The research does not mention any in-the-wild exploitation and is limited to the advisory, so treat exploitation status as unconfirmed.
How to check your exposure
Run this from your project root to list the installed version of the package. A version below 4.3.1 is vulnerable.
composer show tastyigniter/tastyigniterAlso review who can reach the mail template editor. In the admin panel, check which staff groups hold the Admin.MailTemplates permission and whether each person still needs it.
Look at the existing mail templates for content that does not belong. Legitimate templates contain text and normal template variables. Unexpected PHP directives or calls to system functions in a template body are a red flag. Then review web server access logs for POST requests to the mail template edit route from unfamiliar IP addresses or at odd hours.
grep "/admin/mail_templates/edit/" /var/log/nginx/access.logWhat to do now
- Back up your site files and database.
- Update TastyIgniter to 4.3.1 or later using your normal Composer or upgrade process, then confirm the version with composer show.
- Review the list of admin users and remove accounts that are no longer needed.
- Limit the Admin.MailTemplates permission to the few people who genuinely edit email templates.
- Inspect all existing mail templates for unexpected PHP code and restore clean content if you find any.
- Rotate admin passwords, and rotate database and mail credentials stored on the server if you suspect any admin account was compromised.
- Restrict access to the /admin path where practical, for example by IP allowlist or a VPN, and use strong unique passwords.
This command updates the package within your version constraints. Run it in the project root after taking a backup, then check that the version shown is 4.3.1 or later.
composer update tastyigniter/tastyigniterIf you find signs that a template was abused, treat the server as potentially compromised. Our guide on what to do when a website is hacked covers containment and cleanup.
Detection and monitoring
Because exploitation needs an authenticated admin session, detection mostly means watching admin activity. Keep access logs for the admin path, alert on new admin accounts or permission changes, and watch for unexpected processes started by the web server user. The advisory notes that responses to its proof of concept can be checked in the log, so keep application logs long enough to investigate.
Outside-in checks can help with the surrounding hygiene, such as certificate and header changes on your storefront. See security headers explained and uptime monitoring explained for background. They cannot see inside an authenticated admin session, so they do not replace updating. For broader habits that limit the damage from a stolen admin login, see our small business website security guide.
Timeline
| Date | Event |
|---|---|
| Jul 6, 2026 | Advisory published in the tastyigniter/TastyIgniter repository |
| Nov 25, 2026 | Published to and reviewed in the GitHub Advisory Database; last updated |
Sources
This article is based on the public sources below. Details can change as vendors and researchers publish more; check the original advisories before acting on version numbers.
