CVE-2021-32789
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.
CVSS
- Versión: 3.1
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Puntuación base: 7.5
Probabilidad de explotación (EPSS)
- Probabilidad de explotación en los próximos 30 días: 17%
- Percentil entre todas las CVEs puntuadas: 97
- Fecha de la puntuación: 6/10/2026
EPSS (Exploit Prediction Scoring System, de FIRST) estima la probabilidad de que una vulnerabilidad sea explotada en 30 días. Complementa a CVSS (impacto) y a CISA KEV (explotación confirmada).
Tecnologías afectadas (1)
CWE
- CWE-89
- CWE-89
Referencias
- https://github.com/woocommerce/woocommerce-gutenberg-products-block-ghsa-6hq4-w6wv-8wrp/pull/1
- https://github.com/woocommerce/woocommerce-gutenberg-products-block/security/advisories/GHSA-6hq4-w6wv-8wrp
- https://hackerone.com/reports/1260787
- https://woocommerce.com/posts/critical-vulnerability-detected-july-2021/
- https://wooengineering.wordpress.com/2021/07/14/incident-report-sql-injection-via-store-api/
- https://github.com/woocommerce/woocommerce-gutenberg-products-block-ghsa-6hq4-w6wv-8wrp/pull/1
- https://github.com/woocommerce/woocommerce-gutenberg-products-block/security/advisories/GHSA-6hq4-w6wv-8wrp
- https://hackerone.com/reports/1260787
- https://woocommerce.com/posts/critical-vulnerability-detected-july-2021/
- https://wooengineering.wordpress.com/2021/07/14/incident-report-sql-injection-via-store-api/
JSON original (NVD)
Mostrar
{
"id": "CVE-2021-32789",
"cveTags": [],
"metrics": {
"cvssMetricV2": [
{
"type": "Primary",
"source": "nvd@nist.gov",
"cvssData": {
"version": "2.0",
"baseScore": 5,
"accessVector": "NETWORK",
"vectorString": "AV:N/AC:L/Au:N/C:P/I:N/A:N",
"authentication": "NONE",
"integrityImpact": "NONE",
"accessComplexity": "LOW",
"availabilityImpact": "NONE",
"confidentialityImpact": "PARTIAL"
},
"acInsufInfo": false,
"impactScore": 2.9,
"baseSeverity": "MEDIUM",
"obtainAllPrivilege": false,
"exploitabilityScore": 10,
"obtainUserPrivilege": false,
"obtainOtherPrivilege": false,
"userInteractionRequired": false
}
],
"cvssMetricV31": [
{
"type": "Secondary",
"source": "security-advisories@github.com",
"cvssData": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 7.5,
"attackVector": "NETWORK",
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
"integrityImpact": "NONE",
"userInteraction": "NONE",
"attackComplexity": "LOW",
"availabilityImpact": "NONE",
"privilegesRequired": "NONE",
"confidentialityImpact": "HIGH"
},
"impactScore": 3.6,
"exploitabilityScore": 3.9
},
{
"type": "Primary",
"source": "nvd@nist.gov",
"cvssData": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 7.5,
"attackVector": "NETWORK",
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
"integrityImpact": "NONE",
"userInteraction": "NONE",
"attackComplexity": "LOW",
"availabilityImpact": "NONE",
"privilegesRequired": "NONE",
"confidentialityImpact": "HIGH"
},
"impactScore": 3.6,
"exploitabilityScore": 3.9
}
]
},
"affected": [
{
"source": "security-advisories@github.com",
"affectedData": [
{
"vendor": "woocommerce",
"product": "woocommerce-gutenberg-products-block",
"versions": [
{
"status": "affected",
"version": "> 2.5.0, < 2.5.16"
}
]
}
]
}
],
"published": "2021-07-26T16:15:07.743",
"references": [
{
"url": "https://github.com/woocommerce/woocommerce-gutenberg-products-block-ghsa-6hq4-w6wv-8wrp/pull/1",
"tags": [
"Broken Link"
],
"source": "security-advisories@github.com"
},
{
"url": "https://github.com/woocommerce/woocommerce-gutenberg-products-block/security/advisories/GHSA-6hq4-w6wv-8wrp",
"tags": [
"Patch",
"Third Party Advisory"
],
"source": "security-advisories@github.com"
},
{
"url": "https://hackerone.com/reports/1260787",
"tags": [
"Permissions Required"
],
"source": "security-advisories@github.com"
},
{
"url": "https://woocommerce.com/posts/critical-vulnerability-detected-july-2021/",
"tags": [
"Vendor Advisory"
],
"source": "security-advisories@github.com"
},
{
"url": "https://wooengineering.wordpress.com/2021/07/14/incident-report-sql-injection-via-store-api/",
"tags": [
"Permissions Required"
],
"source": "security-advisories@github.com"
},
{
"url": "https://github.com/woocommerce/woocommerce-gutenberg-products-block-ghsa-6hq4-w6wv-8wrp/pull/1",
"tags": [
"Broken Link"
],
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "https://github.com/woocommerce/woocommerce-gutenberg-products-block/security/advisories/GHSA-6hq4-w6wv-8wrp",
"tags": [
"Patch",
"Third Party Advisory"
],
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "https://hackerone.com/reports/1260787",
"tags": [
"Permissions Required"
],
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "https://woocommerce.com/posts/critical-vulnerability-detected-july-2021/",
"tags": [
"Vendor Advisory"
],
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "https://wooengineering.wordpress.com/2021/07/14/incident-report-sql-injection-via-store-api/",
"tags": [
"Permissions Required"
],
"source": "af854a3a-2127-422b-91ae-364da2661108"
}
],
"vulnStatus": "Modified",
"weaknesses": [
{
"type": "Secondary",
"source": "security-advisories@github.com",
"description": [
{
"lang": "en",
"value": "CWE-89"
}
]
},
{
"type": "Primary",
"source": "nvd@nist.gov",
"description": [
{
"lang": "en",
"value": "CWE-89"
}
]
}
],
"descriptions": [
{
"lang": "en",
"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."
},
{
"lang": "es",
"value": "woocommerce-gutenberg-products-block es un plugin de características para WooCommerce Gutenberg Blocks. Una vulnerabilidad de inyección SQL afecta a todos los sitios de WooCommerce que ejecutan el plugin de características WooCommerce Blocks entre la versión 2.5.0 y anterior a versión 2.5.16. Por medio de una URL cuidadosamente diseñada, se puede ejecutar una explotación contra el endpoint \"wc/store/products/collection-data?calculate_attribute_counts[][taxonomy]\" que permite la ejecución de una consulta sql de sólo lectura. Se presentan parches para muchas versiones de este paquete, a partir de la versión 2.5.16. No se conocen soluciones aparte de la actualización"
}
],
"lastModified": "2026-06-17T03:53:37.987",
"configurations": [
{
"nodes": [
{
"negate": false,
"cpeMatch": [
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "68359551-9F3D-453A-85D8-27D62624B78A",
"versionEndExcluding": "2.5.16",
"versionStartIncluding": "2.5.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "6429FAC5-E405-4A34-84C1-1E076E5C9012",
"versionEndExcluding": "2.6.2",
"versionStartIncluding": "2.6.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "F3C13B7E-1674-466E-B6A2-1D573CCF3F26",
"versionEndExcluding": "2.7.2",
"versionStartIncluding": "2.7.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "27431D15-B0D2-4570-A78A-C2C03514CCF1",
"versionEndExcluding": "2.8.1",
"versionStartIncluding": "2.8.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "73F73B94-9F44-4D21-B67A-D6E096007CBB",
"versionEndExcluding": "2.9.1",
"versionStartIncluding": "2.9.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "0267B1CF-B66F-4D59-8DBA-375F5AA15691",
"versionEndExcluding": "3.0.1",
"versionStartIncluding": "3.0.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "8605AB2F-D187-47B9-8931-C6B0882FF5E5",
"versionEndExcluding": "3.1.1",
"versionStartIncluding": "3.1.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "585C23D8-7004-445D-A549-46A034179F4A",
"versionEndExcluding": "3.2.1",
"versionStartIncluding": "3.2.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "69A76B90-5D0B-425B-A296-EA717B885822",
"versionEndExcluding": "3.3.1",
"versionStartIncluding": "3.3.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "F4454F2B-647D-48C9-81CC-6DBBA3C7FC1D",
"versionEndExcluding": "3.4.1",
"versionStartIncluding": "3.4.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "595849F3-68C8-4437-B0EF-4DD3F16ACA9E",
"versionEndExcluding": "3.5.1",
"versionStartIncluding": "3.5.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "1B3BC202-D7ED-4FF5-BE00-CF64C93B65EC",
"versionEndExcluding": "3.6.1",
"versionStartIncluding": "3.6.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "3D0C8A18-D248-422A-9683-090883CF191C",
"versionEndExcluding": "3.7.2",
"versionStartIncluding": "3.7.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "D076177C-5CA6-4228-AEA8-735A3790FFE4",
"versionEndExcluding": "3.8.1",
"versionStartIncluding": "3.8.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "7AC3830C-1DF8-4AE4-A1DE-29DFDF054093",
"versionEndExcluding": "3.9.1",
"versionStartIncluding": "3.9.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "DD5E7AB0-A785-40DB-A65E-C79DFEB38A92",
"versionEndExcluding": "4.0.1",
"versionStartIncluding": "4.0.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "BD36188E-5549-4701-A589-13F5297E1ADC",
"versionEndExcluding": "4.1.1",
"versionStartIncluding": "4.1.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "A5A2B674-3CAC-4C03-889F-895574D37A90",
"versionEndExcluding": "4.2.1",
"versionStartIncluding": "4.2.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "60D0CD80-66CE-4BAA-A78F-81FB0ED2F921",
"versionEndExcluding": "4.3.1",
"versionStartIncluding": "4.3.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "E31E8388-E4D8-47EE-AFB4-DC34E9331C9C",
"versionEndExcluding": "4.4.3",
"versionStartIncluding": "4.4.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "C7250E33-3DD5-4ED2-A586-21DE27A8DE5B",
"versionEndExcluding": "4.5.3",
"versionStartIncluding": "4.5.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "1E77457A-191D-4F05-95EF-182855BBCFD1",
"versionEndExcluding": "4.6.1",
"versionStartIncluding": "4.6.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "E45A55FA-A6EC-4FCF-BD5A-D6086D3B57E8",
"versionEndExcluding": "4.7.1",
"versionStartIncluding": "4.7.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "D8778822-40F1-484B-9CE7-33A9BE227BF8",
"versionEndExcluding": "4.8.1",
"versionStartIncluding": "4.8.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "FDE0A5E9-A610-41E2-8A33-5625B34BD917",
"versionEndExcluding": "4.9.2",
"versionStartIncluding": "4.9.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "51AC9F1A-1EBD-45EF-85C5-DCAC4B3970D1",
"versionEndExcluding": "5.0.1",
"versionStartIncluding": "5.0.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "4CEA3134-B740-4433-A4B5-AFFA9C485D37",
"versionEndExcluding": "5.1.1",
"versionStartIncluding": "5.1.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "8847A37A-B278-4FC4-80CA-D60C278251D3",
"versionEndExcluding": "5.2.1",
"versionStartIncluding": "5.2.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "FB063F8A-5680-4F05-BE4E-1638DC8C5517",
"versionEndExcluding": "5.3.2",
"versionStartIncluding": "5.3.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "061BDEA7-FD35-4625-BA99-9826687384DA",
"versionEndExcluding": "5.4.1",
"versionStartIncluding": "5.4.0"
},
{
"criteria": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"vulnerable": true,
"matchCriteriaId": "AE035F6E-9918-4884-A5D9-9CC2309EC685",
"versionEndExcluding": "5.5.1",
"versionStartIncluding": "5.5.0"
}
],
"operator": "OR"
}
]
}
],
"sourceIdentifier": "security-advisories@github.com"
}