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

CVE-2026-5293: WordPress Diagnosis Generator XSS Flaw

CVE-2026-5293 is a stored cross-site scripting vulnerability in the WordPress Diagnosis Generator plugin that allows authenticated attackers to inject malicious scripts. This article covers technical details, affected versions, and mitigation.

Published: May 21, 2026

CVE-2026-5293 Overview

The 診断ジェネレータ作成プラグイン (Diagnosis Generator) plugin for WordPress contains a stored Cross-Site Scripting (XSS) vulnerability affecting versions up to and including 1.4.16. The flaw resides in the themeFunc() function, which is hooked to admin_init but fails to verify user capabilities before processing theme update requests. Authenticated attackers with subscriber-level access can inject arbitrary JavaScript into theme files. The malicious script executes whenever any user loads a page containing the diagnosis form shortcode, enabling session theft, privilege escalation, and site defacement. The vulnerability is tracked as [CWE-79] Improper Neutralization of Input During Web Page Generation.

Critical Impact

Subscriber-level users can store persistent JavaScript in theme files that executes against every visitor rendering the diagnosis form.

Affected Products

  • WordPress 診断ジェネレータ作成プラグイン (Diagnosis Generator / os-diagnosis-generator) plugin, all versions through 1.4.16
  • WordPress sites using the diagnosis form shortcode
  • Any environment permitting subscriber-level user registration with the plugin installed

Discovery Timeline

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

Technical Details for CVE-2026-5293

Vulnerability Analysis

The vulnerability is a stored XSS issue rooted in two compounding defects within the plugin. First, the themeFunc() function registered against the admin_init hook processes theme update requests without invoking WordPress capability checks such as current_user_can(). Because admin_init fires for any authenticated user accessing /wp-admin/, including subscribers, low-privileged accounts can reach the handler. Second, the save() function applies stripslashes() to incoming data, which strips WordPress magic quotes protection and permits raw script payloads to reach the theme file write routine.

The written content is later included by the rendering path in user-viewFormPage.php when a visitor accesses any page containing the diagnosis form shortcode. The script executes in the browser of every visitor, including administrators. Because the scope of the CVSS metric is Changed, the injected script can act against resources beyond the plugin's own security boundary, such as the wider WordPress admin session.

Root Cause

The root cause is missing authorization combined with insufficient input sanitization. The themeFunc() handler omits capability verification, and save() actively removes escaping via stripslashes() before writing user-controlled data to a theme file consumed at render time.

Attack Vector

The attack is remote and requires only a subscriber account. The attacker submits a crafted request containing JavaScript in the js parameter to the admin endpoint serviced by themeFunc(). The payload is persisted into a theme file. Any subsequent visitor — authenticated or anonymous — loading a page containing the diagnosis form shortcode triggers execution of the stored script.

No verified public exploit code is available. Refer to the Wordfence Vulnerability Analysis and the vulnerable themeClass.php source for technical details on the affected code paths.

Detection Methods for CVE-2026-5293

Indicators of Compromise

  • Unexpected <script> tags or JavaScript content inside theme files associated with the os-diagnosis-generator plugin
  • POST requests to wp-admin/ endpoints containing a js parameter originating from subscriber-level accounts
  • New or modified theme files with timestamps coinciding with low-privilege user logins
  • Outbound browser requests from site visitors to unfamiliar domains after loading pages with the diagnosis form shortcode

Detection Strategies

  • Perform integrity monitoring on plugin and theme directories under wp-content/ to detect unauthorized file writes
  • Inspect WordPress access logs for admin-ajax.php or admin_init-triggered requests from subscriber accounts containing script-like payloads
  • Scan rendered output of pages using the diagnosis form shortcode for injected <script> content not present in known-good baselines
  • Review the wp_users table for recently registered subscriber accounts that subsequently issued POST requests to admin endpoints

Monitoring Recommendations

  • Enable WordPress audit logging to capture all theme and plugin file modifications with associated user identity
  • Alert on any non-administrator user successfully invoking theme update functionality
  • Monitor for outbound HTTP requests from rendered WordPress pages to domains outside the established allowlist
  • Track creation of new subscriber accounts followed by activity against /wp-admin/ endpoints within a short window

How to Mitigate CVE-2026-5293

Immediate Actions Required

  • Deactivate the 診断ジェネレータ作成プラグイン (Diagnosis Generator) plugin until a patched version is installed
  • Audit theme files for injected JavaScript and restore from a known-good backup if tampering is found
  • Review and remove unrecognized subscriber-level accounts created on affected sites
  • Force password resets for administrators who accessed the site while the plugin was active

Patch Information

At the time of publication, all versions up to and including 1.4.16 are affected. Site operators should monitor the WordPress plugin repository for a fixed release that adds capability checks to themeFunc() and removes the stripslashes() call in save() while properly sanitizing the js parameter.

Workarounds

  • Disable open user registration or restrict the subscriber role from accessing /wp-admin/ using a security plugin or web server rules
  • Remove pages containing the diagnosis form shortcode from public-facing sections of the site until patched
  • Apply a Web Application Firewall (WAF) rule blocking POST requests to admin endpoints that contain <script or JavaScript event handlers in the js parameter
  • Set theme directory permissions to read-only for the web server user where operationally feasible
bash
# Configuration example: Apache rule restricting wp-admin access to administrators by IP
<Directory "/var/www/html/wp-admin">
    Require ip 203.0.113.0/24
</Directory>

# Example WAF rule pattern (ModSecurity) blocking script payloads in 'js' parameter
SecRule ARGS:js "@rx (?i)(<script|onerror=|onload=|javascript:)" \
    "id:1026529301,phase:2,deny,status:403,msg:'CVE-2026-5293 XSS attempt blocked'"

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.06%

  • 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 OS Diagnosis Class Code

  • WordPress OS Diagnosis Class Code

  • WordPress OS Diagnosis Admin Class Code

  • WordPress OS User View Form Page Code

  • WordPress OS Diagnosis Class Code

  • WordPress OS Diagnosis Class Code

  • WordPress OS Diagnosis Admin Class Code

  • WordPress OS User View Form Page Code

  • Wordfence Vulnerability Analysis
  • Related CVEs
  • CVE-2026-1543: Avada Builder WordPress XSS Vulnerability

  • CVE-2026-4811: WPB Floating Menu Plugin XSS Vulnerability

  • CVE-2026-7613: WordPress Cost of Goods Plugin XSS Flaw

  • CVE-2026-5776: Email Encoder WordPress Plugin 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