CVE-2026-135273: WP Directory Kit <= 1.6.3 - Unauthenticated SQL Injection via 'post_id' Parameter
The WP Directory Kit plugin for WordPress is vulnerable to SQL Injection via the 'postid' parameter of the 'mapinfowindow' action of the 'wdkpublicaction' AJAX handler in versions up to, and including, 1.6.3 This is due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query — $POST['postid'] is stripslashed, passed through a tag-stripping filter that performs no SQL escaping, promoted to the global $wdklistingid inside wdklistingcard(), and then concatenated raw (no quotes, no cast, no $wpdb->prepare()) into the WHERE clause of the Similar Listings widget query that is executed via $wpdb->query(). This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An unauthenticated remote attacker can exploit it; no WordPress account or user interaction is required. The affected input is the post_id parameter handled by the map_infowindow action of the wdk_public_action AJAX handler.
What versions are affected?
WP Directory Kit versions up to and including 1.6.3 are affected. The provided information does not identify a fixed version.
What could an attacker obtain?
The issue can allow an attacker to append SQL queries to an existing database query and extract sensitive information from the WordPress database. The provided information does not establish data modification or service-disruption impact.