Description
A reflected cross-site scripting vulnerability was discovered in Moodle. This flaw exists due to insufficient sanitization of user-supplied data in policy tool. An attacker can trick the victim to open a specially crafted link that executes an arbitrary HTML and script code in user's browser in context of vulnerable website. This vulnerability may allow an attacker to perform cross-site scripting (XSS) attacks to gain access potentially sensitive information and modification of web pages.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | Moodle | Fixed in moodle 4.0.5, moodle 3.11.11, moodle 3.9.18 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | moodle | No fix yet | — |
| Ubuntu Pro 16.04 LTS | moodle | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | moodle/moodle | >= 3.9, < 3.9.18 | 3.9.18 | GHSA-6gx2-g773-hv9h |
| Packagist | moodle/moodle | >= 3.11, < 3.11.11 | 3.11.11 | GHSA-6gx2-g773-hv9h |
| Packagist | moodle/moodle | >= 4.0, < 4.0.5 | 4.0.5 | GHSA-6gx2-g773-hv9h |