{
 "id": "WPSEC-2026-3556",
 "url": "https://wpsec.com/vuln/WPSEC-2026-3556/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-3556/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-3556/index.md",
 "title": "Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program – myCred <= 4.0.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via Content Sale Count and Content Buyer Count Blocks 'wrapper' Attribute",
 "description": "The myCred plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'wrapper' attribute of the Content Sale Count and Content Buyer Count blocks in all versions up to, and including, 4.0.3 due to the attribute being used as an HTML tag name with only esc_html applied, which does not prevent injection of additional unquoted attributes such as event handlers. 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.",
 "plugin": {
  "slug": "mycred",
  "name": "Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program – myCred",
  "full_name": "Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program – myCred",
  "wordpress_org": "https://wordpress.org/plugins/mycred/",
  "advisories_url": "https://wpsec.com/vuln/plugin/mycred/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/mycred"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 6.4,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "2.8",
    "from_inclusive": true,
    "to": "4.0.4",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 2.8 before 4.0.4"
  ]
 },
 "introduced_in": "2.8",
 "fixed_in": "4.0.4",
 "remediation": "Update to 4.0.4 or later.",
 "fix_released": "2026-11-19T12:10:10+00:00",
 "published": "2026-11-20T12:50:17+00:00",
 "updated": "2026-11-20T08:33:25.629177+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-3556/",
  "https://plugins.svn.wordpress.org/mycred/tags/4.0.4/",
  "https://wordpress.org/plugins/mycred/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/mycred",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Medium",
  "affected_versions": "Medium",
  "as_of": "2026-11-20"
 }
}