Security fix for Square for WooCommerce: update to 5.5.4 or 5.4.4

If you run, maintain, host, or support a store that uses Square for WooCommerce, update the extension to 5.5.4 now. If you need to stay on the 5.4.x branch for any reason, update to 5.4.4 instead.

These releases fix two critical issues that could let a shopper complete an order while paying less than the order total, or nothing at all., which were discovered via Automattic’s proactive internal security scanning.

We put the fixes in both a 5.5.x and a 5.4.x release so your store can stay secure without taking on a larger upgrade during the busy end-of-year sales period. No settings changes are required, and saved cards, subscriptions, and your Square connection are not affected by the update.

Orders marked paid for less than the order total

Both issues affect how the Square for WooCommerce extension checks the amount a shopper is charged at checkout:

  • Digital wallet checkout (Apple Pay and Google Pay): A shopper could cause their order to have a total amount of 0, allowing them to place the order without paying.  This affects every version of WooCommerce Square before 5.5.4 and 5.4.4, for stores with digital wallets turned on.
  • Card and Cash App Pay checkout: A bad actor could cause Square to charge a small amount for an order and mark the order as paid. This affects Cash App Pay in every version before 5.5.4 and 5.4.4, and the Square card gateway in versions prior to 5.3.0, and from 5.3.2 onward (5.3.0 and 5.3.1 are not affected).

In both cases, downloadable products in the order could be delivered immediately, because WooCommerce would treat such orders as paid and deliverable.

After you update, Square for WooCommerce:

  • Refuses wallet orders with an invalid or non-whole item quantity, the same way WooCommerce does on its own add-to-cart buttons.
  • Fails the checkout, without sending a payment request to Square, if an order total is too large to convert into an exact amount.

The update does not change past orders. If your store sells products through Square, we recommend you review recent orders, especially orders for downloadable products, for:

  • Orders marked as Processing or Completed with a $0.00 total, no transaction ID, and products in the order that normally cost more than $0.00.
  • Line items with lower-than-expected prices.
  • Orders with an unusually large total or quantity.
  • Orders where the payment shown in your Square Dashboard is lower than the WooCommerce order total.

If you find an affected order, you can cancel it, revoke download access under the order’s Downloadable product permissions, and follow your usual fraud process.

Check that your store has the update

Even if automatic updates are enabled, check your store:

  1. Go to Plugins → Installed Plugins and find Square for WooCommerce.
  2. Check the version number.

If 5.5.4 or later is offered:

  • Select Update Now.

If you need to stay on 5.4.x:

  • Open the Advanced view of the Square for WooCommerce page on WordPress.org, scroll to Previous Versions, and download 5.4.4.
    • WordPress.org shows a standard warning that previous versions may not be secure or stable. This does not apply to 5.4.4, which contains the fixes.
  • Go to Plugins → Add New Plugin → Upload Plugin, choose the zip file, and select Install Now.
  • Choose Replace current with uploaded.
  • Go back to Plugins → Installed Plugins and check that the version shows 5.4.4.

Automatic updates and the Update Now button only offer the latest stable version, so stores on 5.4.x do not get 5.4.4 automatically. You will need to install that version manually.

Running a version older than 5.4?

We have not released fixes for 5.3.x or earlier. If your store runs one of those versions, update to 5.5.4. If you have held back on upgrading because of customizations or other extensions, test 5.5.4 on a staging site first, and then update your live store as soon as you can.

Developers and agencies: Please check each site

If you manage several stores, check every site that runs Square for WooCommerce, including staging and development sites. Keep a record of the version each site is on. Automatic updates can be off, delayed, or managed by your host, so do not assume a site has updated.

For any site that has been running an affected version, follow the order review steps above, or share them with the store owner.

Get help with the update

If the update fails or you’re not sure which version to use, contact WooCommerce Support. Be sure to include the Square for WooCommerce version you have installed and any error messages you see.


Leave a Reply

Your email address will not be published. Required fields are marked *