NotificationX: Unauthenticated SQL injection (CVE-2022-51021)
The NotificationX plugin for WordPress (versions 2.0.0 through 2.3.11) contains an unauthenticated SQL injection vulnerability in the REST API that allows remote attackers to perform database queries.
CVE search metadata
CVE search record: CVE-2022-51021. Severity: high. CVSS: 8.2. KEV: no. Product: NotificationX (< 2.3.12). Brief: NotificationX: Unauthenticated SQL injection (CVE-2022-51021). Brief link: https://feed.craftedsignal.io/briefs/2026-10-notificationx-sqli/
Triage facts
Revision 1- Applicability
- NotificationX (< 2.3.12)
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 1 public source
- Freshness
- Revision 1Oct 22, 14:15 UTC
- Detection
- 1 rule
- Vulnerabilities
- 1 CVE
- Source quality
- A1Very likely
The NotificationX plugin for WordPress versions 2.0.0 through 2.3.11 contains an unauthenticated SQL injection vulnerability (CVE-2022-51021). The vulnerability resides in the REST API endpoint /wp-json/notificationx/v1/notification/{id}. Remote attackers can exploit this by passing an array-form id parameter containing crafted SQL payloads alongside an API key derived from md5(home_url()). The unsanitized input is passed to the Database::get_where_query function, enabling unauthorized database interaction and information extraction.
Impact
Successful exploitation allows for the extraction of sensitive database contents. The Shadowserver Foundation documented in-the-wild exploitation of this vulnerability starting on October 18, 2023.
Recommendation
- Update the NotificationX plugin to version 2.3.12 or later immediately.
- Audit database logs for unusual queries originating from the REST API endpoint
/wp-json/notificationx/v1/notification/. - Deploy web application firewall (WAF) rules to detect and block incoming POST or GET requests to the identified vulnerable endpoint containing SQL injection patterns such as
SLEEP,UNION, orSELECTkeywords in query parameters.
Immediate actions
Upgrade NotificationX plugin to version 2.3.12 or later.
Threat Hunt
Search web logs for requests to /wp-json/notificationx/v1/notification/ with array-style 'id' parameters.
Data: Web server access logs
Detection coverage 1
Detects CVE-2022-51021 Exploitation - SQL Injection in NotificationX REST API
highDetects exploitation attempts targeting the NotificationX plugin by monitoring for SQL injection payloads in the 'id' parameter of the REST API endpoint.
Detection queries are available on the platform. Get full rules →