HIGH7.3
GHSA-6mmv-f6c6-v6q8
Moodle vulnerable to Cross-site Scripting
Quick fix
GHSA-6mmv-f6c6-v6q8 — moodle/moodle: upgrade to the fixed version with the command below.
composer require moodle/moodle:^4.1.22Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/moodle/moodle
Introduced in:
4.4.0-betaFixed in: 4.4.12Fix
composer require moodle/moodle:^4.4.12Packagist/moodle/moodle
Introduced in:
4.5.0-betaFixed in: 4.5.8Fix
composer require moodle/moodle:^4.5.8Packagist/moodle/moodle
Introduced in:
5.0.0-betaFixed in: 5.0.4Fix
composer require moodle/moodle:^5.0.4Packagist/moodle/moodle
Introduced in:
5.1.0-betaFixed in: 5.1.1Fix
composer require moodle/moodle:^5.1.1References
- https://nvd.nist.gov/vuln/detail/CVE-2025-67850[ADVISORY]
- https://github.com/moodle/moodle/commit/c85f153068a717a3b28bc122e75154bac99e67e1[WEB]
- https://access.redhat.com/security/cve/CVE-2025-67850[WEB]
- https://bugzilla.redhat.com/show_bug.cgi?id=2423838[WEB]
- https://github.com/moodle/moodle[PACKAGE]
- https://moodle.org/mod/forum/discuss.php?d=471300[WEB]