CVE-2021-32789: Arbitrary SQL (SQL injection) possible via the Store API component.

Published Jul 26, 2021
·
Updated

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?calculateattributecounts[][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 Software

29 affected components
Automattic Woocommerce Blocks Wordpress>=2.5.0<2.5.16
Automattic Woocommerce Blocks Wordpress>=2.6.0<2.6.2
Automattic Woocommerce Blocks Wordpress>=2.7.0<2.7.2
Automattic Woocommerce Blocks Wordpress>=2.8.0<2.8.1
Automattic Woocommerce Blocks Wordpress>=2.9.0<2.9.1
Automattic Woocommerce Blocks Wordpress>=3.0.0<3.0.1
Automattic Woocommerce Blocks Wordpress>=3.2.0<3.2.1
Automattic Woocommerce Blocks Wordpress>=3.4.0<3.4.1
Automattic Woocommerce Blocks Wordpress>=3.5.0<3.5.1
Automattic Woocommerce Blocks Wordpress>=3.6.0<3.6.1
Automattic Woocommerce Blocks Wordpress>=3.7.0<3.7.2
Automattic Woocommerce Blocks Wordpress>=3.8.0<3.8.1
Automattic Woocommerce Blocks Wordpress>=3.9.0<3.9.1
Automattic Woocommerce Blocks Wordpress>=4.0.0<4.0.1
Automattic Woocommerce Blocks Wordpress>=4.1.0<4.1.1
Automattic Woocommerce Blocks Wordpress>=4.2.0<4.2.1
Automattic Woocommerce Blocks Wordpress>=4.3.0<4.3.1
Automattic Woocommerce Blocks Wordpress>=4.4.0<4.4.3
Automattic Woocommerce Blocks Wordpress>=4.5.0<4.5.3
Automattic Woocommerce Blocks Wordpress>=4.6.0<4.6.1
Automattic Woocommerce Blocks Wordpress>=4.7.0<4.7.1
Automattic Woocommerce Blocks Wordpress>=4.8.0<4.8.1
Automattic Woocommerce Blocks Wordpress>=4.9.0<4.9.2
Automattic Woocommerce Blocks Wordpress>=5.0.0<5.0.1
Automattic Woocommerce Blocks Wordpress>=5.1.0<5.1.1
Automattic Woocommerce Blocks Wordpress>=5.2.0<5.2.1
Automattic Woocommerce Blocks Wordpress>=5.3.0<5.3.2
Automattic Woocommerce Blocks Wordpress>=5.4.0<5.4.1
Automattic Woocommerce Blocks Wordpress>=5.5.0<5.5.1

Event History

Jul 26, 2021
CVE Published
via MITRE·03:30 PM
Data Sourced
via MITRE·03:30 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-32789?

CVE-2021-32789 is an SQL injection vulnerability that impacts all WooCommerce sites running the WooCommerce Blocks feature plugin between version 2.5.0 and prior to version 2.5.16.

2

What is the severity of CVE-2021-32789?

The severity of CVE-2021-32789 is high, with a CVSS score of 7.5.

3

How does CVE-2021-32789 affect WooCommerce sites?

CVE-2021-32789 allows an attacker to execute malicious SQL queries through a carefully crafted URL, potentially leading to unauthorized access or data manipulation.

4

How can I fix CVE-2021-32789?

To fix CVE-2021-32789, WooCommerce sites running the affected versions need to update to version 2.5.16 or higher of the WooCommerce Blocks feature plugin.

5

Where can I find more information about CVE-2021-32789?

More information about CVE-2021-32789 can be found in the references provided: [GitHub Pull Request](https://github.com/woocommerce/woocommerce-gutenberg-products-block-ghsa-6hq4-w6wv-8wrp/pull/1), [GitHub Security Advisory](https://github.com/woocommerce/woocommerce-gutenberg-products-block/security/advisories/GHSA-6hq4-w6wv-8wrp), [HackerOne Report](https://hackerone.com/reports/1260787).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203