CVE-2021-32478
Moodle reflected XSS
Record summary
CVE-2021-32478 has a selected CVSS score of 6.1 (medium); EIP currently links 1 Nuclei template.
Description
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.
Exploitation context
Known exploitation
- VulnCheck KEV
- Listed · Nov 5, 2025 · VulnCheck
- Reported exploitation
- Observed · VulnCheck
Available material
- Nuclei templates
- 1
Affected products and versions
3| Product | Source | Version range | Status |
|---|---|---|---|
moodleBrowse Moodle / moodle | VulnCheck | Version data not supplied | |
moodle | CVE List | 3.10 to 3.10.3, 3.9 to 3.9.6, 3.8 to 3.8.8 | affected |
moodle/moodleBrowse Packagist / moodle/moodle | GitHub Advisory | 3.10 to < 3.10.4 · Fixed in 3.10.4 | affected |
| 3.9 to < 3.9.7 · Fixed in 3.9.7 | affected | ||
| 3.8 to < 3.8.9 · Fixed in 3.8.9 | affected | ||
Nuclei templates
1ProjectDiscoveryMEDIUMMoodle 3.8-3.10.3 - Reflected XSS & Open RedirectCVSS 6.1
Moodle versions 3.10 to 3.10.3, 3.9 to 3.9.6, 3.8 to 3.8.8 contain a reflected XSS and open redirect caused by insufficient sanitization of the redirect URI in the LTI authorization endpoint, letting attackers execute scripts or redirect users maliciously, exploit requires crafted URL with malicious redirect URI.
Impact
Attackers can inject malicious JavaScript or redirect users to malicious sites via insufficient sanitization in the redirect_uri parameter.
Remediation
Upgrade to Moodle version 3.8.9, 3.9.7, or 3.10.4 or later.
Source: ProjectDiscovery