5.1medium
Moodle LMS 4.0 Cross-Site Scripting via course search.php
- Severity
- 5.1medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 1.10% (higher than 66% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- BIT-MOODLE-2022-50943
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
| Product or package | Versions | Reported by |
|---|---|---|
| Moodle Moodle LMS | 4.0 | CVE List |
| moodle moodle | up to 4.0.0 | NVD |
| moodle (Bitnami) | up to 4.0.0 | Bitnami Vulnerability Database |
All scores
| VulnCheck | 5.1medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| VulnCheck | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Moodle LMS 4.0 contiene una vulnerabilidad de cross-site scripting que permite a atacantes no autenticados inyectar scripts maliciosos mediante el envío de cargas útiles a través del parámetro de búsqueda. Los atacantes pueden inyectar código JavaScript a través del campo de búsqueda en course/search.PHP para ejecutar scripts arbitrarios en los navegadores de los usuarios y robar cookies de sesión.
References
| https://www.exploit-db.com/exploits/51115 | evidence, exploit, vdb-entry | |
| https://moodle.org/ | product, web | |
| https://git.in.moodle.com/moodle | product, web | |
| https://www.vulncheck.com/advisories/moodle-lms-cross-site-scripting-via-course-search-php | advisory, third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-50943 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-50943 changed 2026-07-15 | CVE Terms of Use |
| NVD | CVE-2022-50943 changed 2026-07-25 | Public domain |
| Bitnami Vulnerability Database | BIT-MOODLE-2022-50943 changed 2026-09-08 | Apache-2.0 |