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
Lifecycle Timeline
2DescriptionCVE.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.
AnalysisAI
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.
Technical ContextAI
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.
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.
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
Same weakness CWE-89 – SQL Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-42844
GHSA-4x73-55x9-5rm2