High severityNVD Advisory· Published Mar 10, 2026· Updated Mar 11, 2026
Craft Commerce has a SQL Injection in Commerce Purchasables Table Sorting
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
2Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-j3x5-mghf-xvfwghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-29172ghsaADVISORY
- github.com/craftcms/commerce/commit/b231b920b73db023e81e5b261b894d73e865c276ghsax_refsource_MISCWEB
- github.com/craftcms/commerce/commit/e4e0f4107cd895d29290523637f077fe280407b1ghsax_refsource_MISCWEB
- github.com/craftcms/commerce/security/advisories/GHSA-j3x5-mghf-xvfwghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.