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.
{
"cna_assigner": "fedora",
"cwe_ids": [
"CWE-79"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102586.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"introduced": "5.2.0"
},
{
"fixed": "5.2.2"
},
{
"introduced": "5.1.0"
},
{
"fixed": "5.1.6"
},
{
"introduced": "5.0.0"
},
{
"fixed": "5.0.9"
},
{
"fixed": "4.5.13"
}
],
"source": "AFFECTED_FIELD"
}
]
}{
"cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "4.5.13"
},
{
"introduced": "5.0.0"
},
{
"fixed": "5.0.9"
},
{
"introduced": "5.1.0"
},
{
"fixed": "5.1.6"
},
{
"introduced": "5.2.0"
},
{
"fixed": "5.2.2"
}
],
"source": "CPE_RANGE"
}