Skip to content
OpenAdvisories
High · 7.1 CVE-2022-40313 BIT-moodle-2022-40313EUVD-2022-7119GHSA-jqgr-gh62-jf53

Moodle Stored Cross-site Scripting and page denial of service

Published Sep 30, 2022 · Updated May 20, 2025 · Assigned by fedora

Description

Recursive rendering of Mustache template helpers containing user input could, in some cases, result in an XSS risk or a page failing to load.

Affected products

VendorProductAffectedFixed
— moodle 4.0 to 4.0.3, 3.11 to 3.11.9, 3.9 to 3.9.16 and earlier unsupported versions —

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.17 3.9.17 GHSA-jqgr-gh62-jf53
Packagist moodle/moodle >= 3.11, < 3.11.10 3.11.10 GHSA-jqgr-gh62-jf53
Packagist moodle/moodle >= 4.0, < 4.0.4 4.0.4 GHSA-jqgr-gh62-jf53

References