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.

Severity (CVSS NVD)6.1Medium
Exploit odds (30 days)0.8%top 42.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Packagistmoodle/moodle3.9.19GHSA-97qf-pq7x-964m
Packagistmoodle/moodle3.11.12GHSA-97qf-pq7x-964m
Packagistmoodle/moodle4.0.6GHSA-97qf-pq7x-964m
Packagistmoodle/moodle4.1.1GHSA-97qf-pq7x-964m

Affected products (as reported)

VendorProductVersions
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

References