{"api_version":"1","generated_at":"2026-07-24T03:28:01+00:00","cve":"CVE-2021-32789","urls":{"html":"https://cve.report/CVE-2021-32789","api":"https://cve.report/api/cve/CVE-2021-32789.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-32789","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-32789"},"summary":{"title":"CVE-2021-32789","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2021-07-26 16:15:00","updated_at":"2021-08-05 18:25:00"},"problem_types":["CWE-89"],"metrics":[],"references":[{"url":"https://hackerone.com/reports/1260787","name":"https://hackerone.com/reports/1260787","refsource":"MISC","tags":[],"title":"HackerOne","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/woocommerce/woocommerce-gutenberg-products-block/security/advisories/GHSA-6hq4-w6wv-8wrp","name":"https://github.com/woocommerce/woocommerce-gutenberg-products-block/security/advisories/GHSA-6hq4-w6wv-8wrp","refsource":"CONFIRM","tags":[],"title":"Arbitrary SQL (SQL injection) possible via the Store API component. · Advisory · woocommerce/woocommerce-gutenberg-products-block · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://wooengineering.wordpress.com/2021/07/14/incident-report-sql-injection-via-store-api/","name":"https://wooengineering.wordpress.com/2021/07/14/incident-report-sql-injection-via-store-api/","refsource":"MISC","tags":[],"title":"Private P2","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/woocommerce/woocommerce-gutenberg-products-block-ghsa-6hq4-w6wv-8wrp/pull/1","name":"https://github.com/woocommerce/woocommerce-gutenberg-products-block-ghsa-6hq4-w6wv-8wrp/pull/1","refsource":"MISC","tags":[],"title":"","mime":"text/plain","httpstatus":"404","archivestatus":"404"},{"url":"https://woocommerce.com/posts/critical-vulnerability-detected-july-2021/","name":"https://woocommerce.com/posts/critical-vulnerability-detected-july-2021/","refsource":"MISC","tags":[],"title":"Critical Vulnerabilty Detected in WooCommerce - What You Need to Know","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-32789","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32789","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"32789","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"automattic","cpe5":"woocommerce_blocks","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"wordpress","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-32789","STATE":"PUBLIC","TITLE":"Arbitrary SQL (SQL injection) possible via the Store API component."},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"woocommerce-gutenberg-products-block","version":{"version_data":[{"version_value":"> 2.5.0, < 2.5.16"}]}}]},"vendor_name":"woocommerce"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')"}]}]},"references":{"reference_data":[{"name":"https://github.com/woocommerce/woocommerce-gutenberg-products-block/security/advisories/GHSA-6hq4-w6wv-8wrp","refsource":"CONFIRM","url":"https://github.com/woocommerce/woocommerce-gutenberg-products-block/security/advisories/GHSA-6hq4-w6wv-8wrp"},{"name":"https://github.com/woocommerce/woocommerce-gutenberg-products-block-ghsa-6hq4-w6wv-8wrp/pull/1","refsource":"MISC","url":"https://github.com/woocommerce/woocommerce-gutenberg-products-block-ghsa-6hq4-w6wv-8wrp/pull/1"},{"name":"https://hackerone.com/reports/1260787","refsource":"MISC","url":"https://hackerone.com/reports/1260787"},{"name":"https://woocommerce.com/posts/critical-vulnerability-detected-july-2021/","refsource":"MISC","url":"https://woocommerce.com/posts/critical-vulnerability-detected-july-2021/"},{"name":"https://wooengineering.wordpress.com/2021/07/14/incident-report-sql-injection-via-store-api/","refsource":"MISC","url":"https://wooengineering.wordpress.com/2021/07/14/incident-report-sql-injection-via-store-api/"}]},"source":{"advisory":"GHSA-6hq4-w6wv-8wrp","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2021-07-26 16:15:00","lastModifiedDate":"2021-08-05 18:25:00","problem_types":["CWE-89"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:N/A:N","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"2.5.0","versionEndExcluding":"2.5.16","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"5.5.0","versionEndExcluding":"5.5.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"5.4.0","versionEndExcluding":"5.4.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"5.0.0","versionEndExcluding":"5.0.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"5.1.0","versionEndExcluding":"5.1.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"5.2.0","versionEndExcluding":"5.2.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"5.3.0","versionEndExcluding":"5.3.2","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"4.2.0","versionEndExcluding":"4.2.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"4.3.0","versionEndExcluding":"4.3.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"4.4.0","versionEndExcluding":"4.4.3","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"4.5.0","versionEndExcluding":"4.5.3","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"4.6.0","versionEndExcluding":"4.6.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"4.7.0","versionEndExcluding":"4.7.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"4.8.0","versionEndExcluding":"4.8.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"4.9.0","versionEndExcluding":"4.9.2","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"2.6.0","versionEndExcluding":"2.6.2","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"2.7.0","versionEndExcluding":"2.7.2","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"2.8.0","versionEndExcluding":"2.8.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"2.9.0","versionEndExcluding":"2.9.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"3.0.0","versionEndExcluding":"3.0.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"3.1.0","versionEndExcluding":"3.1.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"3.2.0","versionEndExcluding":"3.2.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"3.3.0","versionEndExcluding":"3.3.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"3.4.0","versionEndExcluding":"3.4.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"3.5.0","versionEndExcluding":"3.5.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"3.6.0","versionEndExcluding":"3.6.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"3.7.0","versionEndExcluding":"3.7.2","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"3.8.0","versionEndExcluding":"3.8.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"3.9.0","versionEndExcluding":"3.9.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"4.0.0","versionEndExcluding":"4.0.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*","versionStartIncluding":"4.1.0","versionEndExcluding":"4.1.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"32789","Ordinal":"208177","Title":"CVE-2021-32789","CVE":"CVE-2021-32789","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"32789","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"32789","Ordinal":"2","NoteData":"2021-07-26","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"32789","Ordinal":"3","NoteData":"2021-07-26","Type":"Other","Title":"Modified"}]}}}