VDB
Sign up
MEDIUM4.8

GHSA-qrcj-6fjw-3h9h

Moodle XSS Vulnerability

Quick fix

GHSA-qrcj-6fjw-3h9h — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^3.6.3

Details

A vulnerability was found in moodle before versions 3.6.3, 3.5.5, 3.4.8 and 3.1.17. Users with the "login as other users" capability (such as administrators/managers) can access other users' Dashboards, but the JavaScript those other users may have added to their Dashboard was not being escaped when being viewed by the user logging in on their behalf.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 3.6.0Fixed in: 3.6.3
Fixcomposer require moodle/moodle:^3.6.3
Packagist/moodle/moodle
Introduced in: 3.5.0Fixed in: 3.5.5
Fixcomposer require moodle/moodle:^3.5.5
Packagist/moodle/moodle
Introduced in: 3.2.0Fixed in: 3.4.8
Fixcomposer require moodle/moodle:^3.4.8
Packagist/moodle/moodle
Introduced in: 0Fixed in: 3.1.17
Fixcomposer require moodle/moodle:^3.1.17

References