Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
PR:L confirmed by contributor requirement; UI:R reflects that a victim must visit the injected page for payload execution; S:C and C:L/I:L capture cross-browser session impact with no availability consequence.
Primary rating from Vendor (Wordfence).
CVSS VectorVendor: Wordfence
Lifecycle Timeline
2DescriptionCVE.org
The Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program - myCred plugin for WordPress is vulnerable to Stored Cross-Site Scripting via 'wrap' Shortcode Attribute in all versions up to, and including, 3.1 due to insufficient input sanitization and output escaping. 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.
AnalysisAI
Stored XSS in the myCred WordPress plugin (versions up to and including 3.1) allows authenticated attackers holding contributor-level access or above to inject persistent JavaScript payloads via the unsanitized 'wrap' shortcode attribute in the leaderboard shortcode handler. When any user - including administrators - visits a page containing the injected shortcode, the payload executes in their browser, enabling session hijacking or privilege escalation. No public exploit or CISA KEV listing has been identified at time of analysis; fix is available in version 3.1.1 as confirmed by WordPress plugin trac changeset 3572451.
Technical ContextAI
The flaw is rooted in CWE-79 (Improper Neutralization of Input During Web Page Generation - Stored XSS), occurring specifically in the myCred leaderboard shortcode rendering pipeline. Vulnerable code paths are traceable in the WordPress plugin trac to includes/classes/class.query-leaderboard.php (line 1042 in the 3.0.2 and 3.0.6 tags) and includes/shortcodes/mycred_leaderboard.php (line 20), where the 'wrap' attribute value is interpolated directly into HTML output without calling WordPress sanitization functions such as esc_attr() or wp_kses(). The 3.1.1 tag shows the same class at a shifted line (L976) alongside changes in includes/mycred-functions.php (L4399), indicating refactored sanitization logic was introduced. WordPress shortcodes accept arbitrary key-value attributes by design, making every unescaped attribute a potential stored XSS vector. CPE: cpe:2.3:a:saadiqbal:points_management_system_for_gamification,_ranks,_badges,_and_loyalty_rewards_program_-_mycred:*:*:*:*:*:*:*:*.
RemediationAI
Update the myCred WordPress plugin to version 3.1.1 or later; this is the vendor-released patch as evidenced by WordPress plugin trac changeset 3572451 and modified code visible in the 3.1.1 repository tag at includes/classes/class.query-leaderboard.php and includes/mycred-functions.php. Full advisory details are at https://www.wordfence.com/threat-intel/vulnerabilities/id/041a7c9a-d7dc-4742-b879-f1836f324a46. If immediate patching is not feasible, restrict the contributor role to fully trusted internal users only, removing it from any publicly registerable roles - this eliminates the attacker's required access level but may impact editorial workflows. Alternatively, disable the myCred leaderboard shortcode via a mu-plugin filter (add_filter('mycred_shortcodes', ...)) until the upgrade can be applied; note this disables leaderboard display site-wide. A Web Application Firewall rule blocking <script, javascript:, and onerror= patterns in shortcode attribute submissions provides a partial defense-in-depth layer but should not substitute for patching.
More in Wordpress Plugin
View allThe Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil
Authentication bypass in the LiteSpeed Cache WordPress plugin (versions prior to 6.5.0.1) allows unauthenticated remote
The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner
The SureTriggers WordPress plugin through version 1.0.82 contains a privilege escalation vulnerability that allows unaut
The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via
The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based
SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a
The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i
The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base
The Email Subscribers by Icegram Express plugin for WordPress is vulnerable to SQL Injection via the ‘hash’ parameter in
Remote code execution in the WP Query Console WordPress plugin (versions up to and including 1.0) by Ajit Bohra allows u
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-37562