1. Home
  2. Vulnerabilities
  3. CVE-2022-50943

CVE-2022-50943

Moodle LMS 4.0 contains a cross-site scripting vulnerability that allows unauthenticated attackers to inject…

Published 10 May 2026 · modified 25 Jul 2026 · Sources: NVD, CNA (vendor or assigner), EPSS (FIRST)

Medium 52/100

Summary

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 products and versions

Moodle (1 line(s))
Moodle
ProductVersionsFixed inSource
Moodle up to 4.0.0 (included) — NVD

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

Exploit reported by sources

These links are tagged “exploit” by the NVD or CVE.org. We have neither verified nor copied them; open with care.

Timeline

  1. — Public proof of concept seen (exploitdb)
  2. — CVE published (cve)

References

Data provenance

Status
NVD
Publication date
NVD
Description
NVD
CVSS score
CNA (vendor or assigner)
Weakness (CWE)
CNA (vendor or assigner)
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N (CVSS 3.1, CNA:disclosure@vulncheck.com)
Weakness
CWE-79 · Script intersite (XSS)

How this data is obtained and calculated