# CVE-2021-20183: Moodle Vulnerable to Reflected Cross-site Scripting

- Severity: Medium 5.4 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.83%, higher than 58% of CVEs (2026-12-02)
- Published: 2021-01-28T18:36:39.000Z
- Modified: 2026-09-08T08:48:14.573Z
- Also known as: GHSA-xhfx-rm8q-c3xv, BIT-MOODLE-2021-20183
- Weaknesses: CWE-79
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- moodle: moodle 3.10.1
- moodle/moodle (Packagist): from 3.10 before 4.0.0-beta
- moodle moodle: before 3.10.1
- moodle (Bitnami): before 3.10.1

## Every score

- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://moodle.org/mod/forum/discuss.php?d=417166> (advisory, patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-20183> (advisory, web)
- <https://github.com/moodle/moodle/commit/dc9de7b0d487b73c23c221dc0b8b6e01654921f3> (web)

## Sources

- CVE List: [CVE-2021-20183](https://www.cve.org/CVERecord?id=CVE-2021-20183), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-xhfx-rm8q-c3xv](https://github.com/advisories/GHSA-xhfx-rm8q-c3xv), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2021-20183](https://nvd.nist.gov/vuln/detail/CVE-2021-20183), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MOODLE-2021-20183](https://osv.dev/vulnerability/BIT-MOODLE-2021-20183), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-20183 · Whole record: https://cve.day/CVE-2021-20183.json · Rebuilt by cve.day 2026-11-25T22:57:59.748Z
