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-2022-0218

CVE-2022-0218: WP HTML Mail Auth Bypass Vulnerability

CVE-2022-0218 is an authorization bypass flaw in WP HTML Mail WordPress plugin that allows unauthenticated attackers to modify theme settings and inject malicious JavaScript. This article covers technical details, affected versions, and mitigation.

Published: February 11, 2026

CVE-2022-0218 Overview

CVE-2022-0218 is a Cross-Site Scripting (XSS) vulnerability in the WP HTML Mail WordPress plugin that allows unauthenticated attackers to retrieve and modify theme settings due to a missing capability check on the /themesettings REST-API endpoint. This vulnerability affects the ~/includes/class-template-designer.php file in versions up to and including 3.0.9, enabling attackers with no privileges to execute the endpoint and inject malicious JavaScript into vulnerable WordPress sites.

Critical Impact

Unauthenticated attackers can inject malicious JavaScript code into WordPress sites through the unprotected REST-API endpoint, potentially leading to session hijacking, credential theft, and site defacement.

Affected Products

  • Codemiq WordPress Email Template Designer (WP HTML Mail) versions up to and including 3.0.9
  • WordPress sites utilizing the WP HTML Mail plugin for email customization

Discovery Timeline

  • 2022-02-04 - CVE-2022-0218 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-0218

Vulnerability Analysis

This vulnerability stems from a missing authorization check in the WP HTML Mail WordPress plugin's REST-API implementation. The /themesettings endpoint in the class-template-designer.php file lacks proper capability verification, allowing any unauthenticated user to access and modify the plugin's theme configuration settings. This broken access control issue directly enables stored XSS attacks by permitting attackers to inject malicious JavaScript code into the email template settings without authentication.

The vulnerability is particularly dangerous because it combines two security weaknesses: unauthorized access to a REST-API endpoint and the ability to persist malicious scripts that execute in the context of users viewing the affected content. The network-accessible nature of the attack vector, combined with no authentication requirements, significantly expands the potential attack surface.

Root Cause

The root cause of CVE-2022-0218 is a missing capability check (authorization bypass) in the REST-API endpoint handler within the class-template-designer.php file. The developers failed to implement proper WordPress capability verification before allowing modifications to theme settings. This oversight means the endpoint does not validate whether the requesting user has appropriate administrative privileges before processing the request, violating the principle of least privilege.

Attack Vector

The attack is executed remotely over the network by sending crafted HTTP requests to the unprotected /themesettings REST-API endpoint. An attacker requires no authentication or special privileges to exploit this vulnerability.

The exploitation flow involves:

  1. The attacker identifies a WordPress site running a vulnerable version of WP HTML Mail (versions ≤3.0.9)
  2. The attacker sends a malicious request to the /themesettings REST-API endpoint containing JavaScript payload
  3. The server accepts the request without verifying authorization and stores the malicious content
  4. When legitimate users or administrators view email templates or related settings, the stored JavaScript executes in their browser context
  5. The malicious script can then steal session cookies, redirect users to phishing pages, or perform actions on behalf of the authenticated user

For detailed technical analysis of this vulnerability, refer to the Wordfence security advisory.

Detection Methods for CVE-2022-0218

Indicators of Compromise

  • Unexpected modifications to WP HTML Mail theme settings or email templates
  • Unusual JavaScript code present in email template configurations
  • Suspicious REST-API requests targeting /wp-json/*/themesettings endpoints in web server logs
  • Reports of unexpected redirects or popups when administrators access the email template designer

Detection Strategies

  • Monitor web server access logs for unauthenticated POST/PUT requests to REST-API endpoints containing themesettings
  • Implement Web Application Firewall (WAF) rules to detect and block requests with JavaScript payloads targeting the vulnerable endpoint
  • Conduct regular audits of email template settings for unexpected or malicious content
  • Deploy file integrity monitoring to detect unauthorized changes to plugin files

Monitoring Recommendations

  • Enable verbose logging for WordPress REST-API requests and review for anomalous patterns
  • Configure security plugins to alert on configuration changes to the WP HTML Mail plugin
  • Implement real-time monitoring for XSS attack signatures in HTTP request bodies
  • Regularly review plugin activity logs for unauthorized settings modifications

How to Mitigate CVE-2022-0218

Immediate Actions Required

  • Update WP HTML Mail (WordPress Email Template Designer) plugin to version 3.1 or later immediately
  • Review email template settings for any unauthorized JavaScript or suspicious content
  • Audit web server logs for past exploitation attempts targeting the /themesettings endpoint
  • Consider temporarily disabling the plugin if immediate patching is not possible

Patch Information

Codemiq has released a security patch addressing this vulnerability. The fix implements proper capability checks on the /themesettings REST-API endpoint to ensure only authorized users can access and modify theme settings. The patch can be reviewed in the WordPress Plugin Change Log.

Update to version 3.1 or later of the WP HTML Mail plugin through the WordPress admin dashboard or by downloading directly from the WordPress plugin repository.

Workarounds

  • Restrict access to the WordPress REST-API using server-level configuration or security plugins until patching is complete
  • Implement WAF rules to block unauthenticated requests to the /themesettings endpoint
  • Consider using WordPress security plugins that provide virtual patching capabilities for known vulnerabilities
  • Temporarily disable the WP HTML Mail plugin if it is not critical to site operations
bash
# Example: Block access to vulnerable endpoint via .htaccess (Apache)
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{REQUEST_URI} ^.*themesettings.*$ [NC]
  RewriteCond %{REQUEST_METHOD} ^(POST|PUT)$ [NC]
  RewriteRule .* - [F,L]
</IfModule>

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechCodemiq Wordpress Email Template Designer

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability62.40%

  • 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
  • Wordfence Blog XSS Vulnerability Update
  • Vendor Resources
  • WordPress Plugin Change Log
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS Vulnerability
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