SecurityContext

CVE-2026-6962: The Cost of Goods: Product Cost & Profit Calculator for WooCommerce - Stored XSS

  • Cve: CVE-2026-6962
  • Name: The Cost of Goods: Product Cost & Profit Calculator for WooCommerce - Stored XSS
  • Description: 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.
  • Impact: Authenticated contributors can inject scripts that execute in users' browsers, potentially stealing data or performing actions on their behalf.
  • Remediation: Update to a version later than 4.1.0 or the latest available version.
  • Vulnerability type: stored_xss
  • Vulnerability impact: stored_xss
  • Requirement type: logged_in
  • Requirements: Attacker must have contributor-level or higher access
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.4
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
  • Epss score: 0.00193
  • Epss percentile: 0.08945
  • Assignee: [email protected]
  • Published at: 2026-05-13T05:16:24Z
  • Age in days: 195
  • Modified at: 2026-06-17T11:01:33Z
  • References total: 5
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-6962
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://plugins.trac.wordpress.org/browser/cost-of-goods-for-woocommerce/tags/4.1.0/includes/class-alg-wc-cog-products.php#L119
https://plugins.trac.wordpress.org/browser/cost-of-goods-for-woocommerce/tags/4.1.0/includes/class-alg-wc-cog-products.php#L133
https://plugins.trac.wordpress.org/browser/cost-of-goods-for-woocommerce/tags/4.1.0/includes/class-alg-wc-cog-products.php#L158
https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3524832%40cost-of-goods-for-woocommerce&new=3524832%40cost-of-goods-for-woocommerce&sfp_email=&sfph_mail=
https://www.wordfence.com/threat-intel/vulnerabilities/id/aedde7a7-018d-45f9-8f67-f4ea01be894e?source=cve

Products

ProductAffectedPlatform boundSourcesUrl
wpfactory:cost_of_goods_for_woocommerce<= 4.1.0nocna_alias/v1/products/wpfactory/cost_of_goods_for_woocommerce

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts