CVE-2022-50943: Moodle LMS 4.0 Cross-Site Scripting via course search.php

Published May 10, 2026
·
Updated

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 Software

1 affected component
Moodle Moodle LMS=4.0

Event History

May 10, 2026
CVE Published
via MITRE·12:12 PM
Data Sourced
via MITRE·12:12 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:16 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2022-50943?

CVE-2022-50943 is classified as a medium severity vulnerability due to its potential for cross-site scripting attacks.

2

How do I fix CVE-2022-50943?

To fix CVE-2022-50943, update your Moodle LMS to version 4.0.1 or later where the vulnerability is patched.

3

Who is affected by CVE-2022-50943?

CVE-2022-50943 affects users of Moodle LMS version 4.0.

4

What type of vulnerability is CVE-2022-50943?

CVE-2022-50943 is a cross-site scripting (XSS) vulnerability enabling attackers to inject malicious scripts.

5

Can CVE-2022-50943 be exploited without authentication?

Yes, CVE-2022-50943 can be exploited by unauthenticated attackers through the search parameter.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203