Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-4068

CVE-2026-4068: WordPress Media Plugin CSRF Vulnerability

CVE-2026-4068 is a Cross-Site Request Forgery flaw in the Add Custom Fields to Media plugin for WordPress that allows attackers to delete custom media fields. This post covers technical details, affected versions, and mitigation.

Published: March 20, 2026

CVE-2026-4068 Overview

The Add Custom Fields to Media plugin for WordPress contains a Cross-Site Request Forgery (CSRF) vulnerability affecting all versions up to and including 2.0.3. The vulnerability stems from missing nonce validation on the field deletion functionality within the admin display template. While the plugin correctly validates a nonce for the 'add field' operation, the 'delete field' operation processes the $_GET['delete'] parameter and calls update_option() without any nonce verification. This security gap enables unauthenticated attackers to delete arbitrary custom media fields through forged requests, provided they can trick a site administrator into clicking a malicious link.

Critical Impact

Unauthenticated attackers can delete custom media field configurations by crafting malicious URLs that execute when an authenticated administrator clicks on them, potentially disrupting media library functionality and site operations.

Affected Products

  • Add Custom Fields to Media plugin for WordPress version 2.0.3 and earlier

Discovery Timeline

  • 2026-03-19 - CVE CVE-2026-4068 published to NVD
  • 2026-03-19 - Last updated in NVD database

Technical Details for CVE-2026-4068

Vulnerability Analysis

This Cross-Site Request Forgery vulnerability exists due to inconsistent security controls within the plugin's admin interface. The developers implemented proper nonce validation for the field creation functionality (lines 24-36 of the admin display template), demonstrating awareness of CSRF protection requirements. However, this same protection was not applied to the field deletion functionality (lines 38-49), creating an exploitable security gap.

The vulnerable code path processes the $_GET['delete'] parameter directly without verifying that the request originated from a legitimate administrator action. When this parameter is present in a request, the plugin proceeds to call update_option() to remove the specified custom field configuration. Since no nonce is checked, any crafted URL containing the appropriate delete parameter will be processed if accessed by an authenticated administrator.

The attack requires social engineering to succeed, as the attacker must convince an administrator to click a malicious link while authenticated to WordPress. However, this is a common attack vector that can be executed through phishing emails, forum posts, or embedded links on compromised websites.

Root Cause

The root cause is the absence of nonce validation in the delete field operation handler. WordPress provides the wp_nonce_field() and wp_verify_nonce() functions specifically to prevent CSRF attacks, but these protections were not implemented for the deletion functionality. This represents an incomplete security implementation where one operation was protected while a similar operation was left vulnerable.

Attack Vector

An attacker exploits this vulnerability by constructing a malicious URL containing the delete GET parameter pointing to the target custom field. The attacker then uses social engineering techniques to deliver this link to a WordPress administrator. When the administrator clicks the link while authenticated to the WordPress admin panel, their browser automatically includes session cookies, causing the plugin to process the deletion request as if it were a legitimate administrative action. The custom field configuration is then removed from the WordPress options table via the unprotected update_option() call.

Detection Methods for CVE-2026-4068

Indicators of Compromise

  • Unexpected deletions of custom media fields without corresponding administrator activity
  • Web server access logs showing GET requests to the plugin's admin page with delete parameters from external referrers
  • Sudden loss of custom field metadata on media library items
  • Administrator reports of clicking links that redirected to the WordPress admin area

Detection Strategies

  • Monitor WordPress options table for unexpected modifications to custom field configurations
  • Implement logging for administrative plugin actions to track field deletions
  • Review web server logs for requests containing suspicious delete parameters with external referrer headers
  • Deploy Web Application Firewall (WAF) rules to detect potential CSRF attack patterns

Monitoring Recommendations

  • Enable WordPress audit logging plugins to capture all administrative changes
  • Configure alerts for modifications to plugin settings outside of normal business hours
  • Monitor for phishing attempts targeting WordPress administrators
  • Regularly review custom field configurations to detect unauthorized changes

How to Mitigate CVE-2026-4068

Immediate Actions Required

  • Update the Add Custom Fields to Media plugin to a version newer than 2.0.3 that includes CSRF protection
  • Review recent custom field deletions to identify any potentially unauthorized changes
  • Educate WordPress administrators about phishing risks and suspicious link awareness
  • Consider temporarily disabling the plugin until a patched version is installed

Patch Information

The vulnerability has been addressed in versions newer than 2.0.3. The fix involves adding nonce verification to the field deletion operation, ensuring that delete requests contain a valid WordPress nonce that can only be generated by legitimate admin page loads. Review the WordPress Plugin Changeset for technical details on the security fix. Additional vulnerability analysis is available from Wordfence.

Workarounds

  • Restrict access to the WordPress admin panel to trusted IP addresses only
  • Implement a Web Application Firewall with CSRF protection rules
  • Use browser extensions that warn administrators about suspicious outbound requests
  • Configure Content Security Policy headers to limit form submission targets
bash
# Example: Restrict WordPress admin access by IP in .htaccess
<Files wp-login.php>
    Order Deny,Allow
    Deny from all
    Allow from 192.168.1.0/24
    Allow from 10.0.0.0/8
</Files>

<Directory "/var/www/html/wp-admin">
    Order Deny,Allow
    Deny from all
    Allow from 192.168.1.0/24
    Allow from 10.0.0.0/8
</Directory>

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

  • Vulnerability Details
  • TypeCSRF

  • Vendor/TechWordpress

  • SeverityMEDIUM

  • CVSS Score4.3

  • EPSS Probability0.01%

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

  • WordPress Plugin Code Snippet

  • WordPress Plugin Development Code

  • WordPress Plugin Development Code

  • WordPress Plugin Changeset

  • Wordfence Vulnerability Analysis
  • Related CVEs
  • CVE-2025-39417: WordPress Redirect Plugin CSRF Vulnerability

  • CVE-2026-6451: WordPress CMS für Motorrad Plugin CSRF Flaw

  • CVE-2026-6396: WordPress 3F Plugin CSRF Vulnerability

  • CVE-2026-4131: WP Responsive Popup + Optin CSRF Vulnerability
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