Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.4%top 65%

CVE-2026-5957: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in roxnor EmailKit – Email Customizer for WooCommerce & WP

0
Medium
VulnerabilityCVE-2026-5957cvecve-2026-5957cwe-22
Published: Tue May 05 2026 (05/05/2026, 03:37:38 UTC)
Source: CVE Database V5
Vendor/Project: roxnor
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected software

Affected versions
=0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/12/2026, 06:18:47 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses