# Customer Reviews for WooCommerce <= 5.126.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'slides_to_show' Attribute of cusrev_reviews_slider Shortcode

- **ID:** WPSEC-2026-2184
- **Plugin:** Customer Reviews for WooCommerce (`customer-reviews-woocommerce`), https://wordpress.org/plugins/customer-reviews-woocommerce/
- **Affected versions:** all versions before 5.127.0
- **Fixed in:** 5.127.0 (Update to 5.127.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 Medium, affected versions Medium (as of 2026-11-03)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/customer-reviews-woocommerce
- **Fix released:** 2026-11-02
- **Published:** 2026-11-03
- **URL:** https://wpsec.com/vuln/WPSEC-2026-2184/

## Description

The Customer Reviews for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'slides_to_show' attribute of the 'cusrev_reviews_slider' shortcode in all versions up to, and including, 5.126.0, due to insufficient input sanitization and output escaping. The attribute value is placed unchanged into the slider settings, which are JSON-encoded and printed inside a single-quoted data-slick HTML attribute without attribute escaping, so a single quote in the value ends the attribute. 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-2184/
- https://plugins.svn.wordpress.org/customer-reviews-woocommerce/tags/5.127.0/
- https://wordpress.org/plugins/customer-reviews-woocommerce/

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

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.
