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

CVE-2026-102581 affects 232 listed versions of Moodle in the Dawnsentry catalogue.

5.4CVSS medium
None knownexploitation
under 1%EPSS (next 30 days)
30 September 2026published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Moodle

232 of 250 listed versions are affected. Fixed in 5.2.2, 5.1.6, 5.0.9, 4.5.13. The newest release, 5.3.1, is not affected.

5.2.1 5.2.0 5.1.5 5.1.4 5.1.3 5.1.2 5.1.1 5.1.0 5.0.8 5.0.7 5.0.6 5.0.5 5.0.4 5.0.3 5.0.2 5.0.1 5.0.0 4.5.12 4.5.11 4.5.10 4.5.9 4.5.8 4.5.7 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.4.12 4.4.11 4.4.10 4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.4 4.3.12 4.3.11 4.3.10 4.3.9 4.3.8 4.3.7 4.3.6 4.3.5 4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.2.11 4.2.10 4.2.9 4.2.8 4.2.7 and 172 more

What it is

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.

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N (NVD)

Published by Fedora on 30 September 2026. Last changed 1 October 2026.

Sources

Check one version you run: look CVE-2026-102581 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.