VDB
Sign up
MEDIUM

GHSA-crcq-pw8h-9xwf

Moodle does not provide charset information in HTTP headers

Quick fix

GHSA-crcq-pw8h-9xwf — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^2.5.9

Details

lib/setup.php in Moodle through 2.4.11, 2.5.x before 2.5.9, 2.6.x before 2.6.6, and 2.7.x before 2.7.3 does not provide charset information in HTTP headers, which might allow remote attackers to conduct cross-site scripting (XSS) attacks via UTF-7 characters during interaction with AJAX scripts.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 0Fixed in: 2.5.9
Fixcomposer require moodle/moodle:^2.5.9
Packagist/moodle/moodle
Introduced in: 2.6.0Fixed in: 2.6.6
Fixcomposer require moodle/moodle:^2.6.6
Packagist/moodle/moodle
Introduced in: 2.7.0Fixed in: 2.7.3
Fixcomposer require moodle/moodle:^2.7.3

References