{"id":"CVE-2022-50943","published":"2026-05-10T12:12:44Z","modified":"2026-07-15T01:24:44Z","title":"Moodle LMS 4.0 Cross-Site Scripting via course search.php","vendor":"Moodle","product":"Moodle LMS","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01105,"percentile":0.66472,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://www.exploit-db.com/exploits/51115","tags":["exploit"]},{"url":"https://moodle.org/","tags":["product"]},{"url":"https://git.in.moodle.com/moodle","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/moodle-lms-cross-site-scripting-via-course-search-php","tags":["third-party-advisory"]}],"priority":{"score":22.6,"factors":[{"name":"EPSS percentile","points":13.29},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.27}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2023-03-28"},"first":{"date":"2023-03-28","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/51115"},"provenance":"source"},"vendorSlug":"moodle","affectedVersions":[{"vendor":"Moodle","product":"Moodle LMS","versions":["4.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-11T16:30:40.253373Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-55968","exploited":false,"provenance":"source"},"exploits":[{"id":51115,"url":"https://www.exploit-db.com/exploits/51115","title":"Moodle LMS 4.0 - 'search' Cross-Site Scripting (XSS)","date":"2023-03-28","verified":false,"provenance":"source"}],"exploitRefs":["https://www.exploit-db.com/exploits/51115"]}