Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-28222

CVE-2026-28222: Wagtail CMS TableBlock XSS Vulnerability

CVE-2026-28222 is a stored cross-site scripting vulnerability in Wagtail CMS TableBlock that allows authenticated users to inject malicious JavaScript. This article covers technical details, affected versions, and patches.

Published: March 6, 2026

CVE-2026-28222 Overview

A stored cross-site scripting (XSS) vulnerability has been identified in Wagtail, the popular open source content management system built on Django. The vulnerability exists in the rendering of TableBlock blocks within a StreamField, allowing authenticated users with page editing privileges to inject malicious JavaScript code that executes when the page is viewed by other users.

An attacker with access to create or edit pages containing TableBlock StreamField blocks can set specially-crafted class attributes on the block that execute arbitrary JavaScript code when the page is rendered. When viewed by administrators or users with higher privileges, this could enable session hijacking, privilege escalation, or unauthorized actions performed under the victim's credentials.

Critical Impact

Authenticated attackers can execute arbitrary JavaScript in the context of higher-privileged users, potentially leading to account takeover, data exfiltration, or administrative actions performed without authorization.

Affected Products

  • Wagtail versions prior to 6.3.8
  • Wagtail versions 7.0.x prior to 7.0.6
  • Wagtail versions 7.2.x prior to 7.2.3
  • Wagtail versions 7.3.x prior to 7.3.1

Discovery Timeline

  • 2026-03-05 - CVE-2026-28222 published to NVD
  • 2026-03-05 - Last updated in NVD database

Technical Details for CVE-2026-28222

Vulnerability Analysis

This stored XSS vulnerability (CWE-79) affects Wagtail's TableBlock component when used within StreamField blocks. The core issue stems from insufficient sanitization of user-supplied class attributes during the rendering phase. When a malicious user creates or modifies a page containing a TableBlock, they can inject JavaScript payloads through specially-crafted class attribute values.

Unlike reflected XSS attacks, stored XSS persists in the application database, meaning the malicious payload is executed every time any user views the affected page. This makes the vulnerability particularly dangerous in multi-user CMS environments where content editors may have lower privileges than site administrators.

The attack requires authentication to the Wagtail admin interface, limiting exposure to authenticated users. However, the vulnerability only affects sites that implement TableBlock functionality. Sites not using TableBlock in their page models are not vulnerable.

Root Cause

The vulnerability originates from improper input validation and output encoding in the TableBlock rendering logic. When table data containing class attributes is stored and subsequently rendered, the class attribute values are not properly sanitized or escaped, allowing HTML event handlers or other JavaScript execution vectors to be injected.

The affected code failed to properly sanitize user-controlled input before including it in the rendered HTML output, violating secure coding principles for XSS prevention. Class attributes, which typically should only contain CSS class names, were being rendered without validation, allowing attackers to break out of the attribute context and inject executable code.

Attack Vector

The attack is network-based and requires the attacker to have authenticated access to the Wagtail admin panel with permissions to create or edit pages containing TableBlock elements. The attacker crafts a malicious payload within the class attribute field of a table element.

When a victim user (ideally with higher privileges than the attacker) views the page containing the malicious TableBlock, the injected JavaScript executes in their browser session. This enables various attack scenarios including:

  • Stealing session cookies or authentication tokens
  • Performing actions as the victim user via CSRF-like requests
  • Modifying page content visible to the victim
  • Redirecting the victim to phishing pages
  • Exfiltrating sensitive data accessible to the victim

The attack exploits the trust relationship between authenticated users and the CMS platform, making it effective for privilege escalation attacks where a lower-privileged content editor targets administrators.

Detection Methods for CVE-2026-28222

Indicators of Compromise

  • Unusual or unexpected class attribute values in TableBlock elements containing JavaScript event handlers (e.g., onmouseover, onerror, onclick)
  • TableBlock entries with encoded payloads or unusual Unicode characters in class attributes
  • Audit log entries showing modifications to pages with TableBlock content by users who shouldn't have such access
  • Browser console errors or warnings related to Content Security Policy violations on pages with tables

Detection Strategies

  • Implement Content Security Policy (CSP) headers with strict script-src directives to prevent inline script execution
  • Review Wagtail audit logs for suspicious page editing activity, particularly modifications to TableBlock content
  • Deploy web application firewall (WAF) rules to detect XSS payloads in form submissions to the Wagtail admin
  • Conduct periodic code reviews of page content focusing on TableBlock class attributes

Monitoring Recommendations

  • Enable and monitor Wagtail's built-in audit logging for all page create and edit actions
  • Implement real-time alerting for CSP violation reports using the report-uri directive
  • Monitor for unusual patterns of page edits followed by views from administrative accounts
  • Deploy endpoint detection solutions capable of identifying browser-based attacks and suspicious JavaScript execution

How to Mitigate CVE-2026-28222

Immediate Actions Required

  • Upgrade Wagtail to a patched version: 6.3.8, 7.0.6, 7.2.3, or 7.3.1 depending on your current version branch
  • Audit existing TableBlock content for suspicious class attribute values before and after patching
  • Implement Content Security Policy headers to provide defense-in-depth against XSS attacks
  • Review user permissions and restrict TableBlock editing access to trusted users only

Patch Information

The Wagtail development team has released security patches across all supported version branches. Organizations should upgrade to the appropriate patched version based on their current deployment:

Current VersionUpgrade To
6.3.xv6.3.8
7.0.xv7.0.6
7.2.xv7.2.3
7.3.xv7.3.1

For detailed technical information about the fix, refer to the Wagtail Security Advisory GHSA-p5cm-246w-84jm or review the commit history at Wagtail Commit 0375094.

Workarounds

  • If immediate patching is not possible, temporarily disable TableBlock functionality by removing it from page models
  • Implement strict Content Security Policy headers to mitigate the impact of any XSS payload execution
  • Restrict admin access to only essential personnel until the patch can be applied
  • Consider deploying a web application firewall with XSS filtering rules in front of the Wagtail application
bash
# Upgrade Wagtail using pip (example for version 7.3.1)
pip install --upgrade wagtail==7.3.1

# Verify the installed version
python -c "import wagtail; print(wagtail.VERSION)"

# Apply database migrations if required
python manage.py migrate

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechWagtail

  • SeverityMEDIUM

  • CVSS Score6.1

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • Wagtail Commit 0375094

  • Wagtail Commit 4620423

  • Wagtail Commit 575c0d7

  • Wagtail Commit 605a556

  • Wagtail Release v6.3.8

  • Wagtail Release v7.0.6

  • Wagtail Release v7.2.3

  • Wagtail Release v7.3.1

  • Wagtail Security Advisory GHSA-p5cm-246w-84jm
  • Related CVEs
  • CVE-2026-28223: Wagtail CMS Stored XSS Vulnerability

  • CVE-2026-25517: Wagtail CMS Information Disclosure Flaw
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