# CVE-2026-5797

> Vulnerability · severity: **MEDIUM** (CVSS 5.3).

## 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.

## Key facts

- **CVE ID:** CVE-2026-5797
- **Published:** 2026-04-17
- **CVSS severity:** MEDIUM
- **CVSS base score:** 5.3
- **CWE codes:** CWE-74

## Primary sources

- NIST NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-5797

## Citation

> AI Analytics. CVE-2026-5797. Retrieved 2026-07-16 from https://api.ai-analytics.org/cve/CVE-2026-5797. Derived from NIST NVD. Licensed CC0.

---

*[Dataset catalog](https://api.ai-analytics.org/datasets/) · [AI Analytics](https://api.ai-analytics.org/) · CC0 1.0*