# Premmerce Brands for WooCommerce <= 1.2.16 - Unauthenticated Stored Cross-Site Scripting via 'product_brand' Parameter

- **ID:** WPSEC-2026-3937
- **Plugin:** Premmerce Brands for WooCommerce (`premmerce-woocommerce-brands`), https://wordpress.org/plugins/premmerce-woocommerce-brands/
- **Affected versions:** all versions before 1.2.17
- **Fixed in:** 1.2.17 (Update to 1.2.17 or later.)
- **Severity:** High 7.2 (CVSS:3.1/AV:N/AC:L/PR:N/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-25)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/premmerce-woocommerce-brands
- **Fix released:** 2026-11-24
- **Published:** 2026-11-25
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3937/

## Description

The Premmerce Brands for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'product_brand' parameter in all versions up to, and including, 1.2.16. This is due to a missing capability and nonce check in the brand save handler hooked to 'woocommerce_product_bulk_and_quick_edit'. That hook fires on every post save made in an admin context, including an anonymous checkout sent through admin-ajax.php. The handler passes the raw value to wp_set_post_terms(), which creates new brand terms. The plugin also fails to escape brand names when it outputs them in the brands page, brands widget and product brand templates. This makes it possible for unauthenticated attackers to create brand terms with arbitrary names. A name can break out of an HTML attribute and inject arbitrary web scripts that execute whenever a user opens a page that displays the brands.

## References

- https://wpsec.com/vuln/WPSEC-2026-3937/
- https://plugins.svn.wordpress.org/premmerce-woocommerce-brands/tags/1.2.17/
- https://wordpress.org/plugins/premmerce-woocommerce-brands/

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

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.
