CVE-2026-122065 in Wishlist for WooCommerce Plugin
Summary
by MITRE • 11/26/2026
The MoreConvert Wishlist for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'empty_icon' parameter in all versions up to, and including, 2.0.4 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. This vulnerability is exploitable even in version 2.0.4 where a patch was attempted, because the sanitizer's single html_entity_decode pass combined with esc_attr()'s double_encode=false behavior leaves entity-encoded inner markup intact, which the counter JavaScript then decodes and assigns to innerHTML, turning inert encoded text back into executable DOM elements.
If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Analysis
by VulDB Data Team • 11/26/2026
The MoreConvert Wishlist for WooCommerce plugin, a widely used extension for WordPress-based e-commerce sites, contains a critical security flaw identified as Stored Cross-Site Scripting within all versions up to 2.0.4. This vulnerability resides specifically in the handling of the empty_icon parameter, which is intended to allow administrators or contributors to define an icon displayed when a wishlist item has no associated image. The core technical failure stems from insufficient input sanitization and inadequate output escaping mechanisms during both data ingestion and rendering processes. Because this flaw allows for stored persistence, malicious scripts are not executed immediately upon submission but rather remain embedded in the database until triggered by subsequent user interactions, significantly increasing the attack surface beyond transient session-based exploits.
The operational impact of this vulnerability is severe due to its ability to facilitate persistent attacks against any authenticated user with contributor-level access or higher. An attacker can inject arbitrary JavaScript code into the plugin's configuration settings, which then executes whenever another user views a wishlist page containing an item that relies on the compromised empty_icon field. This execution occurs within the context of the victim’s session, potentially allowing attackers to steal administrative credentials via cookie theft, perform actions on behalf of the victim such as modifying product details or processing fraudulent orders, and redirect users to phishing sites designed to harvest sensitive information. The persistence of this payload means that even after the initial injection is discovered, all subsequent visitors to affected pages remain at risk until the database entry is manually cleaned or the plugin is updated.
A particularly insidious aspect of this vulnerability is its resilience against a previously attempted patch in version 2.0.4. While developers implemented countermeasures involving HTML entity decoding and attribute escaping, these measures were technically flawed due to specific behavioral interactions between PHP functions. The sanitizer performed only a single pass of html_entity_decode, which was insufficient to neutralize nested or complex encoding schemes. Furthermore, the use of esc_attr with its default double_encode=false parameter meant that pre-existing encoded entities within inner markup remained intact rather than being escaped further. When the frontend JavaScript subsequently decoded these strings and assigned them directly to the innerHTML property of DOM elements, it effectively reversed the sanitization efforts, transforming inert encoded text back into executable script tags or event handlers. This specific chain of failures highlights how partial mitigations can inadvertently preserve exploitability if they do not address the full lifecycle of data transformation from input to rendering.
From a classification perspective, this vulnerability aligns with CWE-79, which describes Improper Neutralization of Input During Web Page Generation commonly known as Cross-site Scripting. The stored nature of the attack also correlates with MITRE ATT&CK technique T1059.007, JavaScript Execution via Browser DOM Objects, and potentially T1189 Drive-by Compromise if used in conjunction with other vectors to lure users into triggering the payload. To mitigate this risk, site administrators must immediately update the MoreConvert Wishlist plugin to a version that properly implements comprehensive input validation using allowlists for expected icon formats rather than relying solely on output escaping. Additionally, implementing Content Security Policy headers can help restrict inline script execution even if an injection occurs, providing a layer of defense-in-depth. Developers should ensure that all dynamic content assigned to innerHTML is rigorously sanitized or constructed via safe DOM methods like document.createElement and textContent to prevent direct interpretation of user-supplied data as executable code.