Summary
CVE-2026-87771 is an unauthenticated SQL Injection (CWE-89) vulnerability in the Product Question and Answer WordPress plugin, affecting all versions through 1.1.0. The plugin fails to sanitize and escape user-supplied parameters before using them in SQL queries within AJAX actions that are exposed to unauthenticated users, allowing remote attackers to extract sensitive data directly from the site’s database. The flaw carries a CVSS v3.1 base score of 8.6 (High).
Technical details
- Root cause: The plugin’s AJAX handlers build SQL queries using the
p_idandreadparameters without proper sanitization or escaping (e.g., not using$wpdb->prepare()or equivalent parameterized queries). - Trigger conditions: The vulnerable AJAX actions are registered as
wp_ajax_nopriv_*(or equivalent), meaning they are reachable by any unauthenticated visitor to a WordPress site running the plugin. - Attack vector: Network-based; an attacker sends crafted HTTP requests containing malicious SQL payloads in the
p_idand/orreadparameters to the exposed AJAX endpoints — no login or user interaction required. - Impact: Successful exploitation allows extraction of arbitrary data from the site’s WordPress database (e.g., user credentials, configuration data, other sensitive records), which can lead to further compromise such as authentication bypass or full site takeover.
Affected software
- Product Question and Answer WordPress plugin — all versions through 1.1.0 (inclusive).
Severity
- CVSS v3.1 Base Score: 8.6 (High)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
Mitigation and recommended actions
- Immediate: As of publication, no patched version of the Product Question and Answer plugin has been released. Site administrators should check the WordPress.org plugin repository regularly for an updated release beyond 1.1.0 and apply it as soon as it becomes available.
- If no patch is available:
- Deactivate and remove the Product Question and Answer plugin until a fix is released.
- Deploy a Web Application Firewall (WAF) rule to detect and block SQL injection payloads targeting the plugin’s AJAX endpoints (parameters
p_idandread). - Restrict or monitor requests to
admin-ajax.phpactions associated with this plugin, and review server/database logs for anomalous query patterns indicative of exploitation attempts. - Ensure database accounts used by WordPress follow least-privilege principles to limit the impact of a successful injection.

