Mautic has Server-Side Template Injection (SSTI) in Theme Templates
Critical severity. Published 2 July 2026. Update mautic/core to the fixed version of your branch (5.2.11, 6.0.9, 7.1.2): composer update mautic/core.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| mautic/core (opens in a new tab) | >= 1.3.0, < 4.4.13 | >= 5.0.0, < 5.2.11 | >= 6.0.0, < 6.0.9 | >= 7.0.0, < 7.1.2 | 5.2.11, 6.0.9, 7.1.2 |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show mautic/core
composer auditAdvisory details
| Severity | CriticalCVSS 9.9 |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-9558 (opens in a new tab) |
| GHSA | GHSA-9fx4-7cmj-47vg (opens in a new tab) |
| Weakness | CWE-1336 |
What the advisory says
Summary A Server-Side Template Injection (SSTI) vulnerability exists in Mautic's theme engine. The platform renders uploaded Twig templates without a sandbox or strict function restrictions. Authenticated users with permissions to create or upload themes can abuse this to execute arbitrary code.
Impact An authenticated user with theme upload and creation privileges can bypass boundaries to execute arbitrary system commands on the hosting server (Remote Code Execution) or access restricted system files and configuration settings.
Patched Versions This security issue has been addressed in the following releases: 7.1.2 6.0.9 5.2.11
Source: GHSA-9fx4-7cmj-47vg (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .
Other recent advisories for this package
- Mautic Focus component Vulnerable to SSRF (opens in a new tab) (medium, 2 July 2026)
- Mautic has SQL Injection in API Contact Filtering (high, 2 July 2026)
- Mautic has Stored Cross-Site Scripting (XSS) in Projects Component (high, 2 July 2026)
- Mautic vulnerable to Path Traversal via Campaign Import (critical, 2 July 2026)
- Mautic has Stored Cross-Site Scripting (XSS) in Project Option Selector (opens in a new tab) (medium, 2 July 2026)