Craft Commerce has a SQL Injection in Commerce Inventory 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 5.5.3, Craft Commerce is vulnerable to SQL Injection in the inventory levels table data endpoint. The sort[0][direction] and sort[0][sortField] parameters are concatenated directly into an addOrderBy() clause without any validation or sanitization. An authenticated attacker with access to the Commerce Inventory section can inject arbitrary SQL queries, potentially leading to a full database compromise. This vulnerability is fixed in 5.5.3.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- 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 | >= 5.0.0 < 5.5.3 | — | No fix listed | CNA |
| — | craftcms/commerce (Packagist) | 5.0.0 to before 5.5.3 | 5.5.3 | Patch available | GHSA-pmgj-gmm4-jh6j |
- commerce VendorCraft CMS Affected >= 5.0.0 < 5.5.3 Fixed in — No fix listed CNA
- craftcms/commerce (Packagist) Vendor— Affected 5.0.0 to before 5.5.3 Fixed in 5.5.3 Patch available GHSA-pmgj-gmm4-jh6j
Remediation
- Fix · GHSA-pmgj-gmm4-jh6j craftcms/commerce (Packagist) Fixed in 5.5.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-29174
- 2026-10-03 Alias added: GHSA-pmgj-gmm4-jh6j
References
Patch 2
More Craft CMS Craft Commerce vulnerabilities
- TI-2026-23289 Craft Commerce has a SQL Injection in Commerce Purchasables Table Sorting CVSS 4.0HIGH 8.7
- 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
Sources
- CVE-2026-29174 · CVE Program
- CVE-2026-29174 · NVD
- FIRST EPSS
- GHSA-pmgj-gmm4-jh6j · 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