← Vulnerability feed

Vulnerability record · CVE-2022-0218 · published 4 February 2022

CVE-2022-0218: WP HTML Mail plugin missing authorization enables unauthenticated stored XSS

Codemiq · Wordpress Email Template Designer

The WP HTML Mail WordPress plugin exposes the /themesettings REST-API endpoint without a capability check in includes/class-template-designer.php, affecting versions up to and including 3.0.9. Unauthenticated attackers can read and modify theme settings, and the description states they can inject malicious JavaScript into the site. The flaw combines missing authorization (CWE-862) with cross-site scripting (CWE-79).

6.1 CVSS 3.1 Medium EPSS 71% · top 0.6% CWE-79 · Cross-site scriptingCWE-862 · Missing authorization
6.1CVSS 3.1 base score, v2 4.3
71%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
4References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

The WP HTML Mail WordPress plugin is vulnerable to unauthorized access which allows unauthenticated attackers to retrieve and modify theme settings due to a missing capability check on the /themesettings REST-API endpoint found in the ~/includes/class-template-designer.php file, in versions up to and including 3.0.9. This makes it possible for attackers with no privileges to execute the endpoint and add malicious JavaScript to a vulnerable WordPress site.

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: high.

high priorityUnauthenticated access to a settings endpoint that permits stored script injection is serious, and the very high EPSS score plus an exploit-tagged advisory indicate likely active interest.

What it is

The WP HTML Mail WordPress plugin exposes the /themesettings REST-API endpoint without a capability check in includes/class-template-designer.php, affecting versions up to and including 3.0.9. Unauthenticated attackers can read and modify theme settings, and the description states they can inject malicious JavaScript into the site. The flaw combines missing authorization (CWE-862) with cross-site scripting (CWE-79).

Impact

An attacker can change theme settings and plant malicious JavaScript that executes in the browser of site visitors or administrators. This enables session theft, credential capture, or arbitrary actions in the context of a victim's session.

Attack surface

Reachable over the network through the plugin's REST-API endpoint; no authentication is required per the description and CVSS vector (PR:N). The CVSS vector includes UI:R, so some user interaction is needed for the script to execute in a victim's browser.

Exploitation

Not listed in CISA KEV, but EPSS is 0.70511 (99.357th percentile), indicating high predicted exploitation activity. References include an Exploit-tagged Wordfence advisory, so public exploitation details exist.

What to do

  • Update WP HTML Mail to a version newer than 3.0.9, which contains the patch referenced in the plugin changeset.
  • If immediate patching is not possible, disable or remove the WP HTML Mail plugin until it can be updated.
  • Restrict access to the WordPress REST API where feasible, and review any custom rules that expose plugin endpoints to unauthenticated users.
  • Audit theme settings and templates for injected JavaScript or unexpected modifications, and restore from a known-good backup if tampering is found.
  • Apply a web application firewall rule to block unauthenticated requests to the plugin's /themesettings endpoint.

Detection

  • Monitor web server and WordPress logs for unauthenticated requests to the WP HTML Mail /themesettings REST-API endpoint.
  • Inspect stored theme settings and email templates for unexpected script tags or JavaScript content.
  • Review WordPress user and plugin activity logs for changes to WP HTML Mail settings made outside normal administrative sessions.
  • Hunt for outbound or inline script content in rendered pages that references unexpected external domains.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2022-0218 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

8.8CVE-2021-20779Codemiq wordpress email template designer cross-site request forgery vulnerabilityCross-site request forgery (CSRF) vulnerability in WordPress Email Template Designer - WP HTML Mail versions prior to 3.0.8 allows remote attackers t…EPSS 0.87%6.1CVE-2026-42897Microsoft Exchange Server XSS enables spoofingMicrosoft Exchange Server and Exchange Server Subscription Edition fail to neutralize input during web page generation, a cross-site scripting flaw (…KEVEPSS 0.52%analysed6.1CVE-2025-48700Zimbra Classic UI stored XSS via crafted email HTMLZimbra Collaboration Suite Classic UI fails to properly sanitize HTML content in email messages, allowing crafted tag structures and attribute values…KEVEPSS 1.7%analysed6.1CVE-2025-66376Zimbra Collaboration Classic UI stored XSS via CSS @import in emailZimbra Collaboration Suite 10 before 10.0.18 and 10.1 before 10.1.13 allows stored cross-site scripting in the Classic UI through CSS @import directi…KEVEPSS 20%analysed6.1CVE-2025-68461Roundcube Webmail XSS via SVG animate tagRoundcube Webmail before 1.5.12 and 1.6 before 1.6.12 is vulnerable to cross-site scripting through the animate tag in an SVG document. Because the f…KEVEPSS 27%analysed10.0CVE-2026-22769Dell RecoverPoint for Virtual Machines hardcoded credential flawDell RecoverPoint for Virtual Machines versions prior to 6.0.3.1 HF1 contain a hardcoded credential vulnerability (CWE-798). An unauthenticated remot…KEVEPSS 13%analysed7.1CVE-2025-14611Gladinet CentreStack and Triofox hardcoded AES key enables file inclusionCentreStack and Triofox before 16.12.10420.56791 use hardcoded values in their AES cryptoscheme, weakening protection for publicly exposed endpoints.…KEVEPSS 53%analysed5.4CVE-2021-26829OpenPLC ScadaBR stored XSS via system_settings.shtmOpenPLC ScadaBR through 0.9.1 on Linux and through 1.12.4 on Windows allows stored cross-site scripting through system_settings.shtm. Because the inj…KEVEPSS 48%analysed

Source: NIST National Vulnerability Database (record CVE-2022-0218), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.