Moodle - XSS (CVE-2021-32478)
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.
psychologyCrowdSec Analysis
CVE-2021-32478 is a vulnerability in Moodle's LTI authorization endpoint that exposes users to reflected cross-site scripting (XSS) and open redirect attacks due to insufficient sanitization of the redirect URI. Attackers could exploit this flaw to execute malicious scripts or redirect users to malicious sites, potentially leading to credential theft or phishing.
CrowdSec has been tracking this vulnerability and its exploits since 29th of October 2025.
CrowdSec network observations suggest that most exploitation of CVE-2021-32478 involves focused reconnaissance to identify viable targets. Attackers typically tailor their campaigns based on system exposure and configuration. It is unlikely that a given attack is accidental. CrowdSec data also reveals a clear uptick in attacks involving CVE-2021-32478 over the past week. Activity is above the usual baseline, suggesting growing attention from attackers. This may reflect rising awareness, recent exploit releases, or expanded targeting efforts.
Attackers exploit the /mod/lti/auth.php endpoint by supplying a malicious redirect_uri parameter, enabling reflected XSS or open redirect attacks through crafted URLs.
Full Intelligence Available
Connect your API key to access CrowdSec scores, exploit timelines, and attacker IPs.
| Event | Date |
|---|---|
| CVE Published | 2022-03-11 |
| Rule Released | 2025-10-29 |
| CrowdSec First Seen | 2025-11-05 |
Related Weaknesses
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.