S4E just found a low-severity finding from [ai] web application external link detection scanner
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
medium·Product Based Web Vulnerabilities·Updated Oct 8, 2025

CVE-2021-32478 Scanner

CVE-2021-32478 Scanner - Cross-Site Scripting (XSS) vulnerability in Moodle

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsurl
CostFree
2.2k
Times Used
continuous scan runs
4.8k
Continuously Checked
assets under CS
4
Vulnerabilities Found
confirmed findings
References
CVECVE-2021-32478
6.1
CVSS

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.

Attack Vector
-
Privileges Req.
-
User Interaction
-
Affected
moodleby n/a
3.10 to 3.10.3, 3.9 to 3.9.6, 3.8 to 3.8.8
Updated Aug 21, 2026View on NVD →
Detail

Moodle is a widely used open-source learning management system (LMS) employed by educators, schools, and universities worldwide to create personalized learning environments. It offers a range of tools and features that support a collaborative online learning experience, such as course development, assessments, and resource sharing. The platform is particularly valued for its flexibility and scalability, catering to both small educational institutions and larger organizational environments. Users appreciate its availability in multiple languages and the strong community support which contributes to continuous development and customization. Given its extensive use in educational sectors, security within Moodle is paramount to protect sensitive user data and maintain privacy. Organizations implement Moodle to facilitate learning and education, leveraging its innovative technological solutions.

The vulnerability detected, known as Cross-Site Scripting (XSS), arises when an attacker is able to inject malicious scripts into trusted websites. In Moodle's context, it involves insufficient sanitization of the redirect URI in the LTI authorization endpoint, allowing attackers to potentially execute scripts or redirect users maliciously. This vulnerability can occur when users click on crafted URLs containing the malicious scripts. Resolving XSS vulnerabilities is essential, given their impact on user trust and potential to compromise sensitive user data. Reflected XSS vulnerabilities typically demand user interaction or access to certain pages with manipulated URLs. Properly handling user inputs and implementing stringent validation mechanisms can mitigate this vulnerability.

The technical details of the vulnerability involve the exploitation of the LTI authorization endpoint found in Moodle's system. Vulnerable versions do not adequately sanitize the redirect_uri' parameter, which can lead to script injection. An attacker crafts a URL with a malicious redirect URI to execute scripts through the user's browser. The endpoint utilizes the GET method, and when accessed with the crafted URL, it can display a pop-up or divert users to unauthorized resources. The vulnerability poses a risk to Moodle sites supporting versions 3.8 through 3.10.3. Specifically, the response returns a 200 status code along with altered form actions indicating the presence of injected scripts.

Exploiting this vulnerability can lead to severe consequences such as unauthorized access to user accounts, user sessions hijacking, and potential deployment of phishing attacks. Malicious scripts can access sensitive data or deceive users, potentially causing them to reveal confidential information. Trust in the educational system is compromised, affecting the reputation and operation of educational institutions using Moodle. Effective use of XSS attacks gives attackers the possibility to manipulate the user interface or provide misleading content. This leads to increased risk of data leakage and undermining of the platform's security posture, impacting its overall reliability.

REFERENCES

Solution Advice
  • Upgrade Moodle instances to the latest version available to fix the vulnerability.
  • Implement stringent sanitization and validation of user inputs across all endpoints.
  • Conduct regular security assessments to uncover potential vulnerabilities.
  • Educate users about the risks associated with suspicious links and encourage cautious browsing habits.
  • Employ Web Application Firewalls to detect and block potential XSS attacks before affecting the application.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.

CVE-2021-32478 Scanner - Cross-Site Scripting (XSS) vulnerability in Moodle | S4E