Advisory

GHSA-mj32-r678-7mvp

Also known as: CVE-2026-29177

Summary

Craft Commerce has stored XSS in Craft Commerce Order Details Slideout

Details

Summary
A Stored Cross-Site Scripting (XSS) vulnerability exists in the Craft Commerce Order details. Malicious JavaScript can be injected via the Shipping Method Name, Order Reference, or Site Name. When a user opens the order details slideout via a double-click on the order index page, the injected payload executes.

Reproduction Steps

  1. Navigate to Commerce -> Store Management -> Shipping Methods.
  2. Click "New Shipping Method".
  3. In the Name field, enter the following XSS payload: html <img src=x onerror=alert('XSS_Shipping')>
  4. Save the Shipping Method.
  5. Place a new order or edit an existing order.
  6. Set the order's Shipping Method to the one created in the previous steps.
  7. Navigate to the Orders index page (/admin/commerce/orders).
  8. Double-click the target order to open the details slideout.
  9. Result: The XSS payload executes.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2026-03-10 18:24 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