Mautic has SQL Injection in API Contact Filtering
High 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) | >= 2.6.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 | HighCVSS 7.1 |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-4776 (opens in a new tab) |
| GHSA | GHSA-fcmw-wx57-9p75 (opens in a new tab) |
| Weakness | CWE-89 |
What the advisory says
Summary An SQL injection vulnerability exists in Mautic's API contact filtering mechanism. Due to insufficient recursive sanitization of nested query parameters, an authenticated API user can bypass input filtering and inject arbitrary SQL commands.
Impact An authenticated user with API access can exploit this vulnerability to execute arbitrary SQL queries against the underlying database. This allows unauthorized retrieval of sensitive database contents—including user credentials, system configurations, and personal identifiable information (PII) of contacts—bypassing standard data access permissions.
Source: GHSA-fcmw-wx57-9p75 (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 Server-Side Template Injection (SSTI) in Theme Templates (critical, 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)