CVE-2026-5957
Last modified
CVE-2026-5957 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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. EPSS estimates a 0.57% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-5957?
How severe is CVE-2026-5957?
How do I fix CVE-2026-5957?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-59555Unauthenticated Arbitrary File Deletion in Participants Data…10
- CVE-2026-59556Unauthenticated Cross Site Scripting (XSS) in Dynamic Pricin…7.1
- CVE-2026-59557Unauthenticated Broken Access Control in Events Made Easy <=…6.5
- CVE-2026-59558Unauthenticated Cross Site Scripting (XSS) in Booking Calend…7.1
- CVE-2026-59559Subscriber Cross Site Scripting (XSS) in RT Mega Menu – Mega…6.5
- CVE-2026-59560Subscriber Broken Access Control in FundEngine <= 1.7.8 vers…6.5
- CVE-2026-5958When sed is invoked with both -i (in-place edit) and --follo…2.1
- CVE-2026-5959A security flaw has been discovered in GL.iNet GL-RM1, GL-RM…7.5
- CVE-2026-5960A weakness has been identified in code-projects Patient Reco…4.3
- CVE-2026-5961A security vulnerability has been detected in code-projects …7.3
- CVE-2026-5962A vulnerability was detected in Tenda CH22 1.0.0.6(468). Thi…9.8
- CVE-2026-5963EasyFlow .NET developed by Digiwin has a SQL Injection vulne…9.8
Are you affected by CVE-2026-5957?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
