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 package | Versions | Reported by |
|---|---|---|
| craftcms commerce | >= 4.0.0 < 4.10.2, >= 5.0.0 < 5.5.3 | CVE List |
| craftcms/commerce (Packagist) | from 5.0.0 before 5.5.3 | GitHub Advisory Database |
| craftcms craft_commerce | from 5.0.0 before 5.5.3 | NVD |
All scores
| GitHub_M | 4.8medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N |
| NVD | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N |
Classification
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
- Log in to the control panel
- Navigate to Commerce → Inventory Locations
- Create or edit a location
- Set Name to the following payload:
<img src=x onerror="alert('XSS')"> - Save the location
- Navigate to Commerce → Products and click "New Product" and click "New product variant"
- The Inventory Location table loads, rendering the Inventory Location Name
- 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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-29176 changed 2026-03-10 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wj89-2385-gpx3 changed 2026-03-13 | CC-BY-4.0 |
| NVD | CVE-2026-29176 changed 2026-06-17 | Public domain |