# bSlider – Build Sliders That Bring Your Content to Life <= 2.2.6 - Authenticated (Contributor+) Stored Cross-Site Scripting via Slider Data Attributes

- **ID:** WPSEC-2026-3525
- **Plugin:** bSlider – Build Sliders That Bring Your Content to Life (`b-slider`), https://wordpress.org/plugins/b-slider/
- **Affected versions:** all versions before 2.3.0
- **Fixed in:** 2.3.0 (Update to 2.3.0 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 Low, affected versions Low (as of 2026-11-19)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/b-slider
- **Fix released:** 2026-11-19
- **Published:** 2026-11-20
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3525/

## Description

The bSlider – Build Sliders That Bring Your Content to Life plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the slider's data-attributes and data-attributes-b64 HTML attributes in all versions up to, and including, 2.2.6. The cause is that the front-end slider script loads its settings from any element with the wp-block-bsb-slider class and renders slide titles, descriptions and Gutenberg Blocks slide HTML from those settings as raw HTML. The server-side sanitization in the block's render callback is skipped this way. Users without the unfiltered_html capability can put such an element in post content, because WordPress keeps data-* attributes and the class attribute on div elements. 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-3525/
- https://plugins.svn.wordpress.org/b-slider/tags/2.3.0/
- https://wordpress.org/plugins/b-slider/

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

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.
