EmailKit WordPress Plugin Path Traversal Vulnerability Allowing Arbitrary File Read

Vulnerability

A path traversal vulnerability allowing arbitrary file read has been identified in the EmailKit plugin for WordPress, affecting all versions through 1.6.5. The issue arises in the create_template() method of the CheckForm class, where the realpath() function is used on a potentially non-existent directory. This flaw is exploited in PHP 8.x, where false is converted to an empty string, bypassing path validation. As a result, authenticated attackers with Author-level access can read sensitive files, such as wp-config.php, by providing an absolute path through the emailkit-editor-template REST API parameter.

Impact

Exploitation of this vulnerability allows authenticated users with Author-level access to read arbitrary files from the server, including sensitive configuration files.

Reproduction

To reproduce this vulnerability, an authenticated user with Author-level access can send a request to the emailkit-editor-template REST API parameter with an absolute path to a file on the server. The path traversal validation will be bypassed, allowing access to the specified file.

Remediation

Users are advised to update the EmailKit plugin to version 1.6.6 or later, where this vulnerability has been patched.

Added: May 5, 2026, 4:28 AM
Updated: May 5, 2026, 4:28 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
5.8
remediation
0.0
relevance
7.2
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.