# Prime Slider <= 5.1.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via Slider 'data-settings' Attribute

- **ID:** WPSEC-2026-3345
- **Plugin:** Prime Slider – Hero Slider, Carousel, WooCommerce & Post Slider Elementor Addons (`bdthemes-prime-slider-lite`), https://wordpress.org/plugins/bdthemes-prime-slider-lite/
- **Affected versions:** all versions before 5.1.3
- **Fixed in:** 5.1.3 (Update to 5.1.3 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-18)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/bdthemes-prime-slider-lite
- **Fix released:** 2026-11-17
- **Published:** 2026-11-18
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3345/

## Description

The Prime Slider plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'data-settings' attribute read by the Fiestar, Elysium, Mercury, Omatic, Pacific, Rubix, Sniper, Storker, Tango and Vertex slider scripts in all versions up to, and including, 5.1.2. The cause is that the front-end scripts pass the JSON options from any matching slider markup on the page to the Swiper library without validating them, so options that Swiper turns into HTML, such as virtual slides, pagination elements or selector strings, are not checked. 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. They do this by adding post content that imitates one of these sliders on a page that loads the slider's script.

## References

- https://wpsec.com/vuln/WPSEC-2026-3345/
- https://plugins.svn.wordpress.org/bdthemes-prime-slider-lite/tags/5.1.3/
- https://wordpress.org/plugins/bdthemes-prime-slider-lite/

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

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.
