CVE-2026-102581: Moodle stored cross-site scripting in forum templates

CVE-2026-102581 · Severity: medium · CVSS 4.6 · Published 2026-09-30

Moodle is a learning management system used by educational institutions and businesses to deliver online courses. A flaw in how forum post templates escape output allows an attacker to inject malicious JavaScript that executes in other users' browsers when they view an affected post. This could enable account takeover, credential theft, or malware distribution to students and instructors.

Technologies: Moodle. Vendors: Moodle.

Quick answers

Is CVE-2026-102581 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-102581 being exploited in the wild.
How severe is CVE-2026-102581?
Medium severity, with a CVSS score of 4.6, published 30 September 2026.
Which products and versions are affected?
Moodle <UNKNOWN>.
Is there a fix for CVE-2026-102581?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-102581 attacked?
It is attacked over the network, in a web application.
Am I affected by CVE-2026-102581?
Check whether you run Moodle at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The vulnerability is a stored XSS in Moodle's forum post display templates due to insufficient output escaping. An attacker with permission to post in forums can inject arbitrary HTML/JavaScript payloads that persist in the database and execute in the context of any user viewing the post. The attack requires forum posting capability but no additional authentication or user interaction beyond viewing a malicious post.

Affected products

  • Moodle Moodle <UNKNOWN>

Timeline

  • 2026-09-30: disclosed

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.