Moodle vulnerable to Cross-site Scripting
Impact
A flaw was found in Moodle. This vulnerability, known as Cross-site Scripting (XSS), occurs due to insufficient checks on user-provided data in the formula editor's arithmetic expression fields. A remote attacker could inject malicious code into these fields. When other users view these expressions, the malicious code would execute in their web browsers, potentially compromising their data or leading to unauthorized actions.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 4.1.22Ecosystem versions | 4.1.22 |
| From 4.4.0-beta before 4.4.12Ecosystem versions | 4.4.12 |
| From 4.5.0-beta before 4.5.8Ecosystem versions | 4.5.8 |
| From 5.0.0-beta before 5.0.4Ecosystem versions | 5.0.4 |
| From 5.1.0-beta before 5.1.1Ecosystem versions | 5.1.1 |
Version evidence: OSV · GHSA-6mmv-f6c6-v6q8
View original version evidence (392 explicit versions)
Original source description
A flaw was found in Moodle. This vulnerability, known as Cross-site Scripting (XSS), occurs due to insufficient checks on user-provided data in the formula editor's arithmetic expression fields. A remote attacker could inject malicious code into these fields. When other users view these expressions, the malicious code would execute in their web browsers, potentially compromising their data or leading to unauthorized actions.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2025-67850
- Patch github.com/moodle/moodle/commit/c85f153068a717a3b28bc122e75154bac99e67e1
- Security advisory access.redhat.com/security/cve/CVE-2025-67850
- Source reference bugzilla.redhat.com/show_bug.cgi
- Source reference github.com/moodle/moodle
- Source reference moodle.org/mod/forum/discuss.php