CVE-2022-50943 Details
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.
A cross-site scripting (XSS) vulnerability has been identified in Moodle LMS version 4.0. This vulnerability allows unauthenticated attackers to inject malicious scripts by submitting payloads through the search parameter in the course search page. The injected JavaScript can execute arbitrary scripts in the context of the user's browser, potentially leading to the theft of session cookies.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 11, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.in.moodle.com/moodle | [email protected] | Product |
| https://moodle.org/ | [email protected] | Product |
| https://www.exploit-db.com/exploits/51115 | [email protected] | ExploitVDB Entry |
| https://www.vulncheck.com/advisories/moodle-lms-cross-site-scripting-via-course-search-php | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| moodle moodle | <= 4.0.0 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 25, 2026 | CVE Translated | [email protected] |
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 27, 2026 | Initial Analysis | [email protected] |
| May 10, 2026 | New CVE Received | [email protected] |