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-3772

CVE-2026-3772: WP Editor Plugin CSRF Vulnerability

CVE-2026-3772 is a Cross-Site Request Forgery flaw in the WP Editor plugin for WordPress that allows attackers to overwrite plugin and theme files. This article covers the technical details, affected versions, and mitigation.

Published: May 7, 2026

CVE-2026-3772 Overview

CVE-2026-3772 is a Cross-Site Request Forgery (CSRF) vulnerability affecting the WP Editor plugin for WordPress in all versions up to and including 1.2.9.2. The flaw exists in the add_plugins_page and add_themes_page functions, which lack nonce verification before processing file modification requests. An unauthenticated attacker who tricks a site administrator into clicking a crafted link can overwrite arbitrary plugin and theme PHP files with attacker-controlled code. Successful exploitation leads to arbitrary PHP code execution on the affected WordPress site, enabling full site compromise. The issue is tracked under CWE-352: Cross-Site Request Forgery.

Critical Impact

Attackers can overwrite plugin and theme PHP files with malicious code by tricking an administrator into clicking a forged request, resulting in remote code execution and full site takeover.

Affected Products

  • WP Editor plugin for WordPress, all versions up to and including 1.2.9.2
  • WordPress sites with an authenticated administrator session active in the browser
  • Sites that have not applied the fix introduced in WordPress Changeset #3480577

Discovery Timeline

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

Technical Details for CVE-2026-3772

Vulnerability Analysis

The WP Editor plugin provides administrators with an in-dashboard editor for plugin and theme PHP files. The add_plugins_page function in WPEditorPlugins.php and the add_themes_page function in WPEditorThemes.php accept POST data containing a target file path and replacement file contents, then write the supplied content directly to disk.

Neither function calls wp_verify_nonce() or check_admin_referer() before performing the write. WordPress relies on nonce tokens to prove that a state-changing request originated from an intentional administrator action. Without that check, the request is processed solely on the basis of the administrator's session cookie, which the browser attaches automatically to any cross-origin request.

An attacker hosts a page or comment containing a hidden form or fetch() call targeting the vulnerable endpoint. When an authenticated administrator visits the attacker's content, the browser submits the forged request and the plugin overwrites the targeted PHP file. Because the written content is executed by the WordPress runtime, the attacker gains arbitrary code execution under the web server account.

Root Cause

The root cause is missing CSRF protection [CWE-352] on file write handlers. The vulnerable functions trust the request because the user is authenticated, but they do not validate that the user intentionally initiated the request. See the vulnerable handlers in WPEditorPlugins.php line 60 and WPEditorThemes.php line 103.

Attack Vector

Exploitation is network-based and requires user interaction. The attacker crafts a malicious page that auto-submits a POST request to /wp-admin/admin.php with parameters targeting the WP Editor save handler. The attacker delivers the link through phishing, a comment, or a third-party site visited by an administrator. No attacker authentication is required.

The vulnerability is described in prose only because no public proof-of-concept code has been verified. Refer to the Wordfence Vulnerability Analysis for additional technical context.

Detection Methods for CVE-2026-3772

Indicators of Compromise

  • Recent modification timestamps on PHP files inside wp-content/plugins/ or wp-content/themes/ directories that do not match a known update window.
  • Unexpected PHP code such as eval(), base64_decode(), assert(), or outbound file_get_contents() calls inserted into legitimate plugin or theme files.
  • Web server access log entries showing POST requests to wp-admin/admin.php with page=wp-editor parameters originating from an external Referer header.
  • New administrator accounts, scheduled tasks, or cron jobs created shortly after a suspicious POST to the WP Editor endpoint.

Detection Strategies

  • Compare on-disk plugin and theme files against the official distribution checksums to identify unauthorized modifications.
  • Alert on POST requests to WP Editor endpoints where the HTTP Referer header is missing or points to an external domain.
  • Monitor file integrity on wp-content/plugins/ and wp-content/themes/ and treat any change outside an approved maintenance window as suspicious.

Monitoring Recommendations

  • Forward WordPress access logs and PHP error logs into a centralized SIEM for correlation against administrator session activity.
  • Track administrator browser sessions for cross-site POST submissions to admin endpoints.
  • Review newly created or modified PHP files daily and validate them against version control or backup baselines.

How to Mitigate CVE-2026-3772

Immediate Actions Required

  • Deactivate and remove the WP Editor plugin on any site running version 1.2.9.2 or earlier until a patched version is installed.
  • Audit all plugin and theme PHP files for unauthorized modifications and restore from a known-good backup if tampering is found.
  • Force a password reset for all administrator accounts and invalidate active sessions to terminate any hijacked nonce-less request capability.
  • Restrict access to /wp-admin/ by IP address or VPN where operationally feasible to reduce exposure to forged requests.

Patch Information

The vendor addressed the missing nonce checks in WordPress Changeset #3480577. Update WP Editor to a version released after this changeset. Verify the installed version in the WordPress plugin management dashboard after applying the update.

Workarounds

  • Remove the WP Editor plugin entirely if it is not actively used; the built-in WordPress file editor can be disabled by setting DISALLOW_FILE_EDIT to true in wp-config.php.
  • Deploy a Web Application Firewall (WAF) rule that requires a valid Referer matching the site's own domain on POST requests to /wp-admin/admin.php?page=wp-editor*.
  • Train administrators to avoid clicking unsolicited links while logged into the WordPress dashboard and use a separate browser profile for administrative tasks.
bash
# Disable file editing in WordPress as a defense-in-depth measure
# Add to wp-config.php
define('DISALLOW_FILE_EDIT', true);
define('DISALLOW_FILE_MODS', true);

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

  • Vulnerability Details
  • TypeCSRF

  • Vendor/TechWordpress

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-352
  • Technical References
  • WordPress Plugin Code Reference

  • WordPress Theme Code Reference

  • WordPress Changeset #3480577

  • Wordfence Vulnerability Analysis
  • Related CVEs
  • CVE-2026-6701: WordPress addfreespace Plugin CSRF Flaw

  • CVE-2026-6702: WordPress Publish 2 Ping.fm CSRF Vulnerability

  • CVE-2026-6700: DX Sources WordPress Plugin CSRF Flaw

  • CVE-2026-3140: WordPress Ultimate Dashboard CSRF 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