High severity8.8NVD Advisory· Published Mar 10, 2026· Updated Jun 17, 2026
CVE-2026-29172
CVE-2026-29172
Description
Craft Commerce is an ecommerce platform for Craft CMS. Prior to 4.10.2 and 5.5.3, Craft Commerce is vulnerable to SQL Injection in the purchasables table endpoint. The sort parameter is split by | and the first part (column name) is passed directly as an array key to orderBy() without whitelist validation. Yii2's query builder does NOT escape array keys, allowing an authenticated attacker to inject arbitrary SQL into the ORDER BY clause. This vulnerability is fixed in 4.10.2 and 5.5.3.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
craftcms/commercePackagist | >= 4.0.0, < 4.10.2 | 4.10.2 |
craftcms/commercePackagist | >= 5.0.0, < 5.5.3 | 5.5.3 |
Affected products
3- cpe:2.3:a:craftcms:craft_commerce:*:*:*:*:*:craft_cms:*:*Range: >=4.0.0,<4.10.2
Patches
Vulnerability mechanics
References
5- github.com/craftcms/commerce/commit/b231b920b73db023e81e5b261b894d73e865c276nvdPatchWEB
- github.com/craftcms/commerce/commit/e4e0f4107cd895d29290523637f077fe280407b1nvdPatchWEB
- github.com/craftcms/commerce/security/advisories/GHSA-j3x5-mghf-xvfwnvdExploitVendor AdvisoryWEB
- github.com/advisories/GHSA-j3x5-mghf-xvfwghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-29172ghsaADVISORY
News mentions
0No linked articles in our index yet.