GitHub Advisory Database
GHSA-xhfw-wjjc-4j5h
Moodle Cross-site Scripting
Details
An issue was discovered in Moodle 3.x. An authenticated user is allowed to add HTML blocks containing scripts to their Dashboard; this is normally not a security issue because a personal dashboard is visible to this user only. Through this security vulnerability, users can move such a block to other pages where they can be viewed by other users.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Packagist | moodle/moodle | From 3.1 before 3.1.12 (fixed in 3.1.12) |
| Packagist | moodle/moodle | From 3.2 before 3.2.9 (fixed in 3.2.9) |
| Packagist | moodle/moodle | From 3.3 before 3.3.6 (fixed in 3.3.6) |
| Packagist | moodle/moodle | From 3.4 before 3.4.3 (fixed in 3.4.3) |