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

CVE-2026-27126: Craft CMS Stored XSS Vulnerability

CVE-2026-27126 is a stored cross-site scripting flaw in Craft CMS that allows attackers to execute malicious JavaScript via the editableTable component. This article covers technical details, affected versions, and patches.

Published: February 27, 2026

CVE-2026-27126 Overview

CVE-2026-27126 is a stored Cross-Site Scripting (XSS) vulnerability affecting Craft CMS, a popular content management system. The vulnerability exists in the editableTable.twig component when using the html column type. The application fails to properly sanitize input, allowing an attacker to inject and execute arbitrary JavaScript code when another user views a page containing the malicious table field.

Critical Impact

Successful exploitation enables persistent JavaScript execution in victim browsers, potentially leading to session hijacking, credential theft, defacement, or further attacks against CMS administrators and users.

Affected Products

  • Craft CMS versions 4.5.0-RC1 through 4.16.18
  • Craft CMS versions 5.0.0-RC1 through 5.8.22

Discovery Timeline

  • 2026-02-24 - CVE-2026-27126 published to NVD
  • 2026-02-24 - Last updated in NVD database

Technical Details for CVE-2026-27126

Vulnerability Analysis

This stored XSS vulnerability stems from insufficient input sanitization in Craft CMS's editableTable.twig component. When table fields are configured to use the html column type, user-supplied content is rendered without proper encoding or sanitization, allowing malicious scripts to persist in the database and execute whenever the affected page is viewed.

The vulnerability requires attacker access to an administrator account and depends on the allowAdminChanges setting being enabled in production environments. While these prerequisites limit the attack surface, it's worth noting that enabling allowAdminChanges in production goes against Craft's own security recommendations.

Root Cause

The root cause is improper input validation (CWE-79) in the table field component. The editableTable.twig template renders HTML column content without adequate sanitization, failing to escape potentially dangerous characters and script tags. This allows stored malicious payloads to execute in the context of authenticated user sessions.

Attack Vector

The attack vector is network-based, requiring an authenticated attacker with administrator privileges to inject malicious JavaScript through the table field interface. The stored payload persists in the CMS database and executes automatically when other users (including other administrators) view pages containing the affected table field.

The exploitation flow involves:

  1. Attacker authenticates as an administrator
  2. Attacker creates or modifies a table field using the html column type
  3. Attacker injects malicious JavaScript payload into the field content
  4. Payload is stored in the database without proper sanitization
  5. When other users view the page, the malicious script executes in their browser context
php
  */
 class Table extends Field
 {
+    private static array $typeOptions;
+
     /**
      * @inheritdoc
      */

Source: GitHub Commit Update

The security patch introduces a $typeOptions array to ensure column types are validated against a supported range, preventing arbitrary HTML injection through unsanitized column type handling.

Detection Methods for CVE-2026-27126

Indicators of Compromise

  • Unexpected JavaScript code or <script> tags stored in table field content within the Craft CMS database
  • Anomalous network requests originating from the CMS control panel to external domains
  • Unusual session activity or authentication events following administrator page views
  • Modified table field configurations with suspicious HTML column content

Detection Strategies

  • Review Craft CMS audit logs for table field modifications by administrator accounts
  • Implement Content Security Policy (CSP) headers to detect and block unauthorized script execution
  • Monitor for XSS patterns in database content, particularly within table field storage
  • Deploy web application firewall (WAF) rules to detect XSS payloads in POST requests to the control panel

Monitoring Recommendations

  • Enable detailed logging for all administrative actions within Craft CMS
  • Configure alerts for modifications to table fields using the html column type
  • Monitor browser console errors that may indicate blocked malicious script attempts
  • Implement integrity monitoring for CMS configuration changes in production

How to Mitigate CVE-2026-27126

Immediate Actions Required

  • Upgrade Craft CMS to version 4.16.19 or 5.8.23 immediately
  • Disable allowAdminChanges in production environments as per Craft's security recommendations
  • Audit existing table field content for suspicious HTML or JavaScript payloads
  • Review administrator account access and rotate credentials if compromise is suspected

Patch Information

Craft CMS has released patched versions addressing this vulnerability. Users running affected versions should upgrade to 4.16.19 (for the 4.x branch) or 5.8.23 (for the 5.x branch). The patch validates column types against a supported range, preventing the injection of arbitrary HTML content. For detailed patch information, refer to the GitHub Security Advisory GHSA-3jh3-prx3-w6wc and the commit implementing the fix.

Workarounds

  • Set allowAdminChanges to false in production configuration to prevent exploitation
  • Restrict administrator account access to trusted personnel only
  • Avoid using the html column type in table fields until patching is complete
  • Implement Content Security Policy headers to mitigate potential script execution
bash
# Craft CMS configuration example (config/general.php)
# Disable admin changes in production to mitigate vulnerability
return [
    'production' => [
        'allowAdminChanges' => false,
    ],
];

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechCraft

  • SeverityMEDIUM

  • CVSS Score5.9

  • EPSS Probability0.01%

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

  • GitHub Security Advisory GHSA-3jh3-prx3-w6wc
  • Related CVEs
  • CVE-2026-25491: 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