{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-32789 exists.","fix":"No fix has been published for CVE-2021-32789 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-32789 is a high-severity SQL injection vulnerability in woocommerce-gutenberg-products-block, published on 26 Jul 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-32789 and fix it if it is affected.\n\nWhat it is: CVE-2021-32789 is a high-severity SQL injection vulnerability in woocommerce-gutenberg-products-block, published on 26 Jul 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-32789 exists.\n\nAffected product: woocommerce-gutenberg-products-block. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-32789/ (Markdown: https://insights.sbomify.com/CVE-2021-32789/index.md)","id":"CVE-2021-32789","markdown":"https://insights.sbomify.com/CVE-2021-32789/index.md","name":"CVE-2021-32789","record":{"aliases":["GHSA-6hq4-w6wv-8wrp"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"WooCommerce Blocks plugin","requires_auth":"none","summary":"Attackers can execute read-only SQL queries via a crafted URL in the WooCommerce Blocks plugin, exposing sensitive data.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"woocommerce_blocks","vendor":"automattic"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2023-02-17","github_poc":2,"max_poc_stars":1,"metasploit":0,"nuclei":1,"refs":[{"date":"2023-02-17T19:51:24Z","kind":"github_poc","ref":"https://github.com/and0x00/CVE-2021-32789","stars":1,"title":"💣 Wordpress WooCommerce users dump exploit."},{"date":"2024-02-08T19:02:17Z","kind":"github_poc","ref":"https://github.com/DonVorrin/CVE-2021-32789","stars":0,"title":"Authenticated Blind SQL Injection. Wordpress woocommerce plugin versions \u003e= 2.5.0"},{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-32789.yaml","stars":null,"title":"WooCommerce Blocks 2.5 to 5.5 - Unauthenticated SQL Injection"}],"tier":"weaponised"},"has_fix":false,"headline":"Arbitrary SQL (SQL injection) possible via the Store API component.","id":"CVE-2021-32789","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"sql_injection","year":"2021"},"n_packages":0,"n_references":5,"next":{"headline":"Blind SQL Injection possible via Authenticated Web-hook Search API Endpoint","id":"CVE-2021-32790"},"packages":[],"prev":{"headline":"Post creator of a whisper post can be revealed to non-staff users in Discourse","id":"CVE-2021-32788"},"products":["woocommerce-gutenberg-products-block"],"published":"2021-07-26","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["woocommerce"]},"summary":"Attackers can execute read-only SQL queries via a crafted URL in the WooCommerce Blocks plugin, exposing sensitive data.","url":"https://insights.sbomify.com/CVE-2021-32789/"}