# Prime Slider – Hero Slider, Carousel, WooCommerce & Post Slider Elementor Addons <= 5.1.6 - Authenticated (Contributor+) Stored Cross-Site Scripting via UIkit Component Attributes and Elementor Custom Attributes

- **ID:** WPSEC-2026-4145
- **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.7
- **Fixed in:** 5.1.7 (Update to 5.1.7 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-27)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/bdthemes-prime-slider-lite
- **Fix released:** 2026-11-26
- **Published:** 2026-11-27
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4145/

## Description

The Prime Slider plugin for WordPress is vulnerable to Stored Cross-Site Scripting via UIkit component attributes and Elementor 'Custom Attributes' settings in all versions up to, and including, 5.1.6. This is due to the plugin's content guard removing only 'bdt-' and 'data-bdt-' attributes found in markup strings. It does not remove the UIkit 'attrs' / 'data-attrs' and 'sources' / 'data-sources' attributes, which the bundled UIkit lightbox applies as arbitrary attributes (event handlers included) to the elements it creates. It also does not clean Elementor 'Custom Attributes' key|value settings, which are printed as real attributes. This makes it possible for authenticated attackers, with Contributor-level access and above, to store attributes that boot bundled UIkit components and execute arbitrary web scripts when a user, such as an administrator, views the affected page.

## References

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

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

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.
