WooCommerce Square <= 5.4.3 - Unauthenticated Payment Amount Manipulation via Digital Wallet Add-to-Cart Quantity

Medium 5.3 CWE-1284Fixed in 5.4.4
ID
WPSEC-2026-4504
Plugin
WooCommerce Square (woocommerce-square)
Affected
from 2.3.0 before 5.4.4
Remediation
Update to 5.4.4 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness
CWE-1284
Usage
Plugin Medium · Affected versions Low among sites WPSec scans, 2026-12-03
Attack surface
WooCommerce Square on WPSec AttackSurface
Fix released
Published

Description

The WooCommerce Square plugin for WordPress is vulnerable to payment amount manipulation via the Digital Wallet (express checkout) add-to-cart AJAX handler on the product page in all versions up to, and including, 5.4.3, due to insufficient validation of the quantity supplied in the request. The quantity was passed to the cart without being normalized to a whole stock amount, and nothing ensured that the line total of a chargeable product did not round to zero. This makes it possible for unauthenticated attackers to add a fractional quantity of a product to the cart and check out through Square paying only a fraction of its price, while the order line item is recorded with a rounded-down quantity.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0