{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-3999",
 "modified": "2026-11-26T14:52:45Z",
 "published": "2026-11-26T14:52:45Z",
 "summary": "Advanced Woo Labels – Product Labels & Badges for WooCommerce <= 2.55 - Authenticated (Contributor+) Stored Cross-Site Scripting via awl_get_label_by_id Shortcode",
 "details": "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.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "advanced-woo-labels"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "1.45"
      },
      {
       "fixed": "2.56"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "from 1.45 before 2.56"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-3999/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/advanced-woo-labels/tags/2.56/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/advanced-woo-labels/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-3999/",
  "cwe_ids": [
   "CWE-79"
  ],
  "vulnerability_type": "XSS",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
