Mautic SQL Injection (CVE-2026-115191): Versions and Fix
TL;DR: CVE-2026-115191 is a SQL injection in Mautic before 5.2.12, 6.0.10 and 7.2.2: upgrade to the fixed release of your branch. Any Mautic user, whatever the account's role, can exploit it to read user password hashes, contact data and campaign content. Haxset's AI SAST (static application security testing) found this vulnerability, and we are one of the reporters the advisory credits.
Key points
- The search value was already a bound query parameter, but the field name went into the SQL as a column name. The fix accepts only unique identifier fields and quotes the name.
- Until you upgrade, block the
lead:getLeadIdsByFieldValueaction at the web server or web application firewall (WAF), in both the URL and the POST body. - Haxset's AI SAST, a module of the Haxset Engine, found the vulnerability, and Haxset is one of the reporters the advisory credits.
Which Mautic versions does CVE-2026-115191 affect?
CVE-2026-115191 affects Mautic from 2.1.0 up to the fixed releases 5.2.12, 6.0.10 and 7.2.2. Mautic published the advisory, GHSA-fj8v-c9c3-7q26, on October 26, 2026, and rates the vulnerability high, with a CVSS 3.1 score of 7.1.1 The vector rates confidentiality impact high, integrity none and availability low.
| Branch | Affected | Fixed in |
|---|---|---|
| 7.x | 7.0.0 to 7.2.1 | 7.2.2 |
| 6.x | 6.0.0 to 6.0.9 | 6.0.10 |
| 5.x and older | 2.1.0 to 5.2.11 | 5.2.12 |
The 7.x fix exists only in 7.2.2, so installations on 7.0 or 7.1 move to 7.2. The advisory names no fixed release inside the Mautic 4 branch or older ones. For Mautic 4 it refers readers to Mautic's Extended Long Term Support (ELTS) page.
How does the Mautic contact lookup SQL injection work?
The field parameter of the lead:getLeadIdsByFieldValue action in the /s/ajax endpoint reached a database query without proper validation. It names the contact field to search by.1 Mautic's contact form calls this action to warn about a duplicate contact when someone edits a unique identifier field, such as email.
Before the fix, Mautic built the column name by joining l. and the field value, while the search value went in as a bound parameter. The fix makes two changes. The endpoint accepts only the aliases of contact fields marked as unique identifiers, and the column name is now quoted as an identifier.2
The advisory says any Mautic user can exploit the vulnerability, "regardless of the role or permissions assigned to the account". The attacker uses blind techniques, in which each request tests one condition and the answer shows in the response (boolean-based) or in a delay (time-based). With enough requests, the attacker can read "any data the Mautic database user can access". The advisory names Mautic user accounts with their email addresses and password hashes, contact data, and campaign and email content.1 If that database account can also read other databases on the same server, so can the attacker.
How do I fix or mitigate CVE-2026-115191?
Upgrade to 5.2.12, 6.0.10 or 7.2.2. Mautic's release notes advise updating "at your earliest convenience after performing a full backup and testing the upgrade in a staging environment". Each release also fixes a second SQL injection, in the Dashboard Widget API (CVE-2026-115192), and five other vulnerabilities (six in 7.2.2).3
The advisory states: "There are no official workarounds." To reduce the risk without upgrading, it suggests these steps:1
- Limit Mautic user accounts to trusted users.
- Deactivate unused accounts.
- Enforce strong passwords.
- Where possible, block requests to
/s/ajaxwith the actionlead:getLeadIdsByFieldValueat the web server or WAF.
The block disables only the duplicate-contact warning. In our reading of Mautic's code, the endpoint accepts action in the URL or in the POST body. A blocking rule should match both. None of these steps fixes the other vulnerabilities in the same releases.
How do I check whether my Mautic was exposed?
Check the version, the access logs and the user accounts. The version is the version field in app/release_metadata.json (docroot/app/ on Composer-based installs). The advisory lists no indicators of compromise and does not say whether the vulnerability has been exploited. The log clues below are our reading of Mautic's code.
On Mautic 4.4.8 and later, the endpoint reads field from the URL, so access logs that record query strings show each value sent. On 4.4.7 and older, it reads field from the POST body, which access logs do not record.
Search the logs for requests to /s/ajax with a field parameter. Other actions, such as lead:fieldList, also send field in normal use. For lead:getLeadIdsByFieldValue, the contact form sends only the alias of a unique identifier field, such as email, so any other value is not normal use. Because the action name can travel in the POST body, also check field values on requests whose URL names no action. A long run of these requests from one client address is another sign.
Review your Mautic users for unused, shared or former staff accounts: an attacker needs only one. If you find signs of exploitation, reset every Mautic user's password, because password hashes are among the data the advisory lists. Treat the contact data as exposed too.
How Haxset can help
Haxset's AI SAST reports each finding in your code with its file, line, confidence score and fix. Haxset does not keep the prompts its AI models process and does not train models on them. It stores only scan metadata and scan results. To run it on your own code, contact us.
Related research
References
-
Mautic, SQL Injection in Contact Lookup AJAX Endpoint (GHSA-fj8v-c9c3-7q26, CVE-2026-115191), GitHub security advisory, October 26, 2026. ↩ ↩2 ↩3 ↩4
-
Mautic, Fix SQL injection in getLeadIdsByFieldValue AJAX endpoint (GHSA-fj8v-c9c3-7q26), commit 11359f2 in the mautic/mautic repository, October 20, 2026. ↩
-
Mautic, release notes for 7.2.2, 6.0.10 and 5.2.12, GitHub, October 26, 2026. ↩
Interested in how this research applies to your organization?
Get in touch
