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.
{
"cna_assigner": "fedora",
"cwe_ids": [
"CWE-79"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102581.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"
}