Skip to main content

WordPress CVE-2026-5797

| EUVDEUVD-2026-23373 MEDIUM
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2026-04-17 Wordfence GHSA-7rv8-2hr2-39f9
5.3
CVSS 3.1 · NVD
Share

Severity by source

NVD PRIMARY
5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

Lifecycle Timeline

4
Analysis Generated
Apr 17, 2026 - 06:27 vuln.today
EUVD ID Assigned
Apr 17, 2026 - 06:15 euvd
EUVD-2026-23373
Analysis Generated
Apr 17, 2026 - 06:15 vuln.today
CVE Published
Apr 17, 2026 - 05:29 nvd
MEDIUM 5.3

DescriptionCVE.org

The Quiz And Survey Master plugin for WordPress is vulnerable to Arbitrary Shortcode Execution in versions up to and including 11.1.0. This is due to insufficient input sanitization and the execution of do_shortcode() on user-submitted quiz answer text. User-submitted answers pass through sanitize_text_field() and htmlspecialchars(), which only strip HTML tags but do not encode or remove shortcode brackets [ and ]. When quiz results are displayed, the plugin calls do_shortcode() on the entire results page output (including user answers), causing any injected shortcodes to be executed. This makes it possible for unauthenticated attackers to inject arbitrary WordPress shortcodes such as [qsm_result id=X] to access other users' quiz submissions without authorization, as the qsm_result shortcode lacks any authorization checks.

AnalysisAI

Quiz And Survey Master plugin for WordPress (versions up to 11.1.0) allows unauthenticated attackers to execute arbitrary WordPress shortcodes via user-submitted quiz answers. User inputs are sanitized with sanitize_text_field() and htmlspecialchars(), which strip HTML tags but fail to remove shortcode brackets [ and ]. When quiz results are displayed, the plugin executes do_shortcode() on the entire results page including user answers, enabling injection of shortcodes like [qsm_result id=X] to access unauthorized quiz submissions. This is a direct information disclosure vulnerability masked by RCE tagging; confirmed CVSS 5.3 (Integrity impact) indicates data tampering/unauthorized access rather than code execution.

Technical ContextAI

The vulnerability stems from improper use of WordPress's output encoding and shortcode processing functions. WordPress shortcodes are delimited by square brackets [shortcode] and are processed server-side by the do_shortcode() function, which recursively evaluates and replaces shortcode syntax with dynamic content. The Quiz And Survey Master plugin (identified via CPE as expresstech's quiz_and_survey_master_qsm) sanitizes user quiz answers using sanitize_text_field() and htmlspecialchars(), both of which are designed to prevent HTML/JavaScript injection, not shortcode injection. The sanitize_text_field() function removes HTML tags but explicitly preserves square brackets per WordPress documentation. When results are rendered, do_shortcode() is called on the entire results page output (including stored user answers from the database), causing injected shortcodes to be parsed and executed with the same permissions as the quiz plugin. The qsm_result shortcode, which displays quiz results indexed by ID, lacks authorization checks (nonce validation or capability checks), allowing unauthenticated access to arbitrary quiz submissions. This is classified under CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component / 'Injection'), as user input is not neutralized before being processed by a downstream dangerous function (do_shortcode).

RemediationAI

Update Quiz And Survey Master plugin to a patched version released after 11.1.0. Immediate remediation requires applying a patch that neutralizes shortcode brackets in user-submitted answers before they are stored or processed by do_shortcode()-either by escaping [ and ] characters (e.g., using wp_kses_post() with restricted allowed HTML), stripping them entirely, or by calling do_shortcode() only on plugin-controlled template output, not on user data. The WordPress SVN repository reference indicates patches may already be committed; check the plugin's WordPress.org page or GitHub repository (if public) for the latest stable release, and upgrade immediately. As a temporary workaround until patching is possible, disable the Quiz And Survey Master plugin entirely if it is not actively in use, or restrict quiz access to authenticated users only via the WordPress admin settings (reducing attack surface from unauthenticated to authenticated attackers). If the plugin is actively used, implement a Web Application Firewall (WAF) rule to block HTTP requests containing shortcode syntax (regex pattern \[.*?\]) in quiz submission POST parameters; note that this may block legitimate use cases where users intentionally enter square-bracket text. Additionally, audit quiz results and submissions from the past several months for anomalous shortcode injections (check the wp_posts or plugin's custom tables for entries containing [ characters) to detect if exploitation has already occurred. Add capability checks and nonce verification to any shortcode that accesses or displays user data (specific to the qsm_result shortcode), ensuring only authorized users can view quiz submissions.

CVE-2016-10045 CRITICAL POC
9.8 Dec 30

The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail comman

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

CVE-2024-5084 CRITICAL POC
9.8 May 23

The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil

CVE-2024-8353 CRITICAL POC
9.8 Sep 28

The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all

CVE-2020-36847 CRITICAL POC
9.8 Jul 12

The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner

CVE-2025-11749 CRITICAL POC
9.8 Nov 05

The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint

CVE-2016-1209 CRITICAL POC
9.8 May 14

The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via

CVE-2024-4443 CRITICAL POC
9.8 May 22

The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based

CVE-2024-1698 CRITICAL POC
9.8 Feb 27

SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a

CVE-2023-6875 CRITICAL POC
9.8 Jan 11

The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i

CVE-2024-1512 CRITICAL POC
9.8 Feb 17

The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base

CVE-2024-3495 CRITICAL POC
9.8 May 22

The Country State City Dropdown CF7 plugin for WordPress is vulnerable to SQL Injection via the ‘cnt’ and 'sid' paramete

Share

CVE-2026-5797 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy