What’s Vulnerable › Vulnerabilities
CVE-2022-50943: Moodle LMS 4.0 Cross-Site Scripting via course search.php
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-05-10 · updated 2026-07-25
- Weakness: CWE-79
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
- Moodle: through 4.0.0
References
- https://git.in.moodle.com/moodle
- https://moodle.org/
- https://www.exploit-db.com/exploits/51115
- https://www.vulncheck.com/advisories/moodle-lms-cross-site-scripting-via-course-search-php
Get alerted when CVE-2022-50943 or the next vulnerability affects your stack