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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 17.2%, higher than 98% of CVEs (2026-11-28)
- Published: 2021-07-26T15:30:12.000Z
- Modified: 2026-06-17T03:53:37.987Z
- Weaknesses: CWE-89
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- woocommerce woocommerce-gutenberg-products-block: > 2.5.0, < 2.5.16
- automattic woocommerce_blocks: from 2.5.0 before 2.5.16; from 2.6.0 before 2.6.2; from 2.7.0 before 2.7.2; from 2.8.0 before 2.8.1; from 2.9.0 before 2.9.1; from 3.0.0 before 3.0.1; from 3.1.0 before 3.1.1; from 3.2.0 before 3.2.1; from 3.3.0 before 3.3.1; from 3.4.0 before 3.4.1; from 3.5.0 before 3.5.1; from 3.6.0 before 3.6.1; and 19 more

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/woocommerce/woocommerce-gutenberg-products-block/security/advisories/GHSA-6hq4-w6wv-8wrp> (patch, third-party-advisory)
- <https://github.com/woocommerce/woocommerce-gutenberg-products-block-ghsa-6hq4-w6wv-8wrp/pull/1> (broken-link)
- <https://hackerone.com/reports/1260787> (permissions-required)
- <https://woocommerce.com/posts/critical-vulnerability-detected-july-2021/> (vendor-advisory)
- <https://wooengineering.wordpress.com/2021/07/14/incident-report-sql-injection-via-store-api/> (permissions-required)

## Sources

- CVE List: [CVE-2021-32789](https://www.cve.org/CVERecord?id=CVE-2021-32789), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-32789](https://nvd.nist.gov/vuln/detail/CVE-2021-32789), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-32789 · Whole record: https://cve.day/CVE-2021-32789.json · Rebuilt by cve.day 2026-11-25T22:58:02.868Z
