# WooCommerce Square <= 5.4.3 - Unauthenticated Integer Overflow in Order Total Conversion

- **ID:** WPSEC-2026-4505
- **Plugin:** WooCommerce Square (`woocommerce-square`), https://wordpress.org/plugins/woocommerce-square/
- **Affected versions:** from 2.0.0 before 5.4.4
- **Fixed in:** 5.4.4 (Update to 5.4.4 or later.)
- **Severity:** Low 3.7 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-190
- **Usage among sites WPSec scans:** plugin Medium, affected versions Low (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-4505/

## Description

The WooCommerce Square plugin for WordPress is vulnerable to an integer overflow in the conversion of order amounts to the smallest currency unit in all versions up to, and including, 5.4.3, due to the rounded floating-point amount being cast to an integer without a range check in Money_Utility::amount_to_cents(). This makes it possible for unauthenticated attackers to place orders with extremely large totals, for example through a very large quantity of a product without stock management, so that the amount charged through Square wraps around to an unrelated and potentially much smaller value than the order total.

## References

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

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

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.
