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

CVE-2026-5797: Quiz And Survey Master WordPress RCE Flaw

CVE-2026-5797 is an arbitrary shortcode execution vulnerability in Quiz And Survey Master WordPress plugin, allowing unauthenticated attackers to access unauthorized quiz submissions. This article covers technical details, impact, and mitigation.

Published: April 23, 2026

CVE-2026-5797 Overview

The Quiz And Survey Master plugin for WordPress contains an Arbitrary Shortcode Execution vulnerability in versions up to and including 11.1.0. This security flaw arises from insufficient input sanitization combined with the unsafe execution of do_shortcode() on user-submitted quiz answer text. The plugin's reliance on sanitize_text_field() and htmlspecialchars() functions proves inadequate, as these methods only strip HTML tags but fail to encode or remove WordPress shortcode brackets [ and ].

When quiz results are displayed to users, the plugin invokes do_shortcode() on the entire results page output, including user-submitted answers. This behavior enables attackers to inject arbitrary WordPress shortcodes that execute in the context of the WordPress installation.

Critical Impact

Unauthenticated attackers can inject arbitrary WordPress shortcodes to access other users' quiz submissions without authorization, bypassing access controls entirely.

Affected Products

  • Quiz And Survey Master plugin for WordPress versions up to and including 11.1.0
  • WordPress installations utilizing the vulnerable plugin versions
  • Sites with publicly accessible quiz forms

Discovery Timeline

  • 2026-04-17 - CVE-2026-5797 published to NVD
  • 2026-04-22 - Last updated in NVD database

Technical Details for CVE-2026-5797

Vulnerability Analysis

This vulnerability represents a classic case of improper input validation (CWE-74) where the trust boundary between user input and application logic is improperly defined. The Quiz And Survey Master plugin processes user-submitted quiz answers through sanitization functions designed primarily for HTML content, but WordPress shortcodes operate outside the HTML parsing context.

The core issue lies in the plugin's architecture where user-controlled data flows from quiz submissions into the results rendering pipeline. The sanitize_text_field() function removes HTML tags, scripts, and encoding, while htmlspecialchars() converts special HTML characters. However, neither function addresses WordPress-specific shortcode syntax, which uses square brackets rather than angle brackets.

When the results page is generated, the do_shortcode() function parses the entire output looking for registered shortcode patterns. Any shortcode syntax present in user answers—including injected malicious shortcodes—gets executed with the privileges of the WordPress installation.

Root Cause

The root cause is a combination of insufficient input sanitization and overly permissive output processing. The plugin applies HTML-centric sanitization to user input but fails to account for the WordPress shortcode API. The do_shortcode() function is called on a composite string containing both trusted template content and untrusted user data, creating an injection point.

The vulnerable code paths exist in multiple class files including the quiz manager class (class-qmn-quiz-manager.php), results pages class (class-qsm-results-pages.php), and question review classes. These components collectively allow shortcode-containing answers to persist and later execute.

Attack Vector

An attacker exploits this vulnerability by submitting quiz answers containing WordPress shortcode syntax. The attack requires no authentication and can be performed by any user with access to a public quiz form.

The attack proceeds as follows: An attacker submits a quiz answer containing a shortcode such as [qsm_result id=X] where X represents another user's quiz submission ID. When this answer is displayed on a results page, do_shortcode() processes the injected shortcode. The qsm_result shortcode itself lacks authorization checks, allowing the attacker to view quiz submissions belonging to other users.

This attack can potentially be extended to execute other registered shortcodes depending on the WordPress installation's configuration and installed plugins.

Detection Methods for CVE-2026-5797

Indicators of Compromise

  • Quiz answer submissions containing square bracket patterns resembling WordPress shortcodes (e.g., [shortcode_name attribute="value"])
  • Unexpected shortcode execution errors in WordPress error logs
  • Database entries in quiz answer tables containing shortcode syntax
  • Unusual access patterns to quiz result pages with enumerated IDs

Detection Strategies

  • Implement web application firewall (WAF) rules to detect shortcode patterns in form submissions to quiz endpoints
  • Monitor WordPress debug logs for unexpected shortcode parsing activity during results page generation
  • Review database tables storing quiz answers for entries containing [ and ] bracket combinations
  • Audit access logs for sequential requests to quiz result endpoints indicating ID enumeration attempts

Monitoring Recommendations

  • Enable WordPress debug logging temporarily to capture shortcode execution traces during suspected exploitation
  • Configure intrusion detection systems to alert on form submissions containing bracket-delimited patterns to quiz-related endpoints
  • Implement rate limiting on quiz submission endpoints to slow down automated exploitation attempts
  • Set up database monitoring to detect unusual SELECT queries against quiz submission tables

How to Mitigate CVE-2026-5797

Immediate Actions Required

  • Update the Quiz And Survey Master plugin to the latest patched version immediately
  • Audit existing quiz submission data for evidence of shortcode injection attempts
  • Review WordPress access logs for suspicious activity targeting quiz endpoints
  • Consider temporarily disabling public quiz access until the patch is applied

Patch Information

A security patch addressing this vulnerability is available. The fix involves properly sanitizing shortcode brackets from user-submitted content before storage and/or preventing do_shortcode() from processing user-controlled portions of the results output.

Review the WordPress Changeset Log for technical details on the implemented fix. Additional vulnerability information is available in the Wordfence Vulnerability Report.

Workarounds

  • Implement a custom input filter to strip or encode square brackets from quiz answer submissions before database storage
  • Use a WAF rule to block requests containing shortcode-like patterns in quiz form fields
  • Restrict quiz access to authenticated users only until the patch can be applied
  • Add a mu-plugin (must-use plugin) that hooks into quiz answer processing to sanitize shortcode syntax
bash
# Example: Add shortcode bracket sanitization via wp-config.php filter
# Add to theme functions.php or custom plugin as temporary mitigation

# This is a conceptual example - implement proper sanitization:
# 1. Hook into quiz answer processing
# 2. Strip or encode [ and ] characters from user input
# 3. Test thoroughly before deploying to production

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechWordpress

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-74
  • Technical References
  • WordPress Quiz Manager Class

  • WordPress Results Pages Class

  • WordPress Question Review Text Class

  • WordPress Question Review Class

  • WordPress Quiz Manager Class

  • WordPress Results Pages Class

  • WordPress Question Review Text Class

  • WordPress Question Review Class

  • WordPress Changeset Log

  • Wordfence Vulnerability Report
  • Related CVEs
  • CVE-2026-3844: WordPress Breeze Cache Plugin RCE Flaw

  • CVE-2026-6518: WordPress CMP Plugin RCE Vulnerability

  • CVE-2026-5718: WordPress CF7 File Upload RCE Vulnerability

  • CVE-2026-4132: HTTP Headers WordPress Plugin RCE 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