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.
According to CrowdSec data, while opportunistic exploitation dominates, a portion of threat actors trying to exploit CVE-2021-32478 apply basic targeting methods such as port or service detection. This indicates emerging patterns of selective targeting. In addition, according to the CrowdSec network, attack volume against CVE-2021-32478 has dipped slightly compared to the previous week. Although still commonly targeted, the decline suggests a cooling-off period. Long-term relevance remains, but attention is waning.
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.