Skip to content
Fencer Vulns
medium 5.4

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

Sources

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.