The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-5957

CVE-2026-5957: EmailKit WordPress Path Traversal Flaw

CVE-2026-5957 is a path traversal vulnerability in the EmailKit WordPress plugin allowing authenticated attackers to read arbitrary files. This article covers technical details, affected versions, and mitigation steps.

Published: May 7, 2026

CVE-2026-5957 Overview

CVE-2026-5957 is an arbitrary file read vulnerability in the EmailKit plugin for WordPress, affecting all versions up to and including 1.6.5. The flaw resides in the create_template() method of the CheckForm class, where path traversal validation fails due to a PHP 8.x type coercion edge case. Authenticated attackers with Author-level access or higher can read arbitrary files from the server, including sensitive configuration files such as wp-config.php. The vulnerability is classified under [CWE-22] (Improper Limitation of a Pathname to a Restricted Directory).

Critical Impact

Authenticated attackers with Author-level privileges can exfiltrate wp-config.php and other sensitive server files, exposing database credentials, authentication keys, and salts.

Affected Products

  • EmailKit plugin for WordPress, versions up to and including 1.6.5
  • WordPress installations running PHP 8.x with the vulnerable plugin
  • Sites where users with Author-level access or above are provisioned

Discovery Timeline

  • 2026-05-05 - CVE CVE-2026-5957 published to NVD
  • 2026-05-05 - Last updated in NVD database

Technical Details for CVE-2026-5957

Vulnerability Analysis

The vulnerability stems from a logic flaw in path traversal validation within the create_template() method. The plugin attempts to confine template file reads to the wp-content/uploads/emailkit/templates/ directory using realpath() and a strpos() prefix check. However, the validation collapses when the base directory does not exist on disk.

The emailkit-editor-template REST API parameter accepts a file path that the plugin resolves and validates before reading. When validation is bypassed, the supplied path is passed directly to a file read operation, returning the file contents in the API response. An attacker supplying an absolute path such as /var/www/html/wp-config.php retrieves the file contents directly.

This exposes WordPress secrets including DB_PASSWORD, AUTH_KEY, SECURE_AUTH_KEY, and other constants required for authentication forgery and database compromise.

Root Cause

The root cause is a PHP 8.x type juggling issue combined with missing existence checks on the allowed base directory. When realpath() is called on wp-content/uploads/emailkit/templates/ and that directory does not exist, realpath() returns false. The subsequent check strpos($real_path, false) !== 0 triggers PHP's implicit conversion of false to an empty string. Because strpos() with an empty needle always returns 0, the inequality evaluates to false, allowing the supplied path through. The validator effectively short-circuits whenever the templates directory is missing, which is common on fresh installs or sites that have never created an EmailKit template.

Attack Vector

Exploitation requires authenticated access at the Author role or higher, which is reachable on sites that allow user registration or contributor onboarding. The attacker sends a crafted REST API request with the emailkit-editor-template parameter set to an absolute filesystem path. The plugin resolves the path, fails the broken validation check, and returns the file contents in the response body. No user interaction is required beyond the initial authenticated request, and the attack is performed entirely over the network.

The vulnerability mechanism is documented in the WordPress Plugin Source - CheckForm.php Line 163 and the corrective patch in the WordPress Code Changeset. See the Wordfence Vulnerability Report for additional technical context.

Detection Methods for CVE-2026-5957

Indicators of Compromise

  • REST API requests to endpoints handled by the EmailKit CheckForm controller containing the emailkit-editor-template parameter with absolute paths such as /etc/passwd or paths ending in wp-config.php.
  • HTTP request bodies containing path traversal sequences (../) or absolute filesystem prefixes (/var/, /home/, C:\) targeting EmailKit endpoints.
  • Unusual outbound responses from EmailKit REST routes returning large payloads consistent with sensitive file contents.
  • Authenticated sessions belonging to Author-level accounts that suddenly issue template-related API calls.

Detection Strategies

  • Inspect web server access logs for requests to /wp-json/ routes registered by EmailKit, filtering for the emailkit-editor-template parameter.
  • Deploy WordPress audit logging to track Author-level account activity and REST API usage patterns.
  • Use WAF rules to flag REST API requests carrying absolute path values or path traversal payloads in plugin parameters.
  • Correlate plugin REST API errors and 200-OK responses with anomalous response sizes that may indicate file exfiltration.

Monitoring Recommendations

  • Forward WordPress and web server logs to a centralized SIEM and alert on EmailKit REST endpoint access by non-administrative users.
  • Monitor for the creation of new Author-level accounts followed shortly by EmailKit API calls.
  • Track filesystem reads of wp-config.php performed by the PHP-FPM process outside of WordPress bootstrap windows.

How to Mitigate CVE-2026-5957

Immediate Actions Required

  • Update the EmailKit plugin to a version above 1.6.5 that includes the fix referenced in the WordPress Code Changeset.
  • Audit Author-level and higher accounts and remove any unrecognized or stale users.
  • Rotate all secrets stored in wp-config.php, including database credentials and WordPress authentication keys and salts, if exploitation is suspected.
  • Review WordPress and web server logs for prior EmailKit REST API requests carrying absolute paths.

Patch Information

The vendor addressed the vulnerability in a release succeeding 1.6.5. The fix corrects the path validation logic so that a missing base directory no longer collapses the strpos() comparison to 0. Administrators should apply the update through the WordPress plugin manager or replace the plugin files manually using the patched source from the trunk branch.

Workarounds

  • Deactivate and remove the EmailKit plugin until the patched version is applied.
  • Restrict Author-level and higher role assignments to trusted users only and disable open user registration.
  • Deploy a WAF rule that blocks REST API requests to EmailKit endpoints containing absolute paths or ../ sequences.
  • Ensure the wp-content/uploads/emailkit/templates/ directory exists with correct permissions, which prevents the specific realpath() failure condition while a patch is pending.
bash
# Example WAF rule pseudocode to block absolute path values targeting EmailKit
SecRule REQUEST_URI "@contains /wp-json/emailkit" "chain,deny,status:403,id:1026957"
  SecRule ARGS:emailkit-editor-template "@rx ^(/|[A-Za-z]:\\\\|\.\./)"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechWordpress

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • WordPress Plugin Code Snippet

  • WordPress Plugin Code Snippet

  • WordPress Plugin Code Snippet

  • WordPress Plugin Code Snippet

  • WordPress Plugin Code Snippet

  • WordPress Plugin Code Snippet

  • WordPress Plugin Code Snippet

  • WordPress Plugin Code Snippet

  • WordPress Code Changeset

  • Wordfence Vulnerability Report
  • Related CVEs
  • CVE-2026-6320: Salon Booking System Path Traversal Flaw

  • CVE-2026-1921: Loco Translate Path Traversal Vulnerability

  • CVE-2025-47670: miniOrange WordPress Plugin LFI Vulnerability

  • CVE-2025-32629: WP-BusinessDirectory Path Traversal Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English