MEDIUM5.4
GHSA-hxgg-4qww-85ph
Moodle has reflected Cross-site Scripting risk in policy tool
Quick fix
GHSA-hxgg-4qww-85ph — moodle/moodle: upgrade to the fixed version with the command below.
composer require moodle/moodle:^4.1.18Details
A flaw was found in Moodle. The return URL in the policy tool required additional sanitizing to prevent a reflected Cross-site scripting (XSS) risk.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/moodle/moodle
Introduced in:
4.3.0-betaFixed in: 4.3.12Fix
composer require moodle/moodle:^4.3.12Packagist/moodle/moodle
Introduced in:
4.4.0-betaFixed in: 4.4.8Fix
composer require moodle/moodle:^4.4.8Packagist/moodle/moodle
Introduced in:
4.5.0-betaFixed in: 4.5.4Fix
composer require moodle/moodle:^4.5.4References
- https://nvd.nist.gov/vuln/detail/CVE-2025-3643[ADVISORY]
- https://github.com/moodle/moodle/commit/ff9bbd6d9e7d6267ce85e6c9afbeb19581f2a85f[WEB]
- https://access.redhat.com/security/cve/CVE-2025-3643[WEB]
- https://bugzilla.redhat.com/show_bug.cgi?id=2359742[WEB]
- https://github.com/moodle/moodle[PACKAGE]
- https://moodle.org/mod/forum/discuss.php?d=467604[WEB]