Mautic is Vulnerable to SQL Injection through Contact Activity API Sorting
Package
Affected versions
>= 2.10.0, < 5.2.10
>= 6.0.0-alpha, < 6.0.8
>= 7.0.0-alpha, < 7.0.1
Patched versions
5.2.10
6.0.8
7.0.1
Description
Published by the National Vulnerability Database
Feb 24, 2026
Published to the GitHub Advisory Database
Feb 25, 2026
Reviewed
Feb 25, 2026
Last updated
Feb 25, 2026
Summary
This advisory addresses a SQL Injection vulnerability in the API endpoint used for retrieving contact activities. A vulnerability exists in the query construction for the Contact Activity timeline where the parameter responsible for determining the sort direction was not strictly validated against an allowlist, potentially allowing authenticated users to inject arbitrary SQL commands via the API.
Mitigation
Please update to 5.2.10, 6.0.8, 7.0.1 or later.
Workarounds
None.
References
If there are any questions or comments about this advisory:
Email Mautic at security@mautic.org
References