CVE-2022-50943

published 10 May 2026 · updated 15 Jul 2026

Moodle LMS 4.0 Cross-Site Scripting via course search.php

7.1HighCVSS 6.1EPSS 0%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Moodle=4.0

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-50943 severity on Zeptric[![CVE-2022-50943](https://zeptric.io/badge/cve/CVE-2022-50943.svg)](https://zeptric.io/cve/CVE-2022-50943)