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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-30 · Modified: 2026-09-30
- Aliases: UBUNTU-CVE-2026-102581
- Record: https://cvemate.com/vulnerability/CVE-2026-102581 · JSON: https://cvemate.com/vulnerability/CVE-2026-102581/json

## Description

```text
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.
```

## Signals

- CVSS: 5.4 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.198%, percentile 9.993%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- ubuntu moodle (Ubuntu): All versions (No fix recorded)
- moodle moodle: \< 4.5.13 \| ≥ 5.0.0, \< 5.0.9 \| ≥ 5.1.0, \< 5.1.6 \| ≥ 5.2.0, \< 5.2.2

## References

- <http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-88981>
- <https://access.redhat.com/security/cve/CVE-2026-102581>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2543634>
- <https://moodle.org/mod/forum/discuss.php?d=482499>
- <https://ubuntu.com/security/CVE-2026-102581>
- <https://www.cve.org/CVERecord?id=CVE-2026-102581>

---

Data as of 2026-12-05T04:49:31.989Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
