Craft Commerce has a SQL Injection in Commerce Purchasables Table Sorting
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-89.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Craft CMS | commerce | >= 4.0.0 < 4.10.2; >= 5.0.0 < 5.5.3 | — | No fix listed | CNA |
| — | craftcms/commerce (Packagist) | 4.0.0 to before 4.10.2 | 4.10.2 | Patch available | GHSA-j3x5-mghf-xvfw |
| — | craftcms/commerce (Packagist) | 5.0.0 to before 5.5.3 | 5.5.3 | Patch available | GHSA-j3x5-mghf-xvfw |
- commerce VendorCraft CMS Affected >= 4.0.0 < 4.10.2; >= 5.0.0 < 5.5.3 Fixed in — No fix listed CNA
- craftcms/commerce (Packagist) Vendor— Affected 4.0.0 to before 4.10.2 Fixed in 4.10.2 Patch available GHSA-j3x5-mghf-xvfw
- craftcms/commerce (Packagist) Vendor— Affected 5.0.0 to before 5.5.3 Fixed in 5.5.3 Patch available GHSA-j3x5-mghf-xvfw
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:craftcms:craft_commerce:*:*:*:*:*:craft_cms:*:* | 4.0.0 to before 4.10.2; 5.0.0 to before 5.5.3 | Vulnerable | Craft CMS |
- cpe:2.3:a:craftcms:craft_commerce:*:*:*:*:*:craft_cms:*:* Versions 4.0.0 to before 4.10.2; 5.0.0 to before 5.5.3 Vulnerable ·Craft CMS
Remediation
- Fix · GHSA-j3x5-mghf-xvfw craftcms/commerce (Packagist) Fixed in 4.10.2 Advisory →
- Fix · GHSA-j3x5-mghf-xvfw craftcms/commerce (Packagist) Fixed in 5.5.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-29172
- 2026-10-03 Alias added: GHSA-j3x5-mghf-xvfw
References
Patch 2
More Craft CMS Craft Commerce vulnerabilities
- TI-2026-23292 Multiple Stored XSS in Commerce Inventory Page Leading to Session Hijacking CVSS 4.0HIGH 8.6
- TI-2026-20631 Craft Commerce has Stored XSS in Shipping Zone (Name & Description) Fields Leading to Potential Privilege Escalation CVSS 4.0MEDIUM 6.1
- TI-2026-20601 Craft Commerce has Stored XSS in Inventory Location Address Leading to Potential Privilege Escalation CVSS 4.0MEDIUM 6.1
- TI-2026-20600 Craft Commerce has Stored XSS in Tax Zones (Name & Description) Leading to Potential Privilege Escalation CVSS 4.0MEDIUM 6.1
- TI-2026-20599 Craft Commerce has Stored XSS in Tax Categories (Name & Description) Fields Leading to Potential Privilege Escalation CVSS 4.0MEDIUM 6.1
- TI-2026-20598 Craft CMS has Stored XSS in Tax Rates Name Leading to Potential Privilege Escalation CVSS 4.0MEDIUM 6.1
Sources
- CVE-2026-29172 · CVE Program
- CVE-2026-29172 · NVD
- FIRST EPSS
- GHSA-j3x5-mghf-xvfw · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences