Executive brief
SureCart is a popular e-commerce platform for WordPress. A security vulnerability in versions prior to 4.2.1 allows an authenticated user with high-level permissions to bypass security filters and access the underlying database. This could lead to the theft of sensitive customer information, transaction records, and other private site data.
Technical details
An authenticated SQL injection vulnerability exists in SureCart's REST API endpoint '/surecart/v1/integrations/{id}' due to a flawed escaping bypass in the 'wp-query-builder' component. The 'where()' method only applies sanitization via '$wpdb->prepare()' if the input lacks a dot ('.') or the WordPress table prefix. By including a dot in parameters such as 'model_name', 'model_id', 'integration_id', or 'provider', an attacker with high privileges can bypass escaping logic to perform UNION-based SQL injection. This allows for the extraction of arbitrary data from the WordPress database. The issue is resolved in version 4.2.1.
Affected products
- SureCart SureCart < 4.2.1
Timeline
- 2026-04-08: other: Report submitted to Patchstack
- 2026-04-21: other: Tenable sends details to vendor
- 2026-04-27: patched: Fixed in version 4.2.1
- 2026-05-20: disclosed: Initial advisory release