Vulnerability · Published Feb 17, 2023 · Assigned by fedora
CVE-2023-23921Moodle: reflected xss risk in some returnurl parameters
Medium 6.1
In plain English
A medium-severity cross-site scripting in moodle. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 57% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
The vulnerability was found Moodle which exists due to insufficient sanitization of user-supplied data in some returnurl parameters. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in user's browser in context of vulnerable website. This flaw allows a remote attacker to perform cross-site scripting (XSS) attacks.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | moodle/moodle | 3.9.19 | GHSA-97qf-pq7x-964m |
| Packagist | moodle/moodle | 3.11.12 | GHSA-97qf-pq7x-964m |
| Packagist | moodle/moodle | 4.0.6 | GHSA-97qf-pq7x-964m |
| Packagist | moodle/moodle | 4.1.1 | GHSA-97qf-pq7x-964m |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| moodle | 4.1.0 – before 4.1.14.0.0 – before 4.0.63.11.0 – before 3.11.120 – before 3.9.19 |
Weakness: CWE-79