# CVE-2021-36398: Moodle Cross-site Scripting vulnerability

- Severity: Medium 5.4 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/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.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2023-03-06T00:00:00.000Z
- Modified: 2026-09-08T08:48:14.614Z
- Also known as: GHSA-786g-xv8v-9h93, BIT-MOODLE-2021-36398
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: fedora

## Description

In moodle, ID numbers displayed in the web service token list required additional sanitizing to prevent a stored XSS risk.

(As written by CVE List.)

## Affected

- Moodle: 3.11
- moodle/moodle (Packagist): from 3.11 before 3.11.1
- moodle moodle: 3.11.0
- moodle (Bitnami): from 3.11.0 before 3.11.1

## Every score

- CISA-ADP: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

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

## Sources

- CVE List: [CVE-2021-36398](https://www.cve.org/CVERecord?id=CVE-2021-36398), CVE Terms of Use, modified 2025-03-07
- GitHub Advisory Database: [GHSA-786g-xv8v-9h93](https://github.com/advisories/GHSA-786g-xv8v-9h93), CC-BY-4.0, modified 2025-03-07
- NVD: [CVE-2021-36398](https://nvd.nist.gov/vuln/detail/CVE-2021-36398), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MOODLE-2021-36398](https://osv.dev/vulnerability/BIT-MOODLE-2021-36398), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-36398 · Whole record: https://cve.day/CVE-2021-36398.json · Rebuilt by cve.day 2026-11-25T22:58:08.274Z
