# CVE-2026-102581: Moodle: xss in forum post templates due to insufficient escaping

- Severity: Medium 4.6 (CVSS:3.1, scored by fedora) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-09-30T08:36:08.405Z
- Modified: 2026-10-05T14:30:06.376Z
- Also known as: BIT-MOODLE-2026-102581
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: fedora

## Description

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.

(As written by CVE List.)

## Affected

- moodle: from 5.2.0 before 5.2.2; from 5.1.0 before 5.1.6; from 5.0.0 before 5.0.9; before 4.5.13
- moodle 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
- moodle (Bitnami): 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

## Every score

- fedora: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-88981> (fix, patch)
- <https://access.redhat.com/security/cve/CVE-2026-102581> (advisory, third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2543634> (advisory, issue-tracking, third-party-advisory)
- <https://moodle.org/mod/forum/discuss.php?d=482499> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-102581> (web)

## Sources

- CVE List: [CVE-2026-102581](https://www.cve.org/CVERecord?id=CVE-2026-102581), CVE Terms of Use, modified 2026-09-30
- NVD: [CVE-2026-102581](https://nvd.nist.gov/vuln/detail/CVE-2026-102581), Public domain, modified 2026-10-01
- Bitnami Vulnerability Database: [BIT-MOODLE-2026-102581](https://osv.dev/vulnerability/BIT-MOODLE-2026-102581), Apache-2.0, modified 2026-10-05

---

Page: https://cve.day/CVE-2026-102581 · Whole record: https://cve.day/CVE-2026-102581.json · Rebuilt by cve.day 2026-11-25T22:59:41.621Z
