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

Medium 6.4 CWE-79Fixed in 4.0.4
ID
WPSEC-2026-3556
Plugin
Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program – myCred (mycred)
Affected
from 2.8 before 4.0.4
Remediation
Update to 4.0.4 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 Medium · Affected versions Medium among sites WPSec scans, 2026-11-20
Attack surface
Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program – myCred on WPSec AttackSurface
Fix released
Published

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.

References

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

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

License: CC BY 4.0