CVE-2021-32789: Automattic Woocommerce Blocks

High severity, CVSS 7.5. EPSS: 17.2% chance of exploitation in the next 30 days.

woocommerce-gutenberg-products-block is a feature plugin for WooCommerce Gutenberg Blocks. An SQL injection vulnerability impacts all WooCommerce sites running the WooCommerce Blocks feature plugin between version 2.5.0 and prior to version 2.5.16. Via a carefully crafted URL, an exploit can be executed against the `wc/store/products/collection-data?calculate_attribute_counts[][taxonomy]` endpoint that allows the execution of a read only sql query. There are patches for many versions of this package, starting with version 2.5.16. There are no known workarounds aside from upgrading.

Affected products

  • Automattic Woocommerce Blocks: from 2.5.0, before 2.5.16 (fixed in 2.5.16); from 2.6.0, before 2.6.2 (fixed in 2.6.2); from 2.7.0, before 2.7.2 (fixed in 2.7.2); from 2.8.0, before 2.8.1 (fixed in 2.8.1); from 2.9.0, before 2.9.1 (fixed in 2.9.1); from 3.0.0, before 3.0.1 (fixed in 3.0.1); …

Published 2021-07-26. Last modified 2026-06-17.