A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2024-38356

CVE-2024-38356: TinyMCE XSS Vulnerability

CVE-2024-38356 is a cross-site scripting flaw in TinyMCE's content extraction code that allows malicious code execution through crafted HTML attributes. This article covers technical details, affected versions, and patches.

Updated: January 22, 2026

CVE-2024-38356 Overview

A cross-site scripting (XSS) vulnerability was discovered in TinyMCE, a widely-used open source rich text editor. The vulnerability exists in TinyMCE's content extraction code and specifically affects configurations using the noneditable_regexp option. When this option is enabled, specially crafted HTML attributes containing malicious code can be executed when content is extracted from the editor, potentially allowing attackers to execute arbitrary JavaScript in the context of the victim's browser session.

Critical Impact

Attackers can inject and execute malicious JavaScript code through specially crafted HTML attributes, potentially leading to session hijacking, data theft, or further exploitation of users interacting with affected TinyMCE instances.

Affected Products

  • TinyMCE versions prior to 7.2.0
  • TinyMCE versions prior to 6.8.4
  • TinyMCE versions prior to 5.11.0 LTS

Discovery Timeline

  • 2024-06-19 - CVE CVE-2024-38356 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-38356

Vulnerability Analysis

This Cross-Site Scripting (XSS) vulnerability (CWE-79) resides in TinyMCE's content parsing and extraction mechanisms, specifically within the DOM parser and serializer components. The flaw occurs when the noneditable_regexp option is configured, which is designed to mark content matching a regular expression as non-editable. Due to improper validation, malicious content embedded within HTML attributes bypasses the configured regular expression verification before being added to the output, enabling script injection.

The vulnerability is particularly concerning for web applications that rely on TinyMCE for user-generated content, such as content management systems, forums, and web-based email clients. A successful exploit could allow attackers to steal session cookies, perform actions on behalf of authenticated users, or redirect victims to malicious sites.

Root Cause

The root cause lies in insufficient validation of content within HTML attributes when using the noneditable_regexp option. The DOM parser and serializer components failed to properly verify that attribute content matches the configured regular expression before including it in the extracted output. Additionally, the special element handling in the DOM parser did not properly account for noscript elements, allowing encoded content to be improperly processed.

Attack Vector

The attack is network-based and requires user interaction. An attacker can craft malicious HTML content containing specially formatted attributes that bypass the noneditable_regexp validation. When a victim loads or interacts with editor content containing the payload, the malicious JavaScript executes in their browser context. The attack does not require authentication to craft the payload, though exploiting it requires a victim to interact with the malicious content.

The following code shows the security patch applied to fix the DOM parser handling:

typescript
   const parentName = parent.name;
   // Exclude the special elements where the content is RCDATA as their content needs to be parsed instead of being left as plain text
   // See: https://html.spec.whatwg.org/multipage/parsing.html#parsing-html-fragments
-  const isSpecial = parentName in specialElements && parentName !== 'title' && parentName !== 'textarea';
+  const isSpecial = parentName in specialElements && parentName !== 'title' && parentName !== 'textarea' && parentName !== 'noscript';

   const childNodes = nativeParent.childNodes;
   for (let ni = 0, nl = childNodes.length; ni < nl; ni++) {

Source: GitHub Commit Update

The patch adds noscript to the list of elements that should have their content parsed rather than left as plain text, preventing encoded malicious content from being improperly handled.

Detection Methods for CVE-2024-38356

Indicators of Compromise

  • Unusual or obfuscated JavaScript code within HTML attributes in TinyMCE content
  • Unexpected script execution events originating from rich text editor components
  • Log entries showing suspicious HTML attribute patterns in user-submitted content
  • Reports of session hijacking or unauthorized actions following interaction with editor content

Detection Strategies

  • Implement Content Security Policy (CSP) headers to detect and block inline script execution attempts
  • Monitor web application logs for HTML content containing suspicious attribute patterns or encoded JavaScript
  • Deploy web application firewalls (WAF) with XSS detection rules targeting rich text editor content
  • Use browser developer tools or security scanning tools to audit TinyMCE content for script injection patterns

Monitoring Recommendations

  • Enable detailed logging for TinyMCE content submission and extraction events
  • Configure security information and event management (SIEM) systems to alert on XSS indicator patterns
  • Implement client-side monitoring for unexpected script execution in editor contexts
  • Regularly audit stored content for malicious payloads that may have been injected prior to patching

How to Mitigate CVE-2024-38356

Immediate Actions Required

  • Upgrade TinyMCE to version 7.2.0, 6.8.4, or 5.11.0 LTS depending on your major version
  • Review existing content stored by TinyMCE for potential malicious payloads
  • Implement Content Security Policy headers to mitigate XSS impact if immediate patching is not possible
  • Audit usage of the noneditable_regexp option across your applications

Patch Information

TinyMCE has released security patches addressing this vulnerability. The fix ensures that when using the noneditable_regexp option, any content within an attribute is properly verified to match the configured regular expression before being added to the output. Patches are available for all supported version branches:

  • TinyMCE 7.x: Upgrade to version 7.2.0 or later - See TinyMCE 7.2 Release Notes
  • TinyMCE 6.x: Upgrade to version 6.8.4 or later - See TinyMCE 6.8.4 Release Notes
  • TinyMCE 5.x LTS: Upgrade to version 5.11.0 or later

For detailed technical information about the fix, refer to the GitHub Security Advisory GHSA-9hcv-j9pv-qmph.

Workarounds

  • There are no known workarounds for this vulnerability; upgrading to a patched version is required
  • As a temporary mitigation, implement strict Content Security Policy headers to reduce XSS impact
  • Consider disabling the noneditable_regexp option if not critical to your application functionality while awaiting upgrade
  • Deploy additional input validation and output encoding on content processed by TinyMCE
bash
# Upgrade TinyMCE via npm
npm update tinymce

# Or install specific patched version
npm install tinymce@7.2.0

# Verify installed version
npm list tinymce

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechTinymce

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability1.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-9hcv-j9pv-qmph

  • OWASP XSS Attack Overview

  • TinyMCE 6.8.4 Release Notes

  • TinyMCE 7.2 Release Notes
  • Related CVEs
  • CVE-2022-23494: Tiny Tinymce XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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