CVE-2026-29176
JSON

4.8medium

Craft Commerce has Stored XSS in Inventory Location Name

Severity
4.8medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.30% (higher than 15% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-wj89-2385-gpx3

Description

Craft Commerce is an ecommerce platform for Craft CMS. Prior to 5.5.3, A stored XSS vulnerability exists in the Commerce Settings - Inventory Locations page. The Name field is rendered without proper HTML escaping, allowing an attacker to execute arbitrary JavaScript. This XSS triggers when an administrator (or user with product editing permissions) creates or edits a variant product. This vulnerability is fixed in 5.5.3.

Affected

Product or packageVersionsReported by
craftcms commerce>= 4.0.0 < 4.10.2, >= 5.0.0 < 5.5.3CVE List
craftcms/commerce (Packagist)from 5.0.0 before 5.5.3GitHub Advisory Database
craftcms craft_commercefrom 5.0.0 before 5.5.3NVD

All scores

GitHub_M4.8medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
NVD4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

Craft Commerce is an ecommerce platform for Craft CMS. Prior to 5.5.3, A stored XSS vulnerability exists in the Commerce Settings - Inventory Locations page. The Name field is rendered without proper HTML escaping, allowing an attacker to execute arbitrary JavaScript. This XSS triggers when an administrator (or user with product editing permissions) creates or edits a variant product. This vulnerability is fixed in 5.5.3.

GitHub Advisory Database

Summary

A stored XSS vulnerability exists in the Commerce Settings - Inventory Locations page. The Name field is rendered without proper HTML escaping, allowing an attacker to execute arbitrary JavaScript.

This XSS triggers when an administrator (or user with product editing permissions) creates or edits a variant product.

Proof of Concept

Permissions Required
  • General

    • Access the control panel
    • Access Craft Commerce
  • Craft Commerce

    • Manage inventory locations
Steps to Reproduce
  1. Log in to the control panel
  2. Navigate to Commerce → Inventory Locations
  3. Create or edit a location
  4. Set Name to the following payload:
    <img src=x onerror="alert('XSS')">
    
  5. Save the location
  6. Navigate to Commerce → Products and click "New Product" and click "New product variant"
  7. The Inventory Location table loads, rendering the Inventory Location Name
  8. XSS executes

Impact

  • Potential Session Hijacking
  • Potential Database Exfiltration
  • Potential Account Takeover by forcing a password change on the victim’s account.
  • Potential Privilege escalation, or creating new admin users.

Mitigation

Sanitize the inventory location name field when rendering in the "Track Inventory" table.

NVD (es)

Craft Commerce es una plataforma de comercio electrónico para Craft CMS. Previo a la 5.5.3, existe una vulnerabilidad XSS almacenado en la página de Configuración de Comercio - Ubicaciones de Inventario. El campo Nombre se renderiza sin el escape HTML adecuado, permitiendo a un atacante ejecutar JavaScript arbitrario. Este XSS se activa cuando un administrador (o un usuario con permisos de edición de productos) crea o edita un producto variante. Esta vulnerabilidad está corregida en la versión 5.5.3.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-29176 changed 2026-03-10CVE Terms of Use
GitHub Advisory DatabaseGHSA-wj89-2385-gpx3 changed 2026-03-13CC-BY-4.0
NVDCVE-2026-29176 changed 2026-06-17Public domain