Quiz and Survey Master (QSM) <= 11.1.0 - Unauthenticated Shortcode Injection Leading to Arbitrary Quiz Result Disclosure via Quiz Answer Text Input Fields
Summary
| CVE | CVE-2026-5797 |
|---|---|
| State | PUBLISHED |
| Assigner | Wordfence |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-04-17 06:16:30 UTC |
| Updated | 2026-04-17 06:16:30 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v3.1 5.3 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS: 0.000340000 probability, percentile 0.099580000 (date 2026-04-20)
Problem Types: CWE-74 | CWE-74 CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 5.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| 3.1 | CNA | DECLARED | 5.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
LowAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Expresstech | Quiz And Survey Master QSM Easy Quiz And Survey Maker | affected 10.1.0 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| plugins.trac.wordpress.org/changeset | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/quiz-master-next/trunk/php/classes/class-qsm-results-... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/quiz-master-next/tags/10.3.5/php/classes/class-qsm-re... | [email protected] | plugins.trac.wordpress.org | |
| www.wordfence.com/threat-intel/vulnerabilities/id/f2aa33cc-c1c4-42d4-9c2f-54648... | [email protected] | www.wordfence.com | |
| plugins.trac.wordpress.org/browser/quiz-master-next/trunk/php/classes/class-qmn-quiz-man... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/quiz-master-next/tags/10.3.5/php/classes/question-typ... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/quiz-master-next/trunk/php/classes/question-types/cla... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/quiz-master-next/tags/10.3.5/php/classes/class-qmn-qu... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/quiz-master-next/tags/10.3.5/php/classes/question-typ... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/quiz-master-next/trunk/php/classes/question-types/cla... | [email protected] | plugins.trac.wordpress.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Rafshanzani Suhada (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-04-16T16:42:59.000Z | Disclosed |
There are currently no legacy QID mappings associated with this CVE.