CVE-2022-50943 MEDIUM

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

Vendor Moodle
Product Moodle LMS
Weakness CWE-79 · XSS
Published May 10, 2026
Last update May 24, 2026

CVSS base score

5.1/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction
Confidentiality
Integrity

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

What the vulnerability does

Description

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.

Key dates

Disclosure timeline

May 10, 2026 CVE published
May 24, 2026 Record updated