CVE-2026-5797 Code injection in Quiz and Survey Master (QSM) – Easy Quiz and Survey Maker
Unauthenticated attackers can inject WordPress shortcodes into quiz answers to access other users' private quiz results without authorization.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-5797?
CVE-2026-5797 is a medium-severity code injection vulnerability in expresstech Quiz and Survey Master (QSM) – Easy Quiz and Survey Maker, published on 17 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-74
Which versions are affected by CVE-2026-5797?
How do I fix CVE-2026-5797?
No fix has been published for CVE-2026-5797 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-5797 being exploited?
There is no known exploitation of CVE-2026-5797 in the wild and no public exploit code.
Sources
Also known as GHSA-7rv8-2hr2-39f9.