A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-5714

CVE-2026-5714: Enable Media Replace Plugin XSS Flaw

CVE-2026-5714 is a stored cross-site scripting vulnerability in the Enable Media Replace plugin for WordPress. Attackers with Author-level access can inject malicious scripts. This article covers technical details, affected versions, and mitigation.

Published: June 11, 2026

CVE-2026-5714 Overview

CVE-2026-5714 is a Stored Cross-Site Scripting (XSS) vulnerability in the Enable Media Replace plugin for WordPress. The flaw affects all versions up to and including 4.1.8. The vulnerability stems from insufficient input sanitization and output escaping on the location_dir parameter. Authenticated attackers with Author-level access or higher can inject arbitrary JavaScript that executes when users visit affected pages. The vulnerability is classified under [CWE-79] Improper Neutralization of Input During Web Page Generation.

Critical Impact

Authenticated attackers with Author-level privileges can inject persistent JavaScript payloads that execute in the context of any user viewing the affected page, enabling session theft, administrative action hijacking, and site defacement.

Affected Products

  • Enable Media Replace plugin for WordPress, all versions through 4.1.8
  • WordPress installations that grant Author-level or higher access to untrusted users
  • Sites running the vulnerable UploadViewController.php and screen.php components

Discovery Timeline

  • 2026-06-09 - CVE-2026-5714 published to NVD
  • 2026-06-09 - Last updated in NVD database

Technical Details for CVE-2026-5714

Vulnerability Analysis

The Enable Media Replace plugin processes the location_dir parameter without applying adequate sanitization before storing the value. When the stored data is later rendered, output escaping is also absent, allowing raw HTML and JavaScript to reach the browser. The vulnerable code paths reside in classes/ViewController/UploadViewController.php and views/screen.php, as documented in the WordPress Plugin Code View.

Because the injected payload persists in the database, every subsequent visitor to the affected page triggers execution. The scope is changed (S:C in the CVSS vector), meaning the injected script can affect resources beyond the vulnerable component, including administrator sessions.

Root Cause

The root cause is missing input validation on the location_dir request parameter combined with missing output escaping when the value is rendered in the upload screen template. Standard WordPress sanitization functions such as sanitize_text_field() and escaping helpers like esc_attr() or esc_html() are not applied at the relevant code locations referenced in the Wordfence Vulnerability Report.

Attack Vector

An authenticated attacker with Author-level access submits a crafted location_dir value containing JavaScript through the plugin's upload workflow. The payload is stored and later reflected into the page DOM without escaping. When an administrator or another user visits the page, the script executes with that user's privileges, enabling actions such as creating administrator accounts, exfiltrating nonces, or modifying site content. The vulnerability manifests in the rendering path documented in the screen.php source.

Detection Methods for CVE-2026-5714

Indicators of Compromise

  • Unexpected <script> tags, event handlers, or encoded JavaScript stored in posts, pages, or plugin-related metadata
  • HTTP POST requests containing JavaScript syntax in the location_dir parameter to Enable Media Replace endpoints
  • Creation of new administrator accounts or modified user roles following Author-level activity
  • Outbound requests from administrator browsers to unfamiliar domains immediately after viewing media replace pages

Detection Strategies

  • Review WordPress access logs for requests to enable-media-replace endpoints containing suspicious location_dir values
  • Audit the wp_posts and wp_postmeta tables for stored content containing <script>, onerror=, onload=, or javascript: strings
  • Monitor for Author-level accounts performing media replacement operations followed by privilege changes

Monitoring Recommendations

  • Enable WordPress audit logging to capture parameter values submitted to plugin endpoints
  • Deploy a Web Application Firewall with rules targeting XSS patterns in plugin parameters
  • Alert on any modification of administrator accounts originating from Author-level sessions
  • Track plugin version inventory to identify hosts still running Enable Media Replace 4.1.8 or earlier

How to Mitigate CVE-2026-5714

Immediate Actions Required

  • Update the Enable Media Replace plugin to a version above 4.1.8 once the vendor releases a fix
  • Audit all Author-level and higher accounts and remove any that are unnecessary or unrecognized
  • Inspect existing posts and pages for injected scripts and remove malicious content
  • Rotate session tokens and administrator passwords if Author-level accounts show suspicious activity

Patch Information

At the time of publication, the Wordfence Vulnerability Report identifies all versions through 4.1.8 as vulnerable. Site operators should monitor the official plugin repository for a patched release and apply it immediately when available.

Workarounds

  • Deactivate the Enable Media Replace plugin until a patched version is published
  • Restrict the Author role and above to trusted users only, minimizing the pool of accounts that can exploit the flaw
  • Deploy WAF rules that block JavaScript-like patterns submitted to the location_dir parameter
  • Apply Content Security Policy headers that disallow inline script execution to limit payload impact
bash
# Example WAF rule pattern (ModSecurity) to block script payloads in location_dir
SecRule ARGS:location_dir "@rx (?i)(<script|javascript:|onerror=|onload=)" \
  "id:1026571,phase:2,deny,status:403,log,msg:'CVE-2026-5714 XSS attempt in location_dir'"

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechWordpress

  • SeverityMEDIUM

  • CVSS Score6.4

  • EPSS Probability0.03%

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

  • WordPress Plugin Code View

  • Wordfence Vulnerability Report
  • Related CVEs
  • CVE-2026-2827: WordPress Open User Map PRO XSS Flaw

  • CVE-2026-9060: Store Locator WordPress Plugin XSS Flaw

  • CVE-2026-8853: MW WP Form WordPress Plugin XSS Flaw

  • CVE-2025-8444: Elementor Animation Addons XSS Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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