VDB
Sign up
MEDIUM5.4

GHSA-vwhw-vp9v-q9c9

Moodle vulnerable to Cross-site Scripting

Quick fix

GHSA-vwhw-vp9v-q9c9 — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^4.1.22

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 0Fixed in: 4.1.22
Fixcomposer require moodle/moodle:^4.1.22
Packagist/moodle/moodle
Introduced in: 4.4.0-betaFixed in: 4.4.12
Fixcomposer require moodle/moodle:^4.4.12
Packagist/moodle/moodle
Introduced in: 4.5.0-betaFixed in: 4.5.8
Fixcomposer require moodle/moodle:^4.5.8
Packagist/moodle/moodle
Introduced in: 5.0.0-betaFixed in: 5.0.4
Fixcomposer require moodle/moodle:^5.0.4
Packagist/moodle/moodle
Introduced in: 5.1.0-betaFixed in: 5.1.1
Fixcomposer require moodle/moodle:^5.1.1

References