CVE-2021-20183 json
Moodle Vulnerable to Reflected Cross-site Scripting
published 2021-01-28 5 y ago modified 2026-09-08 2 mo ago also BIT-moodle-2021-20183 , EUVD-2022-5798 , GHSA-xhfx-rm8q-c3xv
- cvss
- 5.4
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 57%
- public exploits
- 0
- none known
Summary
It was found in Moodle before version 3.10.1 that some search inputs were vulnerable to reflected XSS due to insufficient escaping of search queries.
Patch / fix
- packagist moodle/moodle 4.0.0-beta
- bitnami moodle 3.10.1
- moodle moodle 3.10.1
Exploit prediction
0.83% chance of exploitation in the next 30 days, higher than 57% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| OSV | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | moodle/moodle | >=3.10, <4.0.0-beta |
4.0.0-beta |
| bitnami | moodle | <3.10.1 |
3.10.1 |
Affected products
- n/a moodle
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
moodle.org
/mod/forum/discuss.php?d=417166
web, patch, vendor-advisory, advisory
-
github.com
/moodle/moodle/commit/dc9de7b0d487b73c23c221dc0b8b6e01654921f3
web
-
nvd.nist.gov
/vuln/detail/CVE-2021-20183
advisory, web
Sources
- CVE List CVE-2021-20183
- GitHub Advisory GHSA-xhfx-rm8q-c3xv
- NVD CVE-2021-20183
- OSV BIT-moodle-2021-20183
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.