CVE-2026-5797: Quiz and Survey Master (QSM) <= 11.1.0 - Unauthenticated Shortcode Injection Leading to Arbitrary Quiz Result Disclosure via Quiz Answer Text Input Fields
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 doshortcode() on user-submitted quiz answer text. User-submitted answers pass through sanitizetextfield() and htmlspecialchars(), which only strip HTML tags but do not encode or remove shortcode brackets [ and ]. When quiz results are displayed, the plugin calls doshortcode() 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 [qsmresult id=X] to access other users' quiz submissions without authorization, as the qsmresult shortcode lacks any authorization checks.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-5797?
CVE-2026-5797 is classified as a high severity vulnerability due to its potential for unauthenticated shortcode injection.
How do I fix CVE-2026-5797?
To fix CVE-2026-5797, update the Quiz and Survey Master plugin to version 11.1.1 or later.
Who is affected by CVE-2026-5797?
Users of the Quiz and Survey Master plugin for WordPress versions 11.1.0 and earlier are affected by CVE-2026-5797.
What is the impact of CVE-2026-5797?
The impact of CVE-2026-5797 includes the potential for arbitrary quiz result disclosure through shortcode injection.
Can CVE-2026-5797 be exploited remotely?
Yes, CVE-2026-5797 can be exploited remotely since it allows unauthenticated users to inject shortcodes.