The vulnerability stems from Mustache template helpers processing user input without adequate safeguards. The description explicitly mentions recursive rendering of user input in Mustache helpers as the root cause. Moodle's template system uses functions like those in mustache_helpers.php to handle template rendering. Functions involved in rendering user-controlled content without proper recursion limits (causing DoS) or context-aware escaping (enabling XSS) would be vulnerable. While exact function names aren't provided in advisories, the pattern 'mustache_template_helper' and core rendering functions align with the described vulnerability mechanism. The high confidence comes from the direct match between the vulnerability description and Moodle's Mustache helper architecture.