XSS in Moodle
CVE-2026-102581
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.6 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.002, 9.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
References
- git.moodle.org/gw (Patch)
- access.redhat.com/security/cve/CVE-2026-102581 (Third Party Advisory, vdb-entry)
- RHBZ#2543634 (issue-tracking, Third Party Advisory, Issue Tracking)
- moodle.org/mod/forum/discuss.php (Vendor Advisory)