# Kadence Blocks — Page Builder Toolkit for Gutenberg Editor <= 3.9.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via Lazy Loading Attributes

- **ID:** WPSEC-2026-4656
- **Plugin:** Kadence Blocks — Page Builder Toolkit for Gutenberg Editor (`kadence-blocks`), https://wordpress.org/plugins/kadence-blocks/
- **Affected versions:** from 3.6.0 before 3.9.2.1
- **Fixed in:** 3.9.2.1 (Update to 3.9.2.1 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin High, affected versions High (as of 2026-12-04)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/kadence-blocks
- **Fix released:** 2026-12-03
- **Published:** 2026-12-04
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4656/

## Description

The Kadence Blocks plugin for WordPress is vulnerable to Stored Cross-Site Scripting via 'data-kadence-lazy-*' attributes in post content and excerpts in versions 3.6.0 up to, and including, 3.9.2. The cause is that the Performance Optimizer's front-end lazy loader copies the value of every attribute named in 'data-kadence-lazy-attrs' from the matching 'data-kadence-lazy-<name>' attribute onto the element without restricting which attribute names are allowed, including event-handler attributes, and that these data attributes, which KSES permits, were not removed from saved content. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page, when the Performance Optimizer is enabled and the page has been optimized.

## References

- https://wpsec.com/vuln/WPSEC-2026-4656/
- https://plugins.svn.wordpress.org/kadence-blocks/tags/3.9.2.1/
- https://wordpress.org/plugins/kadence-blocks/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4656/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
