ADVISORIES

GitHub Advisory Database

GHSA-vwhw-vp9v-q9c9

Moodle vulnerable to Cross-site Scripting

Details

A flaw was found in Moodle. A remote attacker could exploit a reflected Cross-Site Scripting (XSS) vulnerability in the policy tool return URL. This vulnerability arises from insufficient sanitization of URL parameters, allowing attackers to inject malicious scripts through specially crafted links. Successful exploitation could lead to information disclosure or arbitrary client-side script execution within the user's browser.

Affected packages

EcosystemPackageAffected versions
Packagistmoodle/moodle
All versions before 4.1.22 (fixed in 4.1.22)
Packagistmoodle/moodle
From 4.4.0-beta before 4.4.12 (fixed in 4.4.12)
Packagistmoodle/moodle
From 4.5.0-beta before 4.5.8 (fixed in 4.5.8)
Packagistmoodle/moodle
From 5.0.0-beta before 5.0.4 (fixed in 5.0.4)
Packagistmoodle/moodle
From 5.1.0-beta before 5.1.1 (fixed in 5.1.1)

References