CVE-2022-50943
published medium CVSS 4.0 · 5.1Moodle LMS 4.0 Cross-Site Scripting via course search.php
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Moodle | — | Moodle LMS4.0 | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.1 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.1 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Moodle | Moodle LMS | 4.0 (affected) | VulnCheck · cna |
Weaknesses
1- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
4- Product Reference https://git.in.moodle.com/moodle
- Official Product Homepage https://moodle.org/
- ExploitDB-51115 https://www.exploit-db.com/exploits/51115
- VulnCheck Advisory: Moodle LMS 4.0 Cross-Site Scripting via course search.php https://www.vulncheck.com/advisories/moodle-lms-cross-site-scripting-via-course-search-php
Provider assertions
2VulnCheck · cna
Moodle LMS 4.0 Cross-Site Scripting via course search.php
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2e0cb0ba7be867e940d1e81b9149e08880b3878c208653bd83a28e3e88667da7
- Ingested
- 23 Sep 2026, 08:04:58 UTC
- Source record
- Official CVE record