CVE-2026-116771: Product Options and Price Calculation Formulas for WooCommerce <= 4.9.69 - Authenticated (Shop Manager+) Stored Cross-Site Scripting via 'price_disabled_msg' Setting
The Product Options and Price Calculation Formulas for WooCommerce – Uni CPO plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'pricedisabledmsg' setting in versions up to, and including, 4.9.69 The unicposavesettingsdata() AJAX handler applies htmlentitydecode() to the output of unicposanitizetext(), which itself already runs htmlentitydecode() before wpkses(); this double decode allows a double-entity-encoded tag to pass wpkses as inert text and then be re-materialised as live HTML before being stored in the cpopricedisabledmsg post meta and later echoed via doshortcode() on the single-product page without further escaping. This makes it possible for authenticated attackers, with Shop Manager-level access (editproducts) and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected product page.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue, and who is exposed to the injected script?
Exploitation requires an authenticated WordPress account with Shop Manager-level access or higher, specifically the edit_products capability. Once injected into a product, the script executes for any user who visits that product’s single-product page.
Is a default installation affected?
The issue is in the Uni CPO price_disabled_msg setting and requires an attacker to save a crafted value through the plugin’s settings AJAX handler. The available data does not establish whether that setting is enabled or exposed in every default configuration.
How can I check whether a product has been affected?
Inspect the _cpo_price_disabled_msg post meta associated with products, particularly for double-entity-encoded HTML or script-like content. Affected content is later rendered on the single-product page through do_shortcode() without further escaping.
What can be done if patching is not immediately possible?
Restrict Shop Manager and other accounts with edit_products access to trusted users, and review or remove untrusted values from the price_disabled_msg setting and corresponding _cpo_price_disabled_msg product metadata. This reduces the ability to inject new payloads and removes known stored payloads.