{"schemaVersion":3,"id":"CVE-2021-32789","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-07-26T15:30:12.000Z","modified":"2024-08-03T23:33:56.078Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"wordfence","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"wordfence","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.17227,"percentile":0.9708,"severity":"medium","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.17227},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.17227,"percentile":0.9708}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.17227,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.17227,"percentile":0.9708}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","description":"The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/89.html"}],"affected":[{"vendor":"automattic","product":"woocommerce_blocks","name":"woocommerce blocks","label":"woocommerce_blocks","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.5.0, < 2.5.16","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.6.0, < 2.6.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.7.0, < 2.7.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.8.0, < 2.8.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.9.0, < 2.9.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.0.0, < 3.0.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.1.0, < 3.1.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.2.0, < 3.2.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.3.0, < 3.3.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.4.0, < 3.4.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.5.0, < 3.5.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.6.0, < 3.6.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.7.0, < 3.7.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.8.0, < 3.8.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.9.0, < 3.9.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 4.0.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.1.0, < 4.1.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.2.0, < 4.2.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.3.0, < 4.3.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.4.0, < 4.4.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.5.0, < 4.5.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.6.0, < 4.6.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.7.0, < 4.7.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.8.0, < 4.8.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.9.0, < 4.9.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0, < 5.0.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.1.0, < 5.1.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.2.0, < 5.2.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.3.0, < 5.3.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.4.0, < 5.4.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.5.0, < 5.5.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.5.0, < 2.5.16 | ≥ 2.6.0, < 2.6.2 | ≥ 2.7.0, < 2.7.2 | ≥ 2.8.0, < 2.8.1 | ≥ 2.9.0, < 2.9.1 | ≥ 3.0.0, < 3.0.1 | ≥ 3.1.0, < 3.1.1 | ≥ 3.2.0, < 3.2.1 | ≥ 3.3.0, < 3.3.1 | ≥ 3.4.0, < 3.4.1 | ≥ 3.5.0, < 3.5.1 | ≥ 3.6.0, < 3.6.1 | ≥ 3.7.0, < 3.7.2 | ≥ 3.8.0, < 3.8.1 | ≥ 3.9.0, < 3.9.1 | ≥ 4.0.0, < 4.0.1 | ≥ 4.1.0, < 4.1.1 | ≥ 4.2.0, < 4.2.1 | ≥ 4.3.0, < 4.3.1 | ≥ 4.4.0, < 4.4.3 | ≥ 4.5.0, < 4.5.3 | ≥ 4.6.0, < 4.6.1 | ≥ 4.7.0, < 4.7.1 | ≥ 4.8.0, < 4.8.1 | ≥ 4.9.0, < 4.9.2 | ≥ 5.0.0, < 5.0.1 | ≥ 5.1.0, < 5.1.1 | ≥ 5.2.0, < 5.2.1 | ≥ 5.3.0, < 5.3.2 | ≥ 5.4.0, < 5.4.1 | ≥ 5.5.0, < 5.5.1","eol":null,"hubHref":"/vendor/automattic/woocommerce_blocks"},{"vendor":"woocommerce","product":"woocommerce-gutenberg-products-block","name":"woocommerce-gutenberg-products-block","label":"woocommerce-gutenberg-products-block","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"> 2.5.0, < 2.5.16","noFixRecorded":false,"fixedIn":null}],"versionsText":"> 2.5.0, < 2.5.16","eol":null,"hubHref":"/vendor/woocommerce/woocommerce-gutenberg-products-block"},{"vendor":"wordpress","product":"woo-gutenberg-products-block","name":"WooCommerce Blocks","label":"woo-gutenberg-products-block","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 2.5.15 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"≥ 2.6, ≤ 2.6.1 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"≥ 2.7, ≤ 2.7.1 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"2.8 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"2.9 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"3.0 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"3.1 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"3.2 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"3.3 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"3.4 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"3.5 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"3.6 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"≥ 3.7, ≤ 3.7.1 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"3.8 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"3.9 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"4.0 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"4.1 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"4.2 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"4.3 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"≥ 4.4, ≤ 4.4.2 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"≥ 4.5, ≤ 4.5.2 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"4.6 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"4.7 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"4.8 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"≥ 4.9, ≤ 4.9.1 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"5.0 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"5.1 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"5.2 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"≥ 5.3, ≤ 5.3.1 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"5.4 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"},{"text":"5.5 (fixed in 2.5.16)","noFixRecorded":false,"fixedIn":"2.5.16"}],"versionsText":"≤ 2.5.15 (fixed in 2.5.16) | ≥ 2.6, ≤ 2.6.1 (fixed in 2.5.16) | ≥ 2.7, ≤ 2.7.1 (fixed in 2.5.16) | 2.8 (fixed in 2.5.16) | 2.9 (fixed in 2.5.16) | 3.0 (fixed in 2.5.16) | 3.1 (fixed in 2.5.16) | 3.2 (fixed in 2.5.16) | 3.3 (fixed in 2.5.16) | 3.4 (fixed in 2.5.16) | 3.5 (fixed in 2.5.16) | 3.6 (fixed in 2.5.16) | ≥ 3.7, ≤ 3.7.1 (fixed in 2.5.16) | 3.8 (fixed in 2.5.16) | 3.9 (fixed in 2.5.16) | 4.0 (fixed in 2.5.16) | 4.1 (fixed in 2.5.16) | 4.2 (fixed in 2.5.16) | 4.3 (fixed in 2.5.16) | ≥ 4.4, ≤ 4.4.2 (fixed in 2.5.16) | ≥ 4.5, ≤ 4.5.2 (fixed in 2.5.16) | 4.6 (fixed in 2.5.16) | 4.7 (fixed in 2.5.16) | 4.8 (fixed in 2.5.16) | ≥ 4.9, ≤ 4.9.1 (fixed in 2.5.16) | 5.0 (fixed in 2.5.16) | 5.1 (fixed in 2.5.16) | 5.2 (fixed in 2.5.16) | ≥ 5.3, ≤ 5.3.1 (fixed in 2.5.16) | 5.4 (fixed in 2.5.16) | 5.5 (fixed in 2.5.16)","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/woocommerce/woocommerce-gutenberg-products-block/security/advisories/GHSA-6hq4-w6wv-8wrp","label":"github.com/woocommerce/woocommerce-gutenberg-products-block/security/advisories/GHSA-6hq4-w6wv-8wrp","hostname":"github.com","tags":["X Refsource CONFIRM","Patch","Third Party Advisory"]},{"url":"https://github.com/woocommerce/woocommerce-gutenberg-products-block-ghsa-6hq4-w6wv-8wrp/pull/1","label":"github.com/woocommerce/woocommerce-gutenberg-products-block-ghsa-6hq4-w6wv-8wrp/pull/1","hostname":"github.com","tags":["X Refsource MISC","Broken Link"]},{"url":"https://hackerone.com/reports/1260787","label":"hackerone.com/reports/1260787","hostname":"hackerone.com","tags":["X Refsource MISC","Permissions Required"]},{"url":"https://woocommerce.com/posts/critical-vulnerability-detected-july-2021/","label":"woocommerce.com/posts/critical-vulnerability-detected-july-2021/","hostname":"woocommerce.com","tags":["X Refsource MISC","Vendor Advisory"]},{"url":"https://wooengineering.wordpress.com/2021/07/14/incident-report-sql-injection-via-store-api/","label":"wooengineering.wordpress.com/2021/07/14/incident-report-sql-injection-via-store-api/","hostname":"wooengineering.wordpress.com","tags":["X Refsource MISC","Permissions Required"]},{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/a6d9d093-1e31-4d36-ac55-79cf82b231bb","label":"www.wordfence.com/threat-intel/vulnerabilities/id/a6d9d093-1e31-4d36-ac55-79cf82b231bb","hostname":"www.wordfence.com","tags":["Vendor Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-07-26T15:30:12.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T23:33:56.078Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":39,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T00:04:17.639Z","stale":false,"partial":false}}