Description
The CubeWP Framework plugin for WordPress is vulnerable to SQL Injection in all versions up to and including 1.1.30. This is due to insufficient input sanitization in the cubewp_remove_relation() AJAX function, specifically the use of wp_unslash() on the relation_id parameter before interpolating it directly into a raw SQL query without using $wpdb->prepare(). The wp_unslash() call explicitly removes the backslash escaping that WordPress's wp_magic_quotes() adds to all $_POST data, neutralizing the only layer of SQL injection protection. The sanitize_text_field() function applied afterward offers no SQL protection. This makes it possible for authenticated attackers, with subscriber-level access and above, to append additional SQL queries to the existing query.
References8
- plugins.trac.wordpress.org/browser/cubewp-framework/tags/1.1.29…
- plugins.trac.wordpress.org/browser/cubewp-framework/tags/1.1.29…
- plugins.trac.wordpress.org/browser/cubewp-framework/tags/1.1.29…
- plugins.trac.wordpress.org/browser/cubewp-framework/trunk/cube/…
- plugins.trac.wordpress.org/browser/cubewp-framework/trunk/cube/…
- plugins.trac.wordpress.org/browser/cubewp-framework/trunk/cube/…
- plugins.trac.wordpress.org/changeset?reponame=&old=3627740%40cu…
- www.wordfence.com/threat-intel/vulnerabilities/id/a4647620-e06a…
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: 41 · as of 13 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.