What the vulnerability does
01Description
The Cost of Goods: Product Cost & Profit Calculator for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'alg_wc_cog_product_cost' and 'alg_wc_cog_product_profit' shortcodes in all versions up to, and including, 4.1.0 due to insufficient input sanitization and output escaping on user supplied attributes. 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.
Explanation of Vulnerability in Simple Terms
02Summary
The Cost of Goods plugin for WooCommerce versions up to 4.1.0 contains a cross-site scripting (XSS) vulnerability. An authenticated user with low privileges can inject malicious scripts that execute in other users' browsers, including administrators. The vulnerability affects the site's scope, meaning injected code can interact with other parts of the site beyond the plugin itself.
What an attacker can do
03Attacker Capabilities
Inject malicious JavaScript that runs in other users' browsers, potentially stealing session tokens or performing actions as those users.
Potential impact on your site
04Site Impact
An authenticated attacker can compromise admin accounts or other users' sessions, leading to unauthorized site modifications or data theft.
Conditions required to exploit
05Prerequisites
Attacker must have a low-privilege account (e.g., shop manager or contributor) on the WooCommerce site.
Key dates
06Disclosure timeline
May 13, 2026
CVE published
May 13, 2026
Record updated