CVE-2026-1084
Stored XSS in WordPress Cookie Consent Plugin Affects Multi-Site
Publication date: 2026-01-24
Last updated on: 2026-01-24
Assigner: Wordfence
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| unknown_vendor | cookie_consent_for_developers | to 1.7.1 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-79 | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a Stored Cross-Site Scripting (XSS) issue in the Cookie Consent for Developers WordPress plugin (up to version 1.7.1). It occurs because the plugin does not properly sanitize and escape input in multiple settings fields. Authenticated users with administrator-level access or higher can inject malicious scripts into these settings. These scripts then execute whenever any user accesses a page containing the injected content. The vulnerability specifically affects multi-site WordPress installations or installations where the 'unfiltered_html' capability is disabled. [1, 2, 3, 4]
How can this vulnerability impact me? :
If exploited, this vulnerability allows an attacker with administrator privileges to inject arbitrary JavaScript code into the website's pages. This can lead to malicious actions such as stealing user session cookies, redirecting users to malicious sites, defacing the website, or performing actions on behalf of users without their consent. Since the injected scripts execute in the context of users visiting the site, it can compromise user data and site integrity. The impact is limited to multi-site setups or sites with 'unfiltered_html' disabled, but within those contexts, it poses a significant security risk. [1]
How can this vulnerability be detected on my network or system? Can you suggest some commands?
Detection of this vulnerability involves identifying if the WordPress plugin 'Cookie consent for developers' version 1.7.1 or earlier is installed on a multi-site WordPress installation with unfiltered_html disabled, and if an authenticated user with administrator-level access has injected malicious scripts into settings fields. Since the vulnerability is a stored XSS via multiple settings fields, detection can include: 1. Reviewing the plugin version installed to confirm if it is 1.7.1 or earlier. 2. Auditing the plugin's settings fields for suspicious or unexpected JavaScript code or HTML in the admin interface. 3. Monitoring HTTP requests and responses for injected scripts in pages served by the affected WordPress sites. 4. Using WordPress CLI commands to export and inspect plugin settings for malicious content, for example: - `wp option get ntgccTexttoshow` - `wp option get ntgccCustomCode` - `wp option get ntgccExecuteHeadCode` - `wp option get ntgccExecuteFooterCode` These commands retrieve stored settings that could contain injected scripts. 5. Checking user roles and recent changes by administrators to detect unauthorized modifications. There are no explicit network commands provided in the resources, but inspecting plugin settings via WordPress CLI and reviewing admin settings pages for injected scripts is recommended. [1, 2, 3, 4]
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include: 1. Updating the 'Cookie consent for developers' plugin to a version later than 1.7.1 where the vulnerability is fixed. 2. Restricting administrator-level access to trusted users only, since exploitation requires authenticated admin access. 3. Enabling 'unfiltered_html' capability only for trusted users or disabling it if possible, as the vulnerability affects installations where 'unfiltered_html' is disabled. 4. Reviewing and sanitizing all plugin settings fields in the admin interface to remove any injected malicious scripts. 5. Applying input sanitization and output escaping best practices in custom code or plugin modifications if immediate update is not possible. 6. Monitoring logs and user activity for suspicious changes. Since the vulnerability is stored XSS via settings fields, cleaning existing injected scripts and preventing unauthorized admin access are critical. The resources emphasize that the vulnerability arises from insufficient input sanitization and output escaping in settings fields editable by administrators. [1, 2, 3, 4]