CVE-2022-50943: Vulnerability in Moodle
Low urgency. 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.
CWE-79
- Exploitation
- None confirmed
- Severity
- 6.1 of 10
- Attack likelihood
- 1.1 % in 30 days
- Fix
- None recorded
- Patch deadline
- No deadline set
Details
- EU ID
- EUVD-2022-55968
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weakness
- CWE-79
- Published
- 10 May 2026
- Last change
- 25 Jul 2026
- Likelihood rank
- Higher than 67 % of all rated vulnerabilities
- Analysis status
- Analyzed
Affected products
Affected versions and the first fixed release
- Moodle Through 4.0.0. No fixed version recorded
Advisories
Vendor and security advisories
- git.in.moodle.com/moodle
- moodle.org
- vulncheck.com/advisories/moodle-lms-cross-site-scripting-via-course-search-php
Exploit code
Public exploits and proofs of concept, handle with care
Related
- Moodle vulnerabilities Recent advisories, watch this product