Advisory

GHSA-mqxf-2998-c6cp

Also known as: CVE-2026-29173

Summary

Craft Commerce is Vulnerable to Stored XSS while updating Order Status from Orders Table

Details

Summary
A stored XSS vulnerability exists when a user tries to update the Order Status from the Commerce Orders Table. The Order Status Name is rendered without proper escaping, allowing script execution to occur.

---
Proof of Concept
Required Permissions

  • Admin access (to edit/create Order Statuses)

Steps to Reproduce

  1. Log in with an admin account
  2. Navigate to Commerce → Settings → Order Statuses
  3. Create a new order status
  4. Set the Name field to:
<img src=x onerror="alert('Order Statuses XSS')">
  1. Save the order status
  2. Go to Commerce → Orders (make sure you placed any orders)
  3. From the left panel, select any Order Status (e.g., New)
  4. Select any order from the orders table → Click on the Gear Icon → then click "Update Order Status..."
  5. Notice the XSS execution

Severity

Low Basis: The source's own band: LOW

Dates

Published
2026-03-10 18:23 UTC
Modified
2026-03-13 04:22 UTC

Affected packages and fixes

craftcms/commerce

Packagist · All systems

Affected

  • introduced 4.0.0, fixed 4.10.2 (ecosystem)

Fixed versions

4.10.2

Fix

The export has no generic command for this ecosystem.

craftcms/commerce

Packagist · All systems

Affected

  • introduced 5.0.0, fixed 5.5.3 (ecosystem)

Fixed versions

5.5.3

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences