# WooCommerce Square <= 5.5.3 - Unauthenticated Price Manipulation via Digital Wallet Product Quantity

- **ID:** WPSEC-2026-4502
- **Plugin:** WooCommerce Square (`woocommerce-square`), https://wordpress.org/plugins/woocommerce-square/
- **Affected versions:** from 5.5.0 before 5.5.4
- **Fixed in:** 5.5.4 (Update to 5.5.4 or later.)
- **Severity:** Medium 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-1284
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-12-03)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/woocommerce-square
- **Fix released:** 2026-12-02
- **Published:** 2026-12-03
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4502/

## Description

The WooCommerce Square plugin for WordPress is vulnerable to price manipulation via the Digital Wallet (Apple Pay / Google Pay) add-to-cart flow on the product page (the square_digital_wallet_add_to_cart WC AJAX action) in all versions from 2.3.0 up to, and including, 5.5.3. This is due to insufficient validation of the product quantity taken from the request: it was passed to the cart without being normalized to a whole stock amount. This makes it possible for unauthenticated attackers to add fractional quantities to the cart and check out a chargeable product for a total below its real price, or for a total that rounds to zero.

## References

- https://wpsec.com/vuln/WPSEC-2026-4502/
- https://plugins.svn.wordpress.org/woocommerce-square/tags/5.5.4/
- https://wordpress.org/plugins/woocommerce-square/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4502/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
