Moodle LMS 4.0 XSS in course/search.php via search param
CVE-2022-50943 Published on May 10, 2026
Moodle LMS 4.0 Cross-Site Scripting via course search.php
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.
Vulnerability Analysis
CVE-2022-50943 can be exploited with network access, requires user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity and availability.
Weakness Type
What is a XSS Vulnerability?
The software does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
CVE-2022-50943 has been classified to as a XSS vulnerability or weakness.
Products Associated with CVE-2022-50943
Want to know whenever a new CVE is published for Moodle? stack.watch will email you.