Skip to content
OpenAdvisories
Medium · 5.4 CVE-2022-45151 BIT-moodle-2022-45151EUVD-2022-7467GHSA-xv72-6pgh-cjj8

Moodle stored-XSS vulnerability in some "social" user profile fields

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

Description

The stored-XSS vulnerability was discovered in Moodle which exists due to insufficient sanitization of user-supplied data in several "social" user profile fields. An attacker could inject and execute arbitrary HTML and script code in user's browser in context of vulnerable website.

Affected products

VendorProductAffectedFixed
— Moodle Fixed in moodle 4.0.5, moodle 3.11.11 —

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.11, < 3.11.11 3.11.11 GHSA-xv72-6pgh-cjj8
Packagist moodle/moodle >= 4.0, < 4.0.5 4.0.5 GHSA-xv72-6pgh-cjj8

References