CVE-2025-67849
7.3Moodle · Moodle
A cross-site scripting (XSS) vulnerability in Moodle arises from improper sanitization of AI prompt responses, allowing attackers to inject malicious scripts into web pages.
Executive summary
A cross-site scripting vulnerability in Moodle allows authenticated users to execute malicious scripts, potentially leading to session theft and interface manipulation.
Vulnerability
The vulnerability is a Stored Cross-site Scripting (XSS) flaw caused by improper sanitization of AI-generated content. An authenticated user can inject malicious scripts that execute in the context of other users' sessions when they view the compromised pages.
Business impact
Successful exploitation of this vulnerability allows an attacker to compromise user sessions, potentially leading to unauthorized account access or data exfiltration. With a CVSS score of 7.3, this high-severity flaw poses a significant risk to the integrity of the Moodle platform and the confidentiality of user interactions within the learning environment.
Remediation
Immediate Action: Update Moodle installations to the patched versions: 4.1.22, 4.4.12, 4.5.8, or 5.0.4 as appropriate for your branch.
Proactive Monitoring: Monitor web application logs for unusual script injections, particularly within AI-generated content modules or user-submitted prompts.
Compensating Controls: Implement a strict Content Security Policy (CSP) to restrict the execution of unauthorized scripts and utilize a Web Application Firewall (WAF) configured to detect and block common XSS payloads.
Exploitation status
Public Exploit Available: No
Analyst recommendation
Given the potential for session hijacking and unauthorized interface manipulation, administrators should prioritize applying the provided security patches across all affected Moodle instances. Ensuring that the software is updated to the latest supported versions is essential to mitigating this risk and maintaining the security of the institutional learning environment.
More Moodle CVEs
Sources
Originally found and disclosed by Red Hat would like to thank Vuln37 for reporting this issue., per the CVE Program record.
- Vulnerability database entry
- RHBZ#2423835 Issue tracker