What’s Vulnerable › Vulnerabilities
CVE-2026-102586: Moodle: xss via password reset link due to insufficient username escaping
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-09-30 · updated 2026-10-01
- Weakness: CWE-79
Description
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.
Affected products
- Moodle: before 4.5.13; from 5.0.0 before 5.0.9; from 5.1.0 before 5.1.6; from 5.2.0 before 5.2.2 — fixed in 4.5.13, 5.0.9, 5.1.6, 5.2.2
How to fix
Upgrade to a fixed version: Moodle 4.5.13, 5.0.9, 5.1.6, 5.2.2. Check the vendor advisory for mitigations.
References
- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-88335
- https://access.redhat.com/security/cve/CVE-2026-102586
- https://bugzilla.redhat.com/show_bug.cgi?id=2543641
- https://moodle.org/mod/forum/discuss.php?d=482504
Get alerted when CVE-2026-102586 or the next vulnerability affects your stack