CVE-2015-5269
Description
Cross-site scripting (XSS) vulnerability in group/overview.php in Moodle through 2.6.11, 2.7.x before 2.7.10, 2.8.x before 2.8.8, and 2.9.x before 2.9.2 allows remote authenticated users to inject arbitrary web script or HTML via a modified grouping description.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Cross-site scripting in Moodle group/overview.php allows authenticated users to inject arbitrary web script via a modified grouping description.
Vulnerability
The vulnerability is a stored cross-site scripting (XSS) in group/overview.php in Moodle. It affects versions through 2.6.11, 2.7.x before 2.7.10, 2.8.x before 2.8.8, and 2.9.x before 2.9.2. Remote authenticated users can inject arbitrary web script or HTML via a modified grouping description. [1][2]
Exploitation
An attacker must be an authenticated user with the ability to modify grouping descriptions. The attacker crafts a malicious grouping description containing JavaScript or HTML. When other users view the group overview page, the injected script executes in their browser. No special privileges beyond being a user with group editing rights are required. [1][2]
Impact
Successful exploitation allows the attacker to execute arbitrary web script in the context of the victim's session. This can lead to data theft, session hijacking, or defacement. The impact is limited to the browser of users viewing the affected page. [1][2]
Mitigation
The vulnerability is fixed in Moodle versions 2.7.10, 2.8.8, and 2.9.2. Users should upgrade to these versions or later. For unsupported versions (2.6.x and earlier), no fix is available; upgrading to a supported version is recommended. [1][3]
AI Insight generated on May 23, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
moodle/moodlePackagist | < 2.7.10 | 2.7.10 |
moodle/moodlePackagist | >= 2.8.0, < 2.8.8 | 2.8.8 |
moodle/moodlePackagist | >= 2.9.0, < 2.9.2 | 2.9.2 |
Affected products
23cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*+ 21 more
- cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*range: <=2.6.11
- cpe:2.3:a:moodle:moodle:2.7.0:*:*:*:*:*:*:*
- cpe:2.3:a:moodle:moodle:2.7.1:*:*:*:*:*:*:*
- cpe:2.3:a:moodle:moodle:2.7.2:*:*:*:*:*:*:*
- cpe:2.3:a:moodle:moodle:2.7.3:*:*:*:*:*:*:*
- cpe:2.3:a:moodle:moodle:2.7.4:*:*:*:*:*:*:*
- cpe:2.3:a:moodle:moodle:2.7.5:*:*:*:*:*:*:*
- cpe:2.3:a:moodle:moodle:2.7.6:*:*:*:*:*:*:*
- cpe:2.3:a:moodle:moodle:2.7.7:*:*:*:*:*:*:*
- cpe:2.3:a:moodle:moodle:2.7.8:*:*:*:*:*:*:*
- cpe:2.3:a:moodle:moodle:2.7.9:*:*:*:*:*:*:*
- cpe:2.3:a:moodle:moodle:2.8.0:*:*:*:*:*:*:*
- cpe:2.3:a:moodle:moodle:2.8.1:*:*:*:*:*:*:*
- cpe:2.3:a:moodle:moodle:2.8.2:*:*:*:*:*:*:*
- cpe:2.3:a:moodle:moodle:2.8.3:*:*:*:*:*:*:*
- cpe:2.3:a:moodle:moodle:2.8.4:*:*:*:*:*:*:*
- cpe:2.3:a:moodle:moodle:2.8.5:*:*:*:*:*:*:*
- cpe:2.3:a:moodle:moodle:2.8.6:*:*:*:*:*:*:*
- cpe:2.3:a:moodle:moodle:2.8.7:*:*:*:*:*:*:*
- cpe:2.3:a:moodle:moodle:2.9.0:*:*:*:*:*:*:*
- cpe:2.3:a:moodle:moodle:2.9.1:*:*:*:*:*:*:*
- (no CPE)range: <=2.6.11, <2.7.10, <2.8.8, <2.9.2
Patches
445f3b5302d64MDL-50709 groups: Prevent XSS in grouping description
1 file changed · +0 −1
group/overview.php+0 −1 modified@@ -206,7 +206,6 @@ echo $OUTPUT->heading($groupings[$gpgid]->formattedname, 3); $description = file_rewrite_pluginfile_urls($groupings[$gpgid]->description, 'pluginfile.php', $context->id, 'grouping', 'description', $gpgid); $options = new stdClass; - $options->noclean = true; $options->overflowdiv = true; echo $OUTPUT->box(format_text($description, $groupings[$gpgid]->descriptionformat, $options), 'generalbox boxwidthnarrow boxaligncenter'); }
a44fed5c804bMDL-50709 groups: Prevent XSS in grouping description
1 file changed · +0 −1
group/overview.php+0 −1 modified@@ -206,7 +206,6 @@ echo $OUTPUT->heading($groupings[$gpgid]->formattedname, 3); $description = file_rewrite_pluginfile_urls($groupings[$gpgid]->description, 'pluginfile.php', $context->id, 'grouping', 'description', $gpgid); $options = new stdClass; - $options->noclean = true; $options->overflowdiv = true; echo $OUTPUT->box(format_text($description, $groupings[$gpgid]->descriptionformat, $options), 'generalbox boxwidthnarrow boxaligncenter'); }
fa5a3cdedcd9MDL-50709 groups: Prevent XSS in grouping description
1 file changed · +0 −1
group/overview.php+0 −1 modified@@ -206,7 +206,6 @@ echo $OUTPUT->heading($groupings[$gpgid]->formattedname, 3); $description = file_rewrite_pluginfile_urls($groupings[$gpgid]->description, 'pluginfile.php', $context->id, 'grouping', 'description', $gpgid); $options = new stdClass; - $options->noclean = true; $options->overflowdiv = true; echo $OUTPUT->box(format_text($description, $groupings[$gpgid]->descriptionformat, $options), 'generalbox boxwidthnarrow boxaligncenter'); }
ae6b18a93430MDL-50709 groups: Prevent XSS in grouping description
1 file changed · +0 −1
group/overview.php+0 −1 modified@@ -206,7 +206,6 @@ echo $OUTPUT->heading($groupings[$gpgid]->formattedname, 3); $description = file_rewrite_pluginfile_urls($groupings[$gpgid]->description, 'pluginfile.php', $context->id, 'grouping', 'description', $gpgid); $options = new stdClass; - $options->noclean = true; $options->overflowdiv = true; echo $OUTPUT->box(format_text($description, $groupings[$gpgid]->descriptionformat, $options), 'generalbox boxwidthnarrow boxaligncenter'); }
Vulnerability mechanics
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
10- github.com/advisories/GHSA-5729-822w-j342ghsaADVISORY
- moodle.org/mod/forum/discuss.phpnvdVendor AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2015-5269ghsaADVISORY
- www.openwall.com/lists/oss-security/2015/09/21/1nvdWEB
- github.com/moodle/moodle/commit/45f3b5302d645ba13ca8b68b0106a638ebd21980ghsaWEB
- github.com/moodle/moodle/commit/a44fed5c804b52e82c334c37dcc1c12b77f97af8ghsaWEB
- github.com/moodle/moodle/commit/ae6b18a9343083c1ab62d6eb535a7112bd7a3a50ghsaWEB
- github.com/moodle/moodle/commit/fa5a3cdedcd92bd96881fa89a6ff5efd80bd3512ghsaWEB
- web.archive.org/web/20160323063809/http://www.securitytracker.com/id/1033619ghsaWEB
- www.securitytracker.com/id/1033619nvd
News mentions
0No linked articles in our index yet.