Medium · published September 30, 2026
A flaw was found in Moodle. Insufficient sanitization of username input on the password reset page allows a remote attacker to conduct a cross-site scripting (XSS) attack. By convincing an unauthenticated user to access a specially crafted password reset link, an attacker could execute arbitrary script in the victim's browser.
| 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 |