Skip to content
OpenAdvisories
Medium · 6.1 CVE-2022-45150 BIT-moodle-2022-45150EUVD-2022-7258GHSA-6gx2-g773-hv9h

Moodle reflected cross-site scripting vulnerability in policy tool

Published Nov 23, 2022 · Updated Apr 25, 2025 · Assigned by fedora

Description

A reflected cross-site scripting vulnerability was discovered in Moodle. This flaw exists due to insufficient sanitization of user-supplied data in policy tool. An attacker can trick the victim to open a specially crafted link that executes an arbitrary HTML and script code in user's browser in context of vulnerable website. This vulnerability may allow an attacker to perform cross-site scripting (XSS) attacks to gain access potentially sensitive information and modification of web pages.

Affected products

VendorProductAffectedFixed
— Moodle Fixed in moodle 4.0.5, moodle 3.11.11, moodle 3.9.18 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS moodle No fix yet —
Ubuntu Pro 16.04 LTS moodle No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist moodle/moodle >= 3.9, < 3.9.18 3.9.18 GHSA-6gx2-g773-hv9h
Packagist moodle/moodle >= 3.11, < 3.11.11 3.11.11 GHSA-6gx2-g773-hv9h
Packagist moodle/moodle >= 4.0, < 4.0.5 4.0.5 GHSA-6gx2-g773-hv9h

References