Description
The Mail Mint plugin for WordPress is vulnerable to SQL Injection via the 'filters' parameter of the /wp-json/mrm/v1/segments/contacts REST endpoint in versions up to, and including, 1.31.4 This is due to insufficient escaping on the user supplied filter 'value' before it is appended to a SQL query in SegmentFilterService::get_meta_join_query() at line 797, where the value is string-interpolated into the WHERE fragment in a numeric (unquoted) context and the surrounding $wpdb->prepare() calls do not cover the injected value. This makes it possible for authenticated attackers, with the custom 'mint_read_contacts' capability (granted to Administrators by default, and configurable to lower roles via the plugin's role manager), to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
References8
- plugins.trac.wordpress.org/browser/mail-mint/tags/1.31.4/app/AP…
- plugins.trac.wordpress.org/browser/mail-mint/tags/1.31.4/app/AP…
- plugins.trac.wordpress.org/browser/mail-mint/tags/1.31.4/app/In…
- plugins.trac.wordpress.org/browser/mail-mint/tags/1.31.4/app/In…
- plugins.trac.wordpress.org/browser/mail-mint/tags/1.31.4/app/In…
- plugins.trac.wordpress.org/browser/mail-mint/tags/1.31.4/app/In…
- plugins.trac.wordpress.org/changeset/3743638/mail-mint/trunk/ap…
- www.wordfence.com/threat-intel/vulnerabilities/id/7c492357-3293…
Metrics
- CVSS 3.1
-
6.5
MEDIUM
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - EPSS — exploit probability
- 0% percentile: 20 · as of 10 November 2026
- CWE
- CWE-89
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.