Conditional extra fees for WooCommerce <= 1.1.74 - Authenticated (Administrator+) Stored Cross-Site Scripting via Fee Rule Condition Values
- ID
- WPSEC-2026-3222
- Plugin
- PI Conditional cart fee / Extra charge rule for WooCommerce (conditional-extra-fees-for-woocommerce)
- Affected
- all versions before 1.1.76
- Remediation
- Update to 1.1.76 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N
- Weakness
- CWE-79
- Usage
- Plugin Low · Affected versions Low among sites WPSec scans, 2026-11-16
- Attack surface
- Conditional extra fees for WooCommerce on WPSec AttackSurface
- Fix released
- Published
Description
The PI Conditional cart fee / Extra charge rule for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via fee rule condition values in all versions up to, and including, 1.1.74. This is due to insufficient output escaping of saved condition values (such as postcode, weight, quantity and product quantity values) when they are printed into input attributes in the admin fee rule editor. These values are only passed through sanitize_text_field(), which does not encode quotes. This makes it possible for authenticated attackers with administrator-level access to inject arbitrary web scripts that execute whenever a user opens the affected fee rule. This only affects multi-site installations and installations where unfiltered_html has been disabled.
References
- https://wpsec.com/vuln/WPSEC-2026-3222/
- https://plugins.svn.wordpress.org/conditional-extra-fees-for-woocommerce/tags/1.1.76/
- https://wordpress.org/plugins/conditional-extra-fees-for-woocommerce/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON or Markdown · All advisories: JSON, RSS