# WPC Smart Wishlist for WooCommerce <= 6.2.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via Wishlist Button 'title' and 'data-product_name' Attributes

- **ID:** WPSEC-2026-4043
- **Plugin:** WPC Smart Wishlist for WooCommerce (`woo-smart-wishlist`), https://wordpress.org/plugins/woo-smart-wishlist/
- **Affected versions:** from 4.0.0 before 6.2.2
- **Fixed in:** 6.2.2 (Update to 6.2.2 or later.)
- **Severity:** Medium 5.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/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-26)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/woo-smart-wishlist
- **Fix released:** 2026-11-26
- **Published:** 2026-11-27
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4043/

## Description

The WPC Smart Wishlist for WooCommerce plugin for WordPress is vulnerable to DOM-based Stored Cross-Site Scripting via the wishlist button's title and data-product_name attributes in all versions up to, and including, 6.2.1. This is due to the plugin's frontend JavaScript reading these attribute values, which the browser decodes, and writing them into the wishlist notice with jQuery .html() without escaping. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts into pages by adding crafted wishlist button markup to post content. The scripts execute when a user clicks the injected button.

## References

- https://wpsec.com/vuln/WPSEC-2026-4043/
- https://plugins.svn.wordpress.org/woo-smart-wishlist/tags/6.2.2/
- https://wordpress.org/plugins/woo-smart-wishlist/

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

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.
