CVE-2021-32478
MEDIUM 6.1CVSS 3.1Moodle reflected XSS
The redirect URI in the LTI authorization endpoint required extra sanitizing to prevent reflected XSS and open redirect risks. Moodle versions 3.10 to 3.10.3, 3.9 to 3.9.6, 3.8 to 3.8.8 and earlier unsupported versions are affected.
- Published
- 11 Mar 2022
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- BIT-moodle-2021-32478GHSA-78fm-qhh8-8858
- Sources
- NVDJSONOSV GHSA-78fm-qhh8-8858JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
< 3.8.9 | 3.8.9 |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
>= 3.9.0, < 3.9.7 | 3.9.7 |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
>= 3.10.0, < 3.10.4 | 3.10.4 |
| OSV | Packagist | moodle/moodle | >= 3.10, < 3.10.4 | 3.10.4 |
| OSV | Packagist | moodle/moodle | >= 3.9, < 3.9.7 | 3.9.7 |
| OSV | Packagist | moodle/moodle | >= 3.8, < 3.8.9 | 3.8.9 |
References
- https://moodle.org/mod/forum/discuss.php?d=422314 · Patch, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-32478 · ADVISORY
- https://github.com/moodle/moodle/commit/752ad3d8eb4f9ac22dbf1461aa69d6e0baee503e · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 11 Mar 2022)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 12 Mar 2022)