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

Medium 6.4 CWE-79Fixed in 2.56
ID
WPSEC-2026-3999
Plugin
Advanced Woo Labels – Product Labels & Badges for WooCommerce (advanced-woo-labels)
Affected
from 1.45 before 2.56
Remediation
Update to 2.56 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-79
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-11-26
Attack surface
Advanced Woo Labels – Product Labels & Badges for WooCommerce on WPSec AttackSurface
Fix released
Published

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

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0