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
<img src=x onerror="alert('XSS')">
Sanitize the inventory location name field when rendering in the "Track Inventory" table.
{
"severity": "MODERATE",
"github_reviewed": true,
"cwe_ids": [
"CWE-79"
],
"github_reviewed_at": "2026-03-10T18:23:58Z",
"nvd_published_at": "2026-03-10T20:16:38Z"
}