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.
{
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*"
],
"extracted_events": [
{
"introduced": "2.6.0"
},
{
"fixed": "2.6.2"
},
{
"introduced": "2.8.0"
},
{
"fixed": "2.8.1"
},
{
"introduced": "2.9.0"
},
{
"fixed": "2.9.1"
},
{
"introduced": "3.0.0"
},
{
"fixed": "3.0.1"
},
{
"introduced": "3.2.0"
},
{
"fixed": "3.2.1"
},
{
"introduced": "3.3.0"
},
{
"fixed": "3.3.1"
},
{
"introduced": "3.5.0"
},
{
"fixed": "3.5.1"
},
{
"introduced": "3.7.0"
},
{
"fixed": "3.7.2"
},
{
"introduced": "3.9.0"
},
{
"fixed": "3.9.1"
},
{
"introduced": "4.1.0"
},
{
"fixed": "4.1.1"
},
{
"introduced": "4.2.0"
},
{
"fixed": "4.2.1"
},
{
"introduced": "4.3.0"
},
{
"fixed": "4.3.1"
},
{
"introduced": "4.5.0"
},
{
"fixed": "4.5.3"
},
{
"introduced": "4.6.0"
},
{
"fixed": "4.6.1"
},
{
"introduced": "4.8.0"
},
{
"fixed": "4.8.1"
},
{
"introduced": "5.0.0"
},
{
"fixed": "5.0.1"
},
{
"introduced": "5.2.0"
},
{
"fixed": "5.2.1"
},
{
"introduced": "5.4.0"
},
{
"fixed": "5.4.1"
}
],
"source": "CPE_RANGE",
"vendor_product": "automattic:woocommerce_blocks"
}
]
}{
"cpe": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
"extracted_events": [
{
"introduced": "2.5.0"
},
{
"fixed": "2.5.16"
},
{
"introduced": "2.7.0"
},
{
"fixed": "2.7.2"
},
{
"introduced": "3.1.0"
},
{
"fixed": "3.1.1"
},
{
"introduced": "3.4.0"
},
{
"fixed": "3.4.1"
},
{
"introduced": "3.6.0"
},
{
"fixed": "3.6.1"
},
{
"introduced": "3.8.0"
},
{
"fixed": "3.8.1"
},
{
"introduced": "4.0.0"
},
{
"fixed": "4.0.1"
},
{
"introduced": "4.4.0"
},
{
"fixed": "4.4.3"
},
{
"introduced": "4.7.0"
},
{
"fixed": "4.7.1"
},
{
"introduced": "4.9.0"
},
{
"fixed": "4.9.2"
},
{
"introduced": "5.1.0"
},
{
"fixed": "5.1.1"
},
{
"introduced": "5.3.0"
},
{
"fixed": "5.3.2"
},
{
"introduced": "5.5.0"
},
{
"fixed": "5.5.1"
}
],
"source": "CPE_RANGE"
}