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.
References
| Link | Resource |
|---|---|
| https://git.in.moodle.com/moodle | Product |
| https://moodle.org/ | Product |
| https://www.exploit-db.com/exploits/51115 | Exploit VDB Entry |
| https://www.vulncheck.com/advisories/moodle-lms-cross-site-scripting-via-course-search-php | Third Party Advisory |
Configurations
History
No history.
Information
Published : 2026-05-10 13:16
Updated : 2026-07-25 10:10
NVD link : CVE-2022-50943
Mitre link : CVE-2022-50943
CVE.ORG link : CVE-2022-50943
JSON object : View
Products Affected
moodle
- moodle
CWE
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
