# MoreConvert Wishlist for WooCommerce <= 2.0.4 - Authenticated (Contributor+) Stored Cross-Site Scripting via Wishlist Counter Shortcode Icon Attributes

- **ID:** WPSEC-2026-3701
- **Plugin:** MoreConvert Wishlist for WooCommerce (`smart-wishlist-for-more-convert`), https://wordpress.org/plugins/smart-wishlist-for-more-convert/
- **Affected versions:** from 2.0.0 before 2.0.5
- **Fixed in:** 2.0.5 (Update to 2.0.5 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-22)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/smart-wishlist-for-more-convert
- **Fix released:** 2026-11-21
- **Published:** 2026-11-22
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3701/

## Description

The MoreConvert Wishlist for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'empty_icon' and 'has_item_icon' attributes of the [wlfmc_wishlist_counter] shortcode in all versions up to, and including, 2.0.4, due to the counter template writing the sanitized SVG icon markup into data-empty-icon and data-has-items-icon attributes with esc_attr(), which does not double-encode existing entities, while the frontend script inserts those attribute values into the page with innerHTML. Entity-encoded text inside the SVG is decoded by the browser and becomes live markup. 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-3701/
- https://plugins.svn.wordpress.org/smart-wishlist-for-more-convert/tags/2.0.5/
- https://wordpress.org/plugins/smart-wishlist-for-more-convert/

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

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.
