CVE-2021-43558: Cross-site Scripting in moodle
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.68839%
CWE
Published
11/23/2021
Updated
1/27/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
moodle/moodle | composer | >= 3.11.0, < 3.11.4 | 3.11.4 |
moodle/moodle | composer | >= 3.10.0, < 3.10.8 | 3.10.8 |
moodle/moodle | composer | >= 3.9.0, < 3.9.11 | 3.9.11 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability exists in the filetype administration tool's parameter handling. While exact commit details are unavailable, Moodle's security notice (MSA-21-0040) and tracker reference MDL-72571 indicate the fix involved improved sanitization of URL parameters in admin filetype handling. The admin tool's edit form (admin/tool/filetypes/classes/form/edit.php) would be the logical location where filetype parameters are processed and rendered. The vulnerability pattern matches unescaped output of URL parameters in form definitions, which would require adding proper context-aware escaping (like PARAM_TEXT or format_string) in the form rendering logic.