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

CVE-2026-28223: Wagtail CMS Stored XSS Vulnerability

CVE-2026-28223 is a stored cross-site scripting vulnerability in Wagtail CMS that allows malicious JavaScript execution through crafted page titles. This article covers the technical details, affected versions, and mitigation steps.

Published: March 6, 2026

CVE-2026-28223 Overview

CVE-2026-28223 is a stored cross-site scripting (XSS) vulnerability affecting Wagtail, an open source content management system built on Django. The vulnerability exists within the wagtail.contrib.simple_translation module's confirmation message handling. A malicious user with access to the Wagtail admin area can craft a page title containing JavaScript code that executes when another administrator performs the "Translate" action on that page.

Critical Impact

Authenticated attackers can execute arbitrary JavaScript in the context of other admin users' sessions, potentially leading to account compromise, privilege escalation, or unauthorized actions within the CMS.

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-28223 published to NVD
  • 2026-03-05 - Last updated in NVD database

Technical Details for CVE-2026-28223

Vulnerability Analysis

This stored XSS vulnerability stems from improper output encoding in the Wagtail admin interface's message display system. The wagtail.contrib.simple_translation module generates confirmation messages that include user-controlled page titles. These messages were rendered using Django's |safe template filter, which explicitly bypasses HTML escaping.

When a page is created with a malicious title containing JavaScript (e.g., <script>alert(document.cookie)</script>), this payload is stored in the database. Subsequently, when any administrator performs the "Translate" action on that page, the confirmation message containing the malicious title is rendered without sanitization, causing the JavaScript to execute in the victim's browser context.

The attack requires the attacker to have valid admin credentials with page creation privileges, limiting the attack surface to authenticated users. However, once a malicious page is created, any admin user who interacts with it via the translation feature becomes a potential victim.

Root Cause

The root cause is the use of the |safe template filter in wagtail/admin/templates/wagtailadmin/base.html when rendering flash messages. This filter marks the content as "safe" and prevents Django's automatic HTML escaping, allowing raw HTML including script tags to be injected into the page output.

The vulnerable template code rendered messages as:

{{ message|safe }}

This pattern assumes all message content is pre-sanitized, which is not the case when user-controlled data such as page titles are interpolated into messages.

Attack Vector

The attack vector requires network access and follows a multi-step exploitation chain:

  1. An attacker with Wagtail admin access creates a new page with a crafted title containing malicious JavaScript
  2. The malicious page is saved to the database with the XSS payload intact in the title field
  3. A victim administrator navigates to the malicious page and initiates the "Translate" action
  4. The simple_translation module generates a confirmation message incorporating the page title
  5. The message is rendered with |safe, executing the attacker's JavaScript in the victim's browser
  6. The attacker's script can steal session cookies, perform CSRF attacks, or take actions as the victim user
text
                                 {% else %}
                                     {% icon name=level_tag classname="messages-icon" %}
                                 {% endif %}
-                                {{ message|safe }}
+                                {{ message }}
                                 {% if level_tag == "error" %}
                                     {# Show a button to focus the first field/response error if available. #}
                                     <button

Source: GitHub Commit 1c6f2eff

The patch removes the |safe filter, allowing Django's default auto-escaping to sanitize all message content, including interpolated user data.

Detection Methods for CVE-2026-28223

Indicators of Compromise

  • Presence of page titles containing HTML tags such as <script>, <img onerror=, <svg onload=, or similar XSS payloads in the Wagtail database
  • Unexpected JavaScript execution or browser behavior when performing translation actions in the admin interface
  • Audit log entries showing pages created with suspicious titles containing encoded or unencoded script tags

Detection Strategies

  • Review Wagtail page titles in the database for HTML/JavaScript content using SQL queries or Django ORM filters
  • Implement Content Security Policy (CSP) headers to detect and block inline script execution, with violation reports sent to a monitoring endpoint
  • Deploy web application firewall (WAF) rules to detect XSS patterns in form submissions to the Wagtail admin

Monitoring Recommendations

  • Enable detailed logging for page creation and modification events in the Wagtail admin
  • Monitor CSP violation reports for attempted inline script execution within the admin interface
  • Conduct periodic security audits of page content for suspicious patterns that could indicate stored XSS attempts

How to Mitigate CVE-2026-28223

Immediate Actions Required

  • Upgrade Wagtail to the patched version appropriate for your release branch: 6.3.8, 7.0.6, 7.2.3, or 7.3.1
  • Audit existing page titles in the database for potential XSS payloads and sanitize or remove any suspicious content
  • Implement Content Security Policy headers with script-src 'self' to provide defense-in-depth against script injection

Patch Information

Wagtail has released security patches across all supported branches. The fix removes the |safe filter from message rendering in the admin templates, ensuring all user-controlled content is properly HTML-escaped.

BranchPatched VersionRelease Link
6.3.x6.3.8GitHub Release v6.3.8
7.0.x7.0.6GitHub Release v7.0.6
7.2.x7.2.3GitHub Release v7.2.3
7.3.x7.3.1GitHub Release v7.3.1

For complete technical details, refer to the GitHub Security Advisory GHSA-p4v8-rw59-93cq.

Workarounds

  • If immediate patching is not possible, disable the wagtail.contrib.simple_translation module by removing it from INSTALLED_APPS until the upgrade can be completed
  • Restrict admin access to trusted users only and implement additional authentication controls
  • Deploy a WAF with XSS detection rules in front of the Wagtail admin interface as a temporary mitigation
bash
# Upgrade Wagtail using pip (choose the appropriate version for your branch)
pip install --upgrade wagtail==7.3.1

# Or specify in requirements.txt
# wagtail>=7.3.1

# Verify the installed version
pip show wagtail | grep Version

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
  • GitHub Commit 1c6f2eff

  • GitHub Commit ba70244d

  • GitHub Commit d8c59009

  • GitHub Commit ee39d39d

  • GitHub Release v6.3.8

  • GitHub Release v7.0.6

  • GitHub Release v7.2.3

  • GitHub Release v7.3.1

  • GitHub Security Advisory GHSA-p4v8-rw59-93cq
  • Related CVEs
  • CVE-2026-28222: Wagtail CMS TableBlock 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