VYPR
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.

PackageAffected versionsPatched versions
craftcms/commercePackagist
>= 5.0.0, < 5.5.35.5.3

Affected products

1

Patches

1
da143df08456

Fix XSS

https://github.com/craftcms/commerceNathaniel HammondJan 5, 2026via ghsa
1 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

News mentions

0

No linked articles in our index yet.