WP ERP CRM advanced-filter parameter permits SQL injection
WP ERP through 1.17.4 accepts the erpadvancefilter parameter from a CRM AJAX request available to the plugin's CRM Agent role and higher. The handler applies sanitize_text_field(), which retains single quotes, before erp_crm_contact_advance_filter() interpolates the value into a single-quoted WHERE clause executed by $wpdb->get_results(). A CRM Agent with erp_crm_list_contact can therefore alter the existing query and extract sensitive database contents.
- Component
- ERP: Complete HR, Accounting & CRM Suite Built for WooCommerce
- Plugin slug
erp- Affected
- <= 1.17.4
- Safe version
> 1.17.4- Published
- Aug 05, 2026
This CVE was published Aug 05, 2026 and is one of 15 known issues for this plugin.
Update, patch or deactivate.
Update WP ERP to a release after 1.17.4. The authoritative record links the upstream query correction but does not identify the first fixed release. Restrict the CRM Agent role to trusted users and review advanced-filter requests if the vulnerable version was installed.
A safe version is available, so updating to that version or later is the preferred remediation. If an immediate update is not practical, consider a targeted application patch or temporarily restricting the affected functionality.
Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.
Technical description
The ERP: Complete HR, Accounting & CRM Suite with WooCommerce CRM Support plugin for WordPress is vulnerable to SQL Injection via the 'erpadvancefilter' parameter in all versions up to, and including, 1.17.4 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. The handler runs the value through sanitize_text_field, which preserves single quotes, and the downstream erp_crm_contact_advance_filter() function interpolates it directly into a single-quoted SQL WHERE clause before execution via $wpdb->get_results(). This makes it possible for authenticated attackers, with the plugin-supplied CRM Agent role (or higher CRM Manager / WordPress admin) and the erp_crm_list_contact capability, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
CVE / CNA vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Primary and upstream sources
- NVD record for CVE-2026-11421
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- Wordfence advisory wordfence.com