Vulnerability · Published May 10, 2026 · Assigned by VulnCheck
CVE-2022-50943Moodle LMS 4.0 Cross-Site Scripting via course search.php
Medium 6.1
In plain English
A medium-severity cross-site scripting in Moodle LMS from Moodle. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 23% of all known vulnerabilities).
Severity (CVSS 3.1)6.1Medium
Exploit odds (30 days)0.3%top 76.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official 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 (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Moodle | Moodle LMS | 4.0 |
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
References
- ExploitDB-51115 exploit
- Official Product Homepage product
- Product Reference product
- VulnCheck Advisory: Moodle LMS 4.0 Cross-Site Scripting via course search.php third-party-advisory