Skip to main content
Vulnerability Database/CVE-2026-107631

CVE-2026-107631: Complianz WordPress Plugin XSS Vulnerability

CVE-2026-107631 is a stored XSS flaw in the Record of Consent Extension for Complianz WordPress plugin that allows unauthenticated attackers to inject malicious scripts. This post covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-107631 Overview

The Record of Consent Extension for Complianz plugin for WordPress contains a stored Cross-Site Scripting (XSS) vulnerability [CWE-79] in versions up to and including 2.5. Attackers can inject arbitrary web scripts through the uid parameter due to insufficient input sanitization and output escaping. The write path lacks capability and role checks, and the nonce intended to enforce authorization is emitted via wp_localize_script on wp_enqueue_scripts. Any unauthenticated frontend visitor can read the nonce and submit malicious payloads. Injected scripts execute whenever a user accesses an affected page.

Critical Impact

Unauthenticated attackers can store arbitrary JavaScript that executes in victim browsers, enabling session theft, administrative action hijacking, and site defacement.

Affected Products

  • Record of Consent Extension for Complianz plugin for WordPress
  • All versions up to and including 2.5
  • Fixed in version 2.6

Discovery Timeline

  • 2026-10-14 - CVE-2026-107631 published to NVD
  • 2026-10-14 - Last updated in NVD database

Technical Details for CVE-2026-107631

Vulnerability Analysis

The vulnerability resides in the consent recording workflow of the Record of Consent Extension plugin. The plugin exposes a frontend write path that accepts a uid parameter and persists it without sufficient sanitization or output escaping. When administrators or users later view the stored records through the admin records tab, the attacker-controlled payload renders in the browser and executes JavaScript in the authenticated session context.

Two compounding design flaws make the attack trivial. First, the nonce intended to gate requests is emitted through wp_localize_script on the wp_enqueue_scripts hook, so the nonce value appears in the HTML served to every unauthenticated visitor. Second, no capability or role check guards the handler that processes the submission. Together these conditions let any remote actor supply a valid nonce and arbitrary payload.

Root Cause

The root cause is a combination of improper neutralization of input during web page generation [CWE-79] and broken access control on the write handler. The class-rocext-consent-handler.php logic accepts and stores the uid field without sanitization, and the admin-tab-records.php output path does not escape the stored value before rendering.

Attack Vector

An unauthenticated remote attacker loads any frontend page to harvest the leaked nonce. The attacker then issues a crafted request to the consent handler endpoint with a malicious uid payload. The payload is persisted in the plugin's records store and later executes in any browser that renders the records view.

No verified exploit code is published. See the Wordfence Vulnerability Report and the WordPress Consent Handler Logic for technical details.

Detection Methods for CVE-2026-107631

Indicators of Compromise

  • Unexpected <script>, onerror, or onload substrings inside stored consent record uid fields in the plugin database tables.
  • Outbound requests from administrator browsers to attacker-controlled domains following access to the Complianz records admin page.
  • Anomalous POST requests to the plugin's consent handler endpoint originating from unauthenticated clients with high volume or encoded payloads.

Detection Strategies

  • Audit stored consent records for HTML, JavaScript keywords, or encoded payloads in the uid column and related metadata.
  • Enable WordPress debug logging and inspect requests referencing rocext or the Record of Consent Extension handler for malformed uid values.
  • Deploy a web application firewall rule matching uid parameter values containing script tags, event handlers, or JavaScript URIs.

Monitoring Recommendations

  • Monitor WordPress admin sessions for Document Object Model (DOM) modifications and unexpected network beacons when viewing plugin records pages.
  • Alert on new administrator account creation or privilege changes shortly after admins visit the records tab.
  • Track plugin version inventory across WordPress fleets to confirm upgrades to version 2.6 or later.

How to Mitigate CVE-2026-107631

Immediate Actions Required

  • Update the Record of Consent Extension for Complianz plugin to version 2.6 or later on every WordPress site.
  • Review and purge stored consent records containing suspicious script content before administrators load the records admin page.
  • Rotate administrator credentials and invalidate active sessions if the records view was accessed while the plugin was vulnerable.

Patch Information

The vendor addressed the vulnerability in version 2.6 of the plugin. Review the WordPress Plugin Changeset 3736545 and download the fixed release from the WordPress Consent Extension Plugin page.

Workarounds

  • Deactivate the Record of Consent Extension for Complianz plugin until the 2.6 update is applied.
  • Restrict access to WordPress frontend pages that enqueue the plugin's scripts via network controls where feasible.
  • Deploy a web application firewall rule blocking requests to the consent handler endpoint containing HTML tags or JavaScript syntax in the uid parameter.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.