CVE-2026-133064
Patch Available.
This Vulnerability has been fixed in the Never-Ending Support (NES) version offered by HeroDevs.
Overview
Moodle is an open source learning management system written in PHP. Schools, universities, and companies use it to run online courses. IOMAD is a multi-tenant distribution of Moodle that lets one installation serve several companies or organizations; it is built on Moodle core and shares the affected code. The SCORM activity (mod_scorm) plays SCORM packages and records the tracking data they report, including the identifiers of learning objectives. The objectives report (scormreport_objectives) shows a table with one column per objective.
A Cross-Site Scripting (XSS) vulnerability (CVE-2026-133064) has been identified in the SCORM objectives report of Moodle and IOMAD, which allows a user who can supply SCORM content to inject script that runs in the browser of another user who views the report. Moodle tracks this issue as MSA-26-0051 (MDL-90063).
Per MITRE CWE-79: The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
This issue affects all versions of Moodle before 4.5.16, versions 5.0.0 through 5.1.8, versions 5.2.0 through 5.2.4, and version 5.3.0, including End-of-Life release lines such as Moodle 4.3 and 5.0. IOMAD releases built on these Moodle versions contain the same code and are affected as well.
Details
Module Info
- Product: Moodle, IOMAD
- Affected packages: moodle/moodle (scormreport_objectives)
- Affected versions: <4.5.16, >=5.0.0 <5.1.9, >=5.2.0 <5.2.5, >=5.3.0 <5.3.1
- GitHub repository: https://github.com/moodle/moodle (Moodle), https://github.com/iomad/iomad (IOMAD)
- Published packages: https://packagist.org/packages/moodle/moodle
- Package manager: Composer
- Fixed in:
- OSS Moodle 4.5.16, 5.1.9, 5.2.5, 5.3.1
- NES for Moodle v4.3.16
- NES for IOMAD v4.3.7
Vulnerability Info
This Medium-severity vulnerability is found in the moodle/moodle package in all versions of Moodle before 4.5.16, versions 5.0.0 through 5.1.8, versions 5.2.0 through 5.2.4, and version 5.3.0, including End-of-Life release lines such as Moodle 4.3 and 5.0. IOMAD releases built on these Moodle versions contain the same code and are affected as well. The CVE record's CNA assigns it a CVSS 3.1 base score of 4.6 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N).
The report reads the objective identifiers recorded for a SCORM activity and uses each one as a column heading in the results table:
$objectives = get_scorm_objectives($scorm->id);
$nosort = array();
foreach ($objectives as $scoid => $sco) {
foreach ($sco as $id => $objectivename) {
$colid = $scoid.'objectivestatus' . $id;
$columns[] = $colid;
$nosort[] = $colid;
if (!$displayoptions['objectivescore']) {
// Display the objective name only.
$headers[] = $objectivename;
} else {Objective identifiers come from the SCORM package's tracking data, not from Moodle. They were added to the table headers without escaping. An identifier containing HTML is therefore rendered as markup when the report is displayed, which can run script in the session of the teacher or manager viewing it.
The CVE record describes the attacker as an authenticated user with content upload permissions. The victim is a user who opens the objectives report for the affected SCORM activity. Sites that do not use SCORM activities are not exposed.
The fix escapes each objective name before it is used in a heading. The same change also corrects how objectives are grouped by SCO:
foreach ($objectives as $scoid => $sco) {
foreach ($sco as $id => $objectivename) {
$objectivename = s($objectivename);
$colid = $scoid.'objectivestatus' . $id;
$columns[] = $colid;
$nosort[] = $colid;Mitigation
Moodle publishes security fixes only for its supported release lines. Moodle 5.0 and the release lines before 4.5, including Moodle 4.3 and the IOMAD releases built on it, are End-of-Life and will not receive any public updates to address this issue.
Users of the affected components should apply one of the following mitigations:
- Upgrade to Moodle 4.5.16, 5.1.9, 5.2.5, 5.3.1, or later, or to an IOMAD release built on one of those versions.
- Leverage a commercial support partner like HeroDevs (NES for Moodle, NES for IOMAD) for post-EOL security support.
Credits
- Luuk Verhoeven (finder)
- David Woloszyn (remediation)