All vulnerabilities

Servers and applications

CVE-2022-50943

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.

Severity
Medium 5.1
Published
10 May 2026
Last changed
25 Jul 2026
Added to UpHeron
1 Nov 2026
Exploit chance
0.3% in the next 30 daysHigher than 23% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · No login needed · Needs someone to click or open something
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Sources
NVD

Affected software

SoftwareAffected versions
MoodleServers and applications · cpe:a:moodle:moodle
  • Every version up to 4.0.0

About Moodle

e-learning platform

From Wikidata, CC0 1.0.
Monthly downloads (Packagist)
2,728Packagist, 15 Nov 2026
Total downloads (Packagist)
98,594Packagist, 15 Nov 2026
GitHub stars
7,615GitHub, 15 Nov 2026
Forks
7,716GitHub, 15 Nov 2026
Developer
Martin DougiamasWikidata
License
GNU General Public License, version 3.0, GNU General Public LicenseWikidata
Written in
PHPWikidata
First released
20 Aug 2002Wikidata
First published on GitHub
16 Dec 2009GitHub

Release lines

ReleaseLatestSecurity fixes
5.3 (LTS)LTS5.3.1Until 1 Oct 2029
5.25.2.5Until 4 Oct 2027
5.15.1.9Until 19 Apr 2027
5.05.0.12Ended 5 Oct 2026
4.5 (LTS)LTS4.5.16Until 4 Oct 2027
4.44.4.12Ended 8 Dec 2025

From endoflife.date.

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2022-50943
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2022-50943