Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain admin credentials (phishing or credential stuffing)
-
DeliveryAuthenticate to wp-admin panel
-
ExploitCraft malicious scan_id AJAX request
-
ExecutionAppend SQL UNION payload to cookie scanner query
-
ImpactExtract WordPress database contents
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated WordPress session with administrator-level privileges (role: administrator or above). The vulnerable code paths reside exclusively in the admin cookie scanner module, meaning the attacker must have access to wp-admin AJAX endpoints restricted to administrator roles. The plugin must be installed and active on the target WordPress installation. No special server configuration or non-default WordPress settings are required beyond the plugin being present. Limiting factors: the PR:H requirement means unauthenticated or subscriber/editor-level users cannot trigger this vulnerability; exploitation is entirely blocked without admin credentials. The attack is also read-only - the CVSS vector confirms I:N, so no data modification or site takeover is achievable through this flaw alone. |
| Impact | The CVSS 3.1 base score of 4.9 (Medium) accurately reflects the constrained real-world risk. The vector CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N indicates network accessibility and no complexity, but anchors risk firmly on the PR:H requirement - exploitation demands a fully authenticated WordPress administrator session. In practice, an attacker who already holds admin credentials can cause far more damage through native WordPress functionality, significantly reducing the marginal impact of this SQL injection. Impact is confidentiality-only (C:H, I:N, A:N), meaning an attacker can read database contents but cannot modify data or disrupt availability via this vector alone. No EPSS score was provided in the source data, so probabilistic exploitation likelihood cannot be quantified. KEV status is negative and no POC has been identified, consistent with the high privilege bar. The primary realistic threat scenario is a rogue or compromised administrator account, or a privilege escalation chain where this SQLi is a secondary step to harvest credentials. This is not a fire-drill priority for most organizations but warrants patching to close the data-extraction path. |
| Exploit ScenarioDerived | An attacker with a compromised or rogue WordPress administrator account authenticates to the wp-admin panel, then submits a crafted AJAX request to the cookie scanner module with a malformed 'scan_id' value containing appended SQL syntax (e.g., UNION SELECT payloads). The unsanitized parameter is interpolated directly into the running query, allowing the attacker to retrieve arbitrary table contents - including WordPress user hashes, plugin configuration, or stored consent records - from the underlying MySQL database. No public exploit code has been identified, but the vulnerability class (unsanitized AJAX parameter in admin context) is well-understood and straightforward to exploit manually. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 10, 2026
SQL Injection in the Cookie Banner for GDPR/CCPA - WPLP Cookie Consent WordPress plugin (versions up to and including 4.3.6) enables authenticated administrators to append arbitrary SQL to existing queries via the unsanitized 'scan_id' parameter in the cookie scanner module. Exploitation is constrained to administrator-level accounts (PR:H per CVSS vector), making this a privileged read-only database extraction flaw rather than a broad remote attack surface. No public exploit code or CISA KEV listing has been identified at time of analysis; a patch commit is referenced in the WordPress plugin repository changeset.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed. A changeset has been committed to the WordPress plugin repository (https://plugins.trac.wordpress.org/changeset?reponame=&old=3601475%40gdpr-cookie-consent&new=3601475%40gdpr-cookie-consent), indicating the vendor has addressed the issue in trunk, but the exact version number of the released fix was not included in the available data - verify the current plugin version in the WordPress repository before updating. As a compensating control, restrict WordPress administrator account access to the minimum number of trusted users; this directly removes the exploitation prerequisite. Additionally, consider deploying a WAF rule (such as those provided by Wordfence's own firewall) to detect and block SQL injection attempts against wp-admin AJAX endpoints targeting the scan_id parameter. If the cookie scanner module is not actively used, deactivating or removing the plugin eliminates exposure entirely with no functional impact beyond loss of the scanner feature. No workaround for the SQL injection itself exists short of patching.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability is rooted in CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) and manifests specifically within the plugin's cookie scanner admin module. Source code references point to three files: class-wpl-cookie-consent-cookie-scanner.php (lines 994 and 1036) and class-wpl-cookie-consent-cookie-scanner-ajax.php (lines 102, 823, and 847) - all under the gdpr-cookie-consent plugin's admin/modules/cookie-scanner path. The 'scan_id' parameter accepted by AJAX handlers in this module is concatenated into SQL queries without adequate escaping or prepared statement use, a classic second-order or direct injection pattern. The affected CPE is cpe:2.3:a:wplegalpages:cookie_banner_for_gdpr_/_ccpa_-_wplp_cookie_consent:*:*:*:*:*:*:*:*, identifying the vendor as WP Legal Pages (wplegalpages). The plugin is a GDPR/CCPA compliance tool, meaning it typically runs on sites that store user consent logs, cookie scan results, and potentially PII-adjacent configuration - making the underlying database a meaningful extraction target.
Know when Wplegalpages gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Admin panel is network-accessible (AV:N), requires no special conditions (AC:L), demands administrator credentials (PR:H), and enables read-only database extraction with no integrity or availability impact.
Primary rating from Vendor (Wordfence).
CVSS VectorVendor: Wordfence
DescriptionCVE.org
The Cookie Banner for GDPR / CCPA - WPLP Cookie Consent plugin for WordPress is vulnerable to generic SQL Injection via the 'scan_id' parameter in all versions up to, and including, 4.3.6 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with administrator-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
More in Wplegalpages
View allUnauthenticated arbitrary file upload in the WPLP Cookie Consent (GDPR/CCPA cookie banner) plugin for WordPress, version
Unauthenticated broken authentication in the WPLegalPages WordPress plugin (versions ≤ 3.7.0) allows remote attackers to
Stored cross-site scripting in the WPLP Cookie Consent WordPress plugin (all versions ≤ 4.4.1) enables any unauthenticat
Stored XSS in the WPLP Cookie Consent WordPress plugin (all versions through 4.3.5) enables attackers to inject persiste
The WPLegalPages plugin for WordPress is vulnerable to Stored Cross-Site Scripting via 'wplegalpage' shortcode in versio
SQL injection in the Cookie Banner for GDPR/CCPA - WPLP Cookie Consent WordPress plugin (all versions up to and includin
Unauthorized modification of cookie scan schedule configuration in the GDPR Cookie Consent WordPress plugin (versions up
Unauthenticated cross-site request forgery in the WPLP Cookie Consent WordPress plugin up to version 4.3.7 allows attack
EUVD-2026-42844
GHSA-4x73-55x9-5rm2
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB