VDB
Sign up
HIGH7.3

GHSA-mhf6-pp52-8wqj

Moodle Cross-site Scripting (XSS) vulnerability

Quick fix

GHSA-mhf6-pp52-8wqj — 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. This Cross-site Scripting (XSS) vulnerability, caused by improper sanitization of AI prompt responses, allows attackers to inject malicious HTML or script into web pages. When other users view these compromised pages, their sessions could be stolen, or the user interface could be manipulated.

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