CVE-2021-32475 json
Moodle stored Cross-site Scripting
published 2022-03-11 4 y ago modified 2026-09-08 2 mo ago also BIT-moodle-2021-32475 , EUVD-2022-1331 , GHSA-5wjh-v7c8-wrhx
- cvss
- 5.4
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 48%
- public exploits
- 0
- none known
Summary
ID numbers displayed in the quiz grading report required additional sanitizing to prevent a stored XSS risk. Moodle 3.10 to 3.10.3, 3.9 to 3.9.6, 3.8 to 3.8.8, 3.5 to 3.5.17 and earlier unsupported versions are affected.
Patch / fix
- packagist moodle/moodle 3.5.18, 3.8.9, 3.9.7, 3.10.4
- bitnami moodle 3.5.18, 3.8.9, 3.9.7, 3.10.4
- moodle moodle 3.5.18, 3.8.9, 3.9.7, 3.10.4
Exploit prediction
0.59% chance of exploitation in the next 30 days, higher than 48% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
| OSV | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | moodle/moodle | >=3.5, <3.5.18 >=3.8, <3.8.9 >=3.9, <3.9.7 >=3.10, <3.10.4 |
3.5.18 3.8.9 3.9.7 3.10.4 |
| bitnami | moodle | <3.5.18 >=3.8.0, <3.8.9 >=3.9.0, <3.9.7 >=3.10.0, <3.10.4 |
3.5.18 3.8.9 3.9.7 3.10.4 |
Affected products
- n/a moodle
Classification
References
-
moodle.org
/mod/forum/discuss.php?d=422309
web, patch, vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-32475
advisory, web
-
github.com
/moodle/moodle
package
Sources
- CVE List CVE-2021-32475
- GitHub Advisory GHSA-5wjh-v7c8-wrhx
- NVD CVE-2021-32475
- OSV BIT-moodle-2021-32475
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.