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.
General
Craft Commerce
html
<img src=x onerror="alert('XSS')">Sanitize the inventory location name field when rendering in the "Track Inventory" table.
| Score | Percentile |
|---|---|
| 0.01% | 0.83% |
| Base score | Version | Severity | Vector |
|---|---|---|---|
| 4.8 | 4.0 | — |
|
| Type | Value |
|---|---|
| GHSA | GHSA-wj89-2385-gpx3 ↗ |
| CVE | CVE-2026-29176 ↗ |
| CWE id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') |
Vulnerable version ranges and first patched releases as published by GitHub.
| Ecosystem | Package | Vulnerable range | First patched | Vulnerable functions |
|---|---|---|---|---|
| composer | craftcms/commerce | >= 5.0.0, <= 5.5.2 | 5.5.3 | — |