Quick answers
- Is CVE-2022-50943 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2022-50943 being exploited in the wild.
- How severe is CVE-2022-50943?
- Medium severity, with a CVSS score of 6.1, published 10 May 2026.
- Which products and versions are affected?
- Moodle Moodle LMS 4.0.0 and earlier.
- Is there a fix for CVE-2022-50943?
- No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
- How is CVE-2022-50943 attacked?
- It is attacked over the network, in a web application.
- Am I affected by CVE-2022-50943?
- Check whether you run Moodle. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
A reflected cross-site scripting (XSS) vulnerability exists in Moodle LMS versions up to and including 4.0.0. The flaw is located in 'course/search.php' due to improper neutralization of the 'search' parameter before it is echoed back to the page via the search_courses method. An unauthenticated remote attacker can craft a malicious URL containing a JavaScript payload; if a user visits this link, the script executes in their browser context. This can be used to steal session cookies, perform actions on behalf of the user, or deface the site. Public exploit code is available.
Affected products
- Moodle Moodle LMS 4.0.0 and earlier
Timeline
- 2022-10-26: other: Vulnerability discovered by researcher
- 2023-03-28: disclosed: Exploit published on Exploit-DB
- 2026-05-10: advisory: NVD/VulnCheck advisory published