# Mautic has SQL Injection in API Contact Filtering

High severity, published 2026-07-02. Update mautic/core to the fixed version of your branch (5.2.11, 6.0.9, 7.1.2): composer update mautic/core.

Canonical URL: https://buzzphp.com/security/ghsa-fcmw-wx57-9p75 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 7.1) |
| Published | 2026-07-02 |
| Updated | 2026-07-02 |
| CVE | [CVE-2026-4776](https://nvd.nist.gov/vuln/detail/CVE-2026-4776) |
| GHSA | [GHSA-fcmw-wx57-9p75](https://github.com/advisories/GHSA-fcmw-wx57-9p75) |
| Weakness | CWE-89 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| mautic/core | >= 2.6.0, <= 4.4.13 or >= 5.0.0, < 5.2.11 or >= 6.0.0, < 6.0.9 or >= 7.0.0, < 7.1.2 | 5.2.11, 6.0.9, 7.1.2 |

## What to do

Update mautic/core to the fixed version of your branch (5.2.11, 6.0.9, 7.1.2): composer update mautic/core.

Check which version you run with `composer show mautic/core`, and every affected package with `composer audit`.

## About this advisory

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.



## Links

- [GHSA-fcmw-wx57-9p75 on GitHub](https://github.com/advisories/GHSA-fcmw-wx57-9p75)
- [CVE-2026-4776 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-4776)
- [All Composer security advisories](https://buzzphp.com/security)
