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.

NVD

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.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
NONE
User Interaction:
REQUIRED
Scope:
CHANGED
Confidentiality Impact:
NONE
Integrity Impact:
NONE
Availability Impact:
NONE

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.

 

Affected Versions

Moodle LMS Version 4.0 is affected by CVE-2022-50943