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

CVE-2026-25491: Craft CMS Stored XSS Vulnerability

CVE-2026-25491 is a stored cross-site scripting flaw in Craft CMS that affects Entry Type names. Attackers can inject malicious scripts through unsanitized input. This article covers technical details, affected versions, and mitigation.

Published: February 13, 2026

CVE-2026-25491 Overview

CVE-2026-25491 is a stored Cross-Site Scripting (XSS) vulnerability affecting Craft CMS, a popular platform for creating digital experiences. The vulnerability exists in versions 5.0.0-RC1 through 5.8.21, where Entry Type names are not properly sanitized when displayed in the Entry Types list. An attacker with administrative privileges could inject malicious scripts that execute when other users view the Entry Types configuration page.

Critical Impact

Stored XSS in administrative interface allows persistent script injection that could compromise admin sessions, steal credentials, or perform unauthorized actions on behalf of authenticated users.

Affected Products

  • Craft CMS versions 5.0.0-RC1 through 5.8.21
  • Craft CMS Entry Type management functionality
  • Craft CMS Control Panel (administrative interface)

Discovery Timeline

  • 2026-02-09 - CVE-2026-25491 published to NVD
  • 2026-02-09 - Last updated in NVD database

Technical Details for CVE-2026-25491

Vulnerability Analysis

This stored XSS vulnerability (CWE-79) occurs within the Craft CMS Entry Types management system. The root issue stems from the getUiLabel() method output being rendered directly into HTML without proper encoding. When an administrator creates or edits an Entry Type and includes JavaScript code in the name field, that payload is stored in the database. Subsequently, when any user with access to the Entry Types list views the page, the malicious script executes in their browser context.

The attack requires high privileges (administrative access to create/modify Entry Types) but once stored, the payload persists and executes for all users viewing the affected page. This creates an opportunity for privilege abuse scenarios where a compromised or malicious administrator could target other high-privilege users.

Root Cause

The vulnerability originates in the src/services/Entries.php file where the Entry Type label is retrieved via $entryType->getUiLabel() and passed directly to HTML rendering functions without proper encoding. The missing call to Html::encode() allows raw HTML and JavaScript to pass through and be interpreted by the browser as executable code rather than display text.

Attack Vector

An attacker with administrative privileges to the Craft CMS Control Panel can exploit this vulnerability by:

  1. Navigating to the Entry Types configuration section
  2. Creating a new Entry Type or editing an existing one
  3. Injecting a malicious JavaScript payload into the Entry Type name field (e.g., <script>alert(document.cookie)</script>)
  4. Saving the Entry Type, which stores the unsanitized payload in the database
  5. When any authenticated user visits the Entry Types list, the stored script executes in their browser
php
         $usages = $this->allEntryTypeUsages();
 
         foreach ($entryTypes as $entryType) {
-            $label = $entryType->getUiLabel();
+            $label = Html::encode($entryType->getUiLabel());
             $chipCellContent = Html::beginTag('div', ['class' => 'inline-chips']) .
                 Cp::chipHtml($entryType, [
                     'labelHtml' => Html::a($label, $entryType->getCpEditUrl(), [

Source: GitHub Commit

Detection Methods for CVE-2026-25491

Indicators of Compromise

  • Unusual or suspicious characters in Entry Type names including <script>, javascript:, onerror=, or other HTML event handlers
  • Entry Type names containing encoded characters such as < or %3C that decode to angle brackets
  • Unexpected JavaScript execution or browser console errors when viewing the Entry Types list
  • Database entries in the Entry Types table containing HTML or script tags

Detection Strategies

  • Implement Content Security Policy (CSP) headers to detect and block inline script execution
  • Monitor application logs for unusual Entry Type creation or modification activity
  • Perform regular audits of Entry Type names in the database for suspicious content
  • Deploy Web Application Firewall (WAF) rules to detect XSS payloads in POST requests to Entry Type endpoints

Monitoring Recommendations

  • Enable detailed audit logging for all Control Panel administrative actions
  • Configure browser-based XSS detection and alerting through CSP violation reports
  • Monitor for session cookie theft or unexpected admin session activity following Entry Type modifications

How to Mitigate CVE-2026-25491

Immediate Actions Required

  • Upgrade Craft CMS to version 5.8.22 or later immediately
  • Audit all existing Entry Type names in the database for malicious content
  • Review administrative user accounts for unauthorized access or suspicious activity
  • Consider temporarily restricting Entry Type modification permissions until patching is complete

Patch Information

Craft CMS has released version 5.8.22 which addresses this vulnerability by adding proper HTML encoding to Entry Type labels before rendering. The fix applies Html::encode() to the output of getUiLabel() in the src/services/Entries.php file, ensuring that any special characters are escaped and rendered as text rather than executable HTML.

For detailed information, refer to the GitHub Security Advisory GHSA-7pr4-wx9w-mqwr and the official release notes for version 5.8.22.

Workarounds

  • If immediate patching is not possible, restrict access to Entry Type management to only the most trusted administrators
  • Implement strict Content Security Policy headers to mitigate XSS impact by blocking inline script execution
  • Manually sanitize existing Entry Type names by removing any HTML or script content from the database
  • Apply Web Application Firewall rules to filter XSS patterns in requests to the Craft CMS Control Panel
bash
# Example CSP header configuration for nginx
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self';" always;

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechCraft

  • SeverityLOW

  • CVSS Score1.9

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:P/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
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Commit Changes

  • GitHub Release 5.8.22

  • GitHub Security Advisory GHSA-7pr4-wx9w-mqwr
  • Related CVEs
  • CVE-2026-27126: Craft CMS Stored XSS Vulnerability

  • CVE-2026-25496: Craft CMS Stored XSS Vulnerability

  • CVE-2025-68538: Craft Theme DOM-Based XSS Vulnerability

  • CVE-2026-31858: Craft CMS SQL Injection Vulnerability
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