# Prime Slider – Hero Slider, Carousel, WooCommerce & Post Slider Elementor Addons <= 4.7.2 - Unauthenticated Stored Cross-Site Scripting via Comment Content

- **ID:** WPSEC-2026-1240
- **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:** from 4.7.0 before 4.7.3
- **Fixed in:** 4.7.3 (Update to 4.7.3 or later.)
- **Severity:** High 7.2 (CVSS:3.1/AV:N/AC:L/PR:N/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-10-19)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/bdthemes-prime-slider-lite
- **Fix released:** 2026-10-18
- **Published:** 2026-10-19
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1240/

## Description

The Prime Slider plugin for WordPress is vulnerable to Stored Cross-Site Scripting via comment content and other user-authored content in versions 4.7.0 up to, and including, 4.7.2. The cause is a flawed regular-expression fallback in the plugin's content sanitizer (Content_Guard), which removes UIkit 'bdt-' component attributes after WordPress's kses filtering. The fallback also matched 'bdt-' text inside quoted attribute values and removed it along with a quote character. The remaining markup then turned into new, live attributes such as event handlers. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

## References

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

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

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.
