EmailKit <= 1.6.3 - Authenticated (Administrator+) Path Traversal via 'emailkit-editor-template' REST API Parameter

4.9
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVE CVE-2026-3474
CVSS 4.9 (Medium)
Publicly Published March 20, 2026
Last Updated March 20, 2026
Researcher Chiao-Lin Yu (Steven Meow) - Trend Micro

Description

The EmailKit – Email Customizer for WooCommerce & WP plugin for WordPress is vulnerable to arbitrary file read via path traversal in all versions up to, and including, 1.6.3. This is due to the action() function in the TemplateData class passing user-supplied input from the 'emailkit-editor-template' REST API parameter directly to file_get_contents() without any path validation, sanitization, or restriction to an allowed directory. This makes it possible for authenticated attackers, with Administrator-level access, to read arbitrary files on the server (such as /etc/passwd or wp-config.php) by supplying a traversal path. The file contents are stored as post meta and can subsequently be retrieved via the fetch-data REST API endpoint. Notably, the CheckForm class in the same plugin implements proper path validation using realpath() and directory restriction, demonstrating that the developer was aware of the risk but failed to apply the same protections to the TemplateData endpoint.

References

Share

Vulnerability Details for EmailKit – Email Customizer for WooCommerce & WP

Software Type Plugin
Software Slug emailkit (view on wordpress.org)
Patched? Yes
Remediation Update to version 1.6.4, or a newer patched version
Affected Version
  • <= 1.6.3
Patched Version
  • 1.6.4

Recent vulnerabilities in EmailKit – Email Customizer for WooCommerce & WP

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation