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

CVE-2026-104762: Kadence Blocks WordPress Plugin XSS Vulnerability

CVE-2026-104762 is a stored XSS vulnerability in Kadence Blocks WordPress plugin affecting versions up to 3.7.12. Authenticated attackers can inject malicious scripts via block font family attributes. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

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-104762 Overview

CVE-2026-104762 is a Stored Cross-Site Scripting (XSS) vulnerability [CWE-79] in the Kadence Blocks — Page Builder Toolkit for Gutenberg Editor plugin for WordPress. The flaw affects all versions up to and including 3.7.12. It stems from insufficient input sanitization and output escaping on the Block Font Family attribute. Authenticated users with author-level access or higher can inject arbitrary JavaScript that executes when any visitor views an affected page. The encoding bypass only triggers when the Load Google Fonts Locally site option (kadence_blocks_font_settings['load_fonts_local']) is enabled, which is not the default configuration.

Critical Impact

Authenticated authors can store malicious scripts that execute in the browsers of all site visitors, enabling session theft, administrative action hijacking, and site defacement.

Affected Products

  • Kadence Blocks — Page Builder Toolkit for Gutenberg Editor (WordPress plugin)
  • All versions up to and including 3.7.12
  • Only exploitable when the Load Google Fonts Locally option is enabled

Discovery Timeline

  • 2026-10-10 - CVE-2026-104762 published to NVD
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-104762

Vulnerability Analysis

The vulnerability resides in how Kadence Blocks processes the Block Font Family attribute when rendering CSS and font declarations. When an author configures a block, the font family value they submit is persisted as block metadata. During page rendering, the plugin writes this value into generated stylesheet output and font-loading markup without applying sufficient context-appropriate escaping.

An attacker with author-level privileges can submit a font family value containing CSS- or HTML-breaking sequences. When the load_fonts_local option is active, the font value flows through a different code path than the default remote Google Fonts loader. That alternate path reuses the attacker-controlled string in a context where quote characters and script-bearing payloads escape the intended attribute boundary.

Root Cause

The root cause is missing or insufficient output escaping in the local font-loading branch of the plugin. The relevant code paths referenced in the advisory include class-kadence-blocks-css.php (lines 858 and 2516), class-kadence-blocks-frontend.php (lines 377 and 379), and class-kadence-blocks-google-fonts.php (line 152). The default remote-font loader applies encoding that neutralizes the payload, which is why exploitation requires the non-default load_fonts_local setting.

Attack Vector

Exploitation requires an authenticated session with at least author-level capabilities. The attacker edits a block, sets a crafted Font Family attribute containing a JavaScript payload, and publishes the page. When any user, including administrators, loads the page, the browser parses the injected script and executes it in the site's origin.

See the Wordfence Vulnerability Report and the Kadence Blocks Changeset for the committed fix.

Detection Methods for CVE-2026-104762

Indicators of Compromise

  • Block post meta or page content containing font-family values with angle brackets, </style>, </script>, or event-handler keywords such as onerror= and onload=.
  • Generated inline <style> blocks or <link> tags from Kadence Blocks that contain unexpected HTML tags or JavaScript tokens.
  • Unexpected outbound requests to attacker-controlled domains originating from pages built with Kadence Blocks.
  • New or modified administrator accounts shortly after an author-level user edited pages using Kadence Blocks.

Detection Strategies

  • Audit the WordPress wp_posts and wp_postmeta tables for Kadence block JSON containing fontFamily values with suspicious characters (<, >, ", ', backticks, or javascript:).
  • Monitor rendered HTML output of pages for <script> tags or event handlers emitted within font-related markup.
  • Alert on edits to the kadence_blocks_font_settings option, specifically changes to load_fonts_local.
  • Review web server access logs for POST requests to /wp-admin/post.php by author-role accounts followed by anonymous visits that trigger JavaScript errors.

Monitoring Recommendations

  • Enable WordPress audit logging to capture content edits, user role changes, and option updates.
  • Deploy a web application firewall with XSS payload identification tuned for WordPress block editor requests.
  • Track Content Security Policy (CSP) violation reports to surface unexpected script sources.
  • Review all author- and contributor-level accounts for necessity and recent activity.

How to Mitigate CVE-2026-104762

Immediate Actions Required

  • Update the Kadence Blocks plugin to a version later than 3.7.12 as soon as the vendor-released patch is available.
  • Disable the Load Google Fonts Locally option in Kadence Blocks settings until the plugin is patched, since the issue does not trigger with the default remote-font configuration.
  • Audit all pages created or modified by non-administrator users for suspicious font family attributes.
  • Rotate credentials and session tokens for any administrator who viewed pages authored by untrusted users.

Patch Information

The vendor committed a fix in the Kadence Blocks repository. Review the Kadence Blocks Changeset and the Wordfence Vulnerability Report for the fixed version and affected code paths. Apply the update through the WordPress plugin dashboard or by replacing plugin files on disk.

Workarounds

  • Set kadence_blocks_font_settings['load_fonts_local'] to disabled so the vulnerable local-font code path is not reached.
  • Restrict author-level and higher capabilities to trusted users only, using the principle of least privilege.
  • Deploy a strict Content Security Policy that blocks inline scripts and restricts script sources to trusted origins.
  • Place a WordPress-aware web application firewall in front of the site to filter XSS payloads submitted through the block editor.
bash
# Example WP-CLI commands to inspect and disable the vulnerable option
wp option get kadence_blocks_font_settings --format=json
wp eval 'update_option("kadence_blocks_font_settings", array_merge((array)get_option("kadence_blocks_font_settings", []), ["load_fonts_local" => 0]));'
wp plugin update kadence-blocks

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.