# WPC Smart Wishlist for WooCommerce <= 6.2.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via Continue Shopping 'data-url' and Wishlist Switcher URLs

- **ID:** WPSEC-2026-4044
- **Plugin:** WPC Smart Wishlist for WooCommerce (`woo-smart-wishlist`), https://wordpress.org/plugins/woo-smart-wishlist/
- **Affected versions:** all versions 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-4044/

## Description

The WPC Smart Wishlist for WooCommerce plugin for WordPress is vulnerable to DOM-based Stored Cross-Site Scripting via the continue shopping element's data-url attribute and the wishlist switcher dropdown value in all versions up to, and including, 6.2.1. This is due to the plugin's frontend JavaScript assigning these values to window.location without checking the URL scheme. This makes it possible for authenticated attackers, with contributor-level access and above, to add elements with javascript: URLs to post content. The scripts run when a user clicks the crafted element or changes the dropdown selection.

## References

- https://wpsec.com/vuln/WPSEC-2026-4044/
- 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-4044/

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.
