# Qi Blocks <= 1.5.5 - Authenticated (Contributor+) Stored Cross-Site Scripting via Isotope 'data-isotope' Attribute

- **ID:** WPSEC-2026-4406
- **Plugin:** Qi Blocks (`qi-blocks`), https://wordpress.org/plugins/qi-blocks/
- **Affected versions:** all versions before 1.5.6
- **Fixed in:** 1.5.6 (Update to 1.5.6 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 Medium, affected versions Medium (as of 2026-12-03)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/qi-blocks
- **Fix released:** 2026-12-01
- **Published:** 2026-12-03
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4406/

## Description

The Qi Blocks plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'data-isotope' (and 'data-isotope-options') HTML attribute handled by the bundled Isotope library in all versions up to, and including, 1.5.5. This is due to the bundled library automatically initializing Isotope on any element carrying these attributes with JSON options taken from the attribute, and, with jQuery filtering enabled by default, passing the user-supplied 'filter' option to jQuery().is(), which parses HTML-like strings as markup. This makes it possible for authenticated attackers with contributor-level access and above to inject arbitrary web scripts in pages that load the plugin's Isotope script (for example, pages containing a Masonry Image Gallery or Blog List block), which will execute whenever a user accesses an injected page.

## References

- https://wpsec.com/vuln/WPSEC-2026-4406/
- https://plugins.svn.wordpress.org/qi-blocks/tags/1.5.6/
- https://wordpress.org/plugins/qi-blocks/

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

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.
