TastyIgniter Mail Template Editor: Server-Side Template Injection Leads to RCE (CVE-2026-69178)
What happened
A GitHub Security Advisory (GHSA-743w-g9pf-8p94), tracked as CVE-2026-69178, discloses a server-side template injection (SSTI) vulnerability in TastyIgniter's admin mail template editor. According to the advisory, any admin user holding the Admin.MailTemplates permission can submit a crafted mail template body to POST /admin/mail_templates/edit/{id} without the input being validated or sanitized. A published proof-of-concept shows that embedding a Blade @php ... @endphp directive containing a shell_exec() call, then triggering template rendering via the X-IGNITER-REQUEST-HANDLER: onTestTemplate handler, results in arbitrary PHP code execution on the server. The advisory rates this 9.1 (critical) with a public proof-of-concept available.
Why it matters
This is a full remote code execution path. The practical constraint is that the attacker needs prior admin-level access with mail-template permissions. It is best understood as a privilege-escalation-to-RCE chain. An attacker who has already compromised or been granted an admin account, whether through credential theft, a separate auth bypass, or an over-permissioned staff account, can pivot to full server compromise. Any organization running self-hosted TastyIgniter should treat admin panel access as equivalent to server access until the issue is patched.
What defenders should watch for now
- Audit who holds
Admin.MailTemplatespermission and tighten it to the smallest necessary set of admins. - Review mail template edit history and logs for template bodies containing suspicious directives such as
@php,@endphp,shell_exec,exec,system,passthru, oreval. - Watch application and web server access logs for requests to
/admin/mail_templates/edit/*carrying theX-IGNITER-REQUEST-HANDLER: onTestTemplateheader, especially from unfamiliar sessions or IPs. - Monitor for unexpected child processes spawned by the PHP-FPM or web server process, a common signal of successful RCE from a web app.
- Harden admin accounts with MFA, credential rotation, and alerting on new admin logins, since exploitation presumes admin access is already attainable.
- Apply the vendor fix for the mail template editor as soon as it is available. Until then, consider restricting admin panel exposure with a VPN or allowlist as a stopgap.
Developing intel
This item is based solely on the GitHub Security Advisory and its proof-of-concept. df00tech has not independently validated the exploit or confirmed a patched version. Treat details as preliminary and monitor the advisory for updates, including any fixed release. Source: GHSA-743w-g9pf-8p94.