Summary
CVE-2022-51021 is an unauthenticated SQL injection vulnerability (CWE-89) in the NotificationX WordPress plugin by WPDeveloper. It lets a remote attacker run crafted SQL through a REST API endpoint without logging in. The CVE record rates it 8.8 (High) under CVSS v4.0 and 8.2 (High) under CVSS v3.1.
Technical details
- Root cause: Improper neutralization of special elements in an SQL command (CWE-89). Array-form parameters sent to the notification REST endpoint reach the database query without sanitization.
- Trigger conditions: The attacker sends a request to
/wp-json/notificationx/v1/notification/{id}with an array-form parameter holding SQL, such as time-basedSLEEPpayloads. The request also includes anapi_keyderived frommd5(home_url()). - Attack vector: Network. No authentication or user interaction is required.
- Impact: Unauthorized queries against the WordPress database. The CVSS vectors rate confidentiality impact as high and integrity impact as low.
Affected software
- NotificationX (WPDeveloper) versions 2.0.0 through 2.3.11
- Fixed in 2.3.12
Severity
- CVSS v4.0: 8.8 (High),
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N - CVSS v3.1: 8.2 (High),
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Mitigation and recommended actions
- Immediate: upgrade NotificationX to version 2.3.12 or later. The plugin has had later, unrelated vulnerabilities, so moving to the latest release is advisable.
- If you can’t patch right away: disable the plugin until you can update. Don’t rely on blocking requests to
/wp-json/notificationx/as a long-term fix.

