# Advanced Woo Labels – Product Labels & Badges for WooCommerce <= 2.55 - Authenticated (Contributor+) Stored Cross-Site Scripting via awl_get_label_by_id Shortcode

- **ID:** WPSEC-2026-3999
- **Plugin:** Advanced Woo Labels – Product Labels & Badges for WooCommerce (`advanced-woo-labels`), https://wordpress.org/plugins/advanced-woo-labels/
- **Affected versions:** from 1.45 before 2.56
- **Fixed in:** 2.56 (Update to 2.56 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-26)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/advanced-woo-labels
- **Fix released:** 2026-11-25
- **Published:** 2026-11-26
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3999/

## Description

The Advanced Woo Labels – Product Labels & Badges for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'awl_get_label_by_id' shortcode in all versions up to, and including, 2.55. The cause is insufficient input sanitization and output escaping. The 'awl-labels' post type used the default post capabilities, so contributors could create draft labels. The label settings form accepted an arbitrary 'id' key, which was stored after sanitize_text_field() only, so quote characters survived. The shortcode rendered any label post, drafts included, and used that stored 'id' value. The value was printed without escaping into the label's HTML class attributes and custom CSS selectors. 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-3999/
- https://plugins.svn.wordpress.org/advanced-woo-labels/tags/2.56/
- https://wordpress.org/plugins/advanced-woo-labels/

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

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.
