# FOX – Currency Switcher Professional for WooCommerce <= 1.5.7 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'data-woocs-sd' HTML Attributes

- **ID:** WPSEC-2026-4326
- **Plugin:** FOX – Currency Switcher Professional for WooCommerce (`woocommerce-currency-switcher`), https://wordpress.org/plugins/woocommerce-currency-switcher/
- **Affected versions:** all versions before 1.5.8
- **Fixed in:** 1.5.8 (Update to 1.5.8 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-12-01)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/woocommerce-currency-switcher
- **Fix released:** 2026-11-30
- **Published:** 2026-12-01
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4326/

## Description

The FOX – Currency Switcher Professional for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Smart Designer currency switcher (data-woocs-sd and data-woocs-sd-currencies HTML attributes) in all versions up to, and including, 1.5.7, due to the switcher script trusting design and currency data read from any matching element on the page and inserting the label, title, text and image values into innerHTML without escaping, and copying arbitrary title attributes onto the option element. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages. To do so they add an element carrying these data attributes, plus the [woocs sd=...] shortcode that loads the script, to a post. The scripts execute whenever a user accesses an injected page.

## References

- https://wpsec.com/vuln/WPSEC-2026-4326/
- https://plugins.svn.wordpress.org/woocommerce-currency-switcher/tags/1.5.8/
- https://wordpress.org/plugins/woocommerce-currency-switcher/

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

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.
