Moderate severityNVD Advisory· Published Mar 10, 2026· Updated Mar 10, 2026
Craft Commerce has Stored XSS in Inventory Location Name
CVE-2026-29176
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 packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
craftcms/commercePackagist | >= 5.0.0, < 5.5.3 | 5.5.3 |
Affected products
1Patches
11 file changed · +1 −1
src/fieldlayoutelements/PurchasableStockField.php+1 −1 modified@@ -129,7 +129,7 @@ public function inputHtml(ElementInterface $element = null, bool $static = false $inventoryLevelTableRows .= Html::beginTag('tr') . Html::beginTag('td') . - $inventoryLevel->getInventoryLocation()->name . + Html::encode($inventoryLevel->getInventoryLocation()->getUiLabel()) . Html::endTag('td') . Html::beginTag('td') . Html::beginTag('div', ['class' => 'flex']) .
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
4- github.com/advisories/GHSA-wj89-2385-gpx3ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-29176ghsaADVISORY
- github.com/craftcms/commerce/commit/da143df084563ddf0929d7c261bcc11d312e8004ghsax_refsource_MISCWEB
- github.com/craftcms/commerce/security/advisories/GHSA-wj89-2385-gpx3ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.