Medium · published September 30, 2026
A flaw was found in Moodle. Insufficient output escaping in templates used to display forum posts enables a stored cross-site scripting (XSS) vulnerability. An attacker can inject malicious content into a forum post, which then executes arbitrary script code in the browser of another user viewing the affected post.
| Product | Versions | Fixed in |
|---|---|---|
| moodle/moodle | < 4.5.13 | 4.5.13 |
| moodle/moodle | ≥ 5.0.0, < 5.0.9 | 5.0.9 |
| moodle/moodle | ≥ 5.1.0, < 5.1.6 | 5.1.6 |
| moodle/moodle | ≥ 5.2.0, < 5.2.2 | 5.2.2 |