Skip to content
OpenAdvisories
Medium · 6.1 CVE-2022-50943 EUVD-2022-55968GHSA-f439-48pp-hm2q

Moodle LMS 4.0 Cross-Site Scripting via course search.php

Published May 10, 2026 · Updated Jul 15, 2026 · Assigned by VulnCheck

Description

Moodle LMS 4.0 contains a cross-site scripting vulnerability that allows unauthenticated attackers to inject malicious scripts by submitting payloads through the search parameter. Attackers can inject JavaScript code via the search field in course/search.php to execute arbitrary scripts in users' browsers and steal session cookies.

Affected products

VendorProductAffectedFixed
Moodle Moodle LMS 4.0 —

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 —

References