CVE-2021-32475: Moodle - Stored XSS
- Cve: CVE-2021-32475
- Name: Moodle - Stored XSS
- Description: 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.
- Impact: Attackers can execute arbitrary scripts in the context of affected users, leading to session hijacking or data theft.
- Remediation: Apply the latest security patches or update to the latest Moodle version.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Attacker needs to inject malicious code into report data
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.4
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00592
- Epss percentile: 0.49236
- Assignee: [email protected]
- Published at: 2022-03-11T18:15:16Z
- Age in days: 1719
- Modified at: 2026-06-17T03:53:01Z
- Patch available: yes
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-32475
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
References
| Url | Source | Tags |
|---|---|---|
| https://moodle.org/mod/forum/discuss.php?d=422309 | nvd | Patch, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| moodle:moodle | >= 3.10.0, < 3.10.4; >= 3.9.0, < 3.9.7; >= 3.8.0, < 3.8.9; < 3.5.18 | no | nvd | /v1/products/moodle/moodle |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| moodle/moodle | package | yes | /v1/repositories/moodle/moodle |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 62525
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports