CVE-2026-5957: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in roxnor EmailKit – Email Customizer for WooCommerce & WP
The EmailKit plugin for WordPress is vulnerable to Arbitrary File Read in all versions up to and including 1.6.5. This is due to a flawed path traversal validation in the create_template() method of the CheckForm class, where realpath() is called on the allowed base directory (wp-content/uploads/emailkit/templates/) which may not exist, causing it to return false. In PHP 8.x, strpos($real_path, false) implicitly converts false to an empty string, and strpos() with an empty needle always returns 0, causing the check strpos(...) !== 0 to evaluate to false and bypassing the path validation entirely. This makes it possible for authenticated attackers, with Author-level access and above, to read arbitrary files from the server, including sensitive files such as wp-config.php, by supplying an absolute path to the emailkit-editor-template REST API parameter.
AI Analysis
Technical Summary
The EmailKit – Email Customizer for WooCommerce & WP plugin suffers from a CWE-22 path traversal vulnerability due to improper validation of file paths in the create_template() method of the CheckForm class. The validation uses realpath() on a base directory that may not exist, causing it to return false. In PHP 8.x, strpos() behavior with false leads to the path validation check being bypassed. Authenticated users with Author-level privileges can exploit this to read arbitrary files on the server by providing absolute file paths to the emailkit-editor-template REST API parameter. This vulnerability affects all versions up to and including 1.6.5.
Potential Impact
An attacker with Author-level access or higher can read arbitrary files on the server, including sensitive configuration files like wp-config.php. This can lead to disclosure of sensitive information such as database credentials, potentially facilitating further attacks. The vulnerability does not allow code execution or denial of service but compromises confidentiality.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided at this time. Until a patch is available, restrict Author-level access to trusted users only and monitor for suspicious activity related to the emailkit-editor-template REST API. Avoid running the plugin on PHP 8.x environments if possible, as the vulnerability specifically exploits PHP 8.x behavior.
CVE-2026-5957: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in roxnor EmailKit – Email Customizer for WooCommerce & WP
Description
The EmailKit plugin for WordPress is vulnerable to Arbitrary File Read in all versions up to and including 1.6.5. This is due to a flawed path traversal validation in the create_template() method of the CheckForm class, where realpath() is called on the allowed base directory (wp-content/uploads/emailkit/templates/) which may not exist, causing it to return false. In PHP 8.x, strpos($real_path, false) implicitly converts false to an empty string, and strpos() with an empty needle always returns 0, causing the check strpos(...) !== 0 to evaluate to false and bypassing the path validation entirely. This makes it possible for authenticated attackers, with Author-level access and above, to read arbitrary files from the server, including sensitive files such as wp-config.php, by supplying an absolute path to the emailkit-editor-template REST API parameter.
CVSS v3.1
Score 6.5medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The EmailKit – Email Customizer for WooCommerce & WP plugin suffers from a CWE-22 path traversal vulnerability due to improper validation of file paths in the create_template() method of the CheckForm class. The validation uses realpath() on a base directory that may not exist, causing it to return false. In PHP 8.x, strpos() behavior with false leads to the path validation check being bypassed. Authenticated users with Author-level privileges can exploit this to read arbitrary files on the server by providing absolute file paths to the emailkit-editor-template REST API parameter. This vulnerability affects all versions up to and including 1.6.5.
Potential Impact
An attacker with Author-level access or higher can read arbitrary files on the server, including sensitive configuration files like wp-config.php. This can lead to disclosure of sensitive information such as database credentials, potentially facilitating further attacks. The vulnerability does not allow code execution or denial of service but compromises confidentiality.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided at this time. Until a patch is available, restrict Author-level access to trusted users only and monitor for suspicious activity related to the emailkit-editor-template REST API. Avoid running the plugin on PHP 8.x environments if possible, as the vulnerability specifically exploits PHP 8.x behavior.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-04-09T09:01:29.056Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69f96cc0cbff5d86109c3922
Added to database: 5/5/2026, 4:06:24 AM
Last enriched: 5/12/2026, 6:18:47 AM
Last updated: 6/19/2026, 3:49:47 PM
Views: 77
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.