What’s Vulnerable › Vulnerabilities

CVE-2026-29174: Craft Commerce has a SQL Injection in Commerce Inventory Table Sorting

Description

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.

Affected products

How to fix

Upgrade to a fixed version: craftcms commerce 5.5.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-29174 or the next vulnerability affects your stack