The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-29176

CVE-2026-29176: Craft Commerce Stored XSS Vulnerability

CVE-2026-29176 is a stored cross-site scripting flaw in Craft Commerce's Inventory Locations settings that enables arbitrary JavaScript execution. This article covers technical details, affected versions, and mitigation.

Published: March 13, 2026

CVE-2026-29176 Overview

CVE-2026-29176 is a stored Cross-Site Scripting (XSS) vulnerability in Craft Commerce, an ecommerce platform for Craft CMS. Prior to version 5.5.3, the Commerce Settings - Inventory Locations page renders the Name field without proper HTML escaping, allowing an attacker to execute arbitrary JavaScript code. This XSS triggers when an administrator or user with product editing permissions creates or edits a variant product.

Critical Impact

Attackers with high privileges can inject persistent malicious scripts that execute in the context of other administrators' browsers, potentially leading to session hijacking, credential theft, or unauthorized administrative actions within the ecommerce platform.

Affected Products

  • Craft Commerce versions prior to 5.5.3
  • Craft CMS installations with Commerce plugin enabled
  • craftcms craft_commerce (cpe:2.3:a:craftcms:craft_commerce:*:*:*:*:*:craft_cms:*:*)

Discovery Timeline

  • 2026-03-10 - CVE-2026-29176 published to NVD
  • 2026-03-11 - Last updated in NVD database

Technical Details for CVE-2026-29176

Vulnerability Analysis

This stored XSS vulnerability exists due to improper output encoding in the PurchasableStockField.php component. When inventory location names are rendered in the administrative interface, the application directly outputs the location name without HTML encoding. This allows malicious JavaScript embedded in inventory location names to persist in the database and execute whenever an administrator views or interacts with variant products that reference those locations.

The vulnerability requires high privileges to exploit (administrative access to create inventory locations), but impacts other privileged users who subsequently view affected pages. The attack surface is limited to the administrative backend, making this a secondary-level threat within the context of authenticated administrative sessions.

Root Cause

The root cause is a missing call to Html::encode() when rendering inventory location names in the stock field template. The vulnerable code directly outputs the result of $inventoryLevel->getInventoryLocation()->name without sanitization, allowing raw HTML and JavaScript to be interpreted by the browser.

Attack Vector

This is a network-based attack requiring authenticated access with administrative privileges. An attacker with inventory location management permissions can:

  1. Navigate to Commerce Settings - Inventory Locations
  2. Create or modify an inventory location with a malicious name containing JavaScript (e.g., <script>alert('XSS')</script>)
  3. The payload persists in the database
  4. When any administrator creates or edits a variant product, the malicious script executes in their browser context

The patch addresses this by properly encoding the location label before rendering:

php
// Vulnerable code (before patch)
$inventoryLevelTableRows .= Html::beginTag('tr') .
    Html::beginTag('td') .
    $inventoryLevel->getInventoryLocation()->name .
    Html::endTag('td') .

// Fixed code (after patch)
$inventoryLevelTableRows .= Html::beginTag('tr') .
    Html::beginTag('td') .
    Html::encode($inventoryLevel->getInventoryLocation()->getUiLabel()) .
    Html::endTag('td') .

Source: GitHub Commit da143df

Detection Methods for CVE-2026-29176

Indicators of Compromise

  • Unusual HTML tags or JavaScript code present in inventory location names in the database
  • Inventory location entries containing <script>, onerror=, onclick=, or other event handler patterns
  • Administrator reports of unexpected browser behavior when editing variant products
  • Session tokens or credentials being sent to external domains

Detection Strategies

  • Review the craft_commerce_inventorylocations table for entries containing suspicious HTML or JavaScript patterns
  • Implement Content Security Policy (CSP) headers to detect and block inline script execution attempts
  • Monitor browser console logs in administrative sessions for script injection warnings
  • Audit administrative user activity logs for unusual inventory location creation or modification patterns

Monitoring Recommendations

  • Enable web application firewall (WAF) rules to detect stored XSS payloads in form submissions
  • Configure alerting for inventory location modifications containing special characters or HTML entities
  • Deploy browser-based XSS detection tools that can identify script injection attempts in real-time
  • Regularly audit administrative interface components for proper output encoding

How to Mitigate CVE-2026-29176

Immediate Actions Required

  • Upgrade Craft Commerce to version 5.5.3 or later immediately
  • Audit existing inventory location names for malicious content and sanitize any suspicious entries
  • Review administrative user access and remove unnecessary privileges for inventory location management
  • Implement Content Security Policy headers to provide defense-in-depth against XSS attacks

Patch Information

Craft Commerce version 5.5.3 addresses this vulnerability by properly encoding inventory location names before rendering them in the administrative interface. The fix replaces direct output of the name property with an encoded call to getUiLabel() wrapped in Html::encode().

Update your Craft Commerce installation via Composer:

  • GitHub Security Advisory GHSA-wj89-2385-gpx3
  • Patch Commit da143df084563ddf0929d7c261bcc11d312e8004

Workarounds

  • Restrict access to the Commerce Settings - Inventory Locations page to only essential personnel until patching is complete
  • Implement strict Content Security Policy headers that block inline script execution (script-src 'self')
  • Manually review and sanitize all existing inventory location names in the database
  • Consider temporarily disabling the inventory locations feature if not critical to operations
bash
# Update Craft Commerce via Composer
composer require craftcms/commerce:^5.5.3
php craft migrate/all
php craft project-config/apply

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechCraftcms

  • SeverityMEDIUM

  • CVSS Score4.8

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Vendor Resources
  • GitHub Commit Details

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-31859: Craft CMS Reflected XSS Vulnerability

  • CVE-2026-29175: Craftcms Craft Commerce XSS Vulnerability

  • CVE-2026-29173: Craft Commerce Stored XSS Vulnerability

  • CVE-2026-29177: Craft Commerce Stored XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English