# Qi Blocks <= 1.5.4 - Authenticated (Contributor+) Stored Cross-Site Scripting via Slider data-* Attributes

- **ID:** WPSEC-2026-3875
- **Plugin:** Qi Blocks (`qi-blocks`), https://wordpress.org/plugins/qi-blocks/
- **Affected versions:** all versions before 1.5.5
- **Fixed in:** 1.5.5 (Update to 1.5.5 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-11-25)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/qi-blocks
- **Fix released:** 2026-11-24
- **Published:** 2026-11-25
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3875/

## Description

The Qi Blocks plugin for WordPress is vulnerable to Stored Cross-Site Scripting via data-* attributes on the plugin's slider elements in all versions up to, and including, 1.5.4. This is due to the front-end Swiper initialization (getSliderDatas) copying every data-* attribute of the slider element into the Swiper options, including the pagination and navigation objects, whose values Swiper inserts into the page as HTML. data-* attributes survive the post content filtering applied to contributors. 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.

## References

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

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

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.
