CVE-2026-5957
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThe 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe EmailKit WordPress plugin versions up to 1.6.5 contain an arbitrary file read vulnerability due to flawed path traversal validation in the create_template() method. The vulnerability stems from realpath() being called on a base directory that may not exist, returning false. In PHP 8.x, strpos($real_path, false) implicitly converts false to an empty string, and since strpos() with an empty needle returns 0, the check strpos(...) !== 0 evaluates to false, bypassing the path validation entirely. Authenticated attackers with Author-level access can read arbitrary files including wp-config.php via the emailkit-editor-template REST API parameter.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- 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
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify EmailKit plugin versionNavigate to WordPress admin > Plugins > Installed Plugins > EmailKit and read the Version field. Alternatively, inspect the plugin header in /wp-content/plugins/emailkit/emailkit.php for 'Version:' value.Affected if The installed version is 1.6.5 or any earlier version.
-
Verify REST API endpoint existsCheck if the emailkit-editor-template REST API route is registered by visiting /wp-json/wp/v2/routes or inspecting the plugin's REST API initialization code in the emailkit plugin directory.Affected if The endpoint is registered and accessible without additional restrictions.
-
Confirm Author-level or higher user roles existIn WordPress admin, go to Users and review user roles. Check wp_usermeta table or user capabilities to identify accounts with 'edit_posts' capability (Author role) or higher.Affected if Any user account has Author-level permissions or above.
-
Check for path traversal access to sensitive filesIf the plugin is vulnerable, attempt a controlled test read of a non-sensitive file using the create_template() parameter with paths like ../../wp-config.php. Inspect server logs for successful file reads.Affected if The plugin allows reading files outside the intended template directory via path traversal sequences.
You are affected if EmailKit plugin version 1.6.5 or earlier is installed, the REST API endpoint is exposed, and at least one user with Author-level or higher privileges exists in the WordPress installation.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpdate EmailKit plugin to a version beyond 1.6.5 when available, or implement proper path validation that checks file existence and validates paths against the base directory before allowing file access.
EmailKit version higher than 1.6.5 (latest version available from WordPress plugin repository)
- 1. Identify the currently installed EmailKit plugin version in WordPress admin under Plugins > Installed Plugins
- 2. Check if the installed version is 1.6.5 or lower
- 3. Navigate to Plugins > Add New > Upload Plugin (or check WordPress repository for an update)
- 4. Update to the latest available version of EmailKit (version higher than 1.6.5)
- 5. Verify the update was successful by confirming the new version number
- 6. Test that the emailkit-editor-template REST API endpoint properly validates paths and blocks directory traversal attempts
- 7. Consider reviewing server access logs for any signs of exploitation attempts targeting the vulnerable endpoint
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation4.0 h
- Testing5.0 h
- Review / QA3.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,176.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-5957 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-5957 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data