# CVE-2021-32475: Moodle stored Cross-site Scripting

- Severity: Medium 5.4 (CVSS:3.1, scored by NVD) `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.59%, higher than 49% of CVEs (2026-12-01)
- Published: 2022-03-11T17:54:24.000Z
- Modified: 2026-09-08T08:48:14.600Z
- Also known as: GHSA-5wjh-v7c8-wrhx, BIT-MOODLE-2021-32475
- Weaknesses: CWE-78, CWE-79
- Assigned by: redhat

## Description

ID numbers displayed in the quiz grading report required additional sanitizing to prevent a stored XSS risk. Moodle 3.10 to 3.10.3, 3.9 to 3.9.6, 3.8 to 3.8.8, 3.5 to 3.5.17 and earlier unsupported versions are affected.

(As written by CVE List.)

## Affected

- moodle: 3.10 to 3.10.3, 3.9 to 3.9.6, 3.8 to 3.8.8, 3.5 to 3.5.17
- moodle/moodle (Packagist): from 3.5 before 3.5.18; from 3.8 before 3.8.9; from 3.9 before 3.9.7; from 3.10 before 3.10.4
- moodle moodle: before 3.5.18; from 3.8.0 before 3.8.9; from 3.9.0 before 3.9.7; from 3.10.0 before 3.10.4
- moodle (Bitnami): before 3.5.18; from 3.8.0 before 3.8.9; from 3.9.0 before 3.9.7; from 3.10.0 before 3.10.4

## Every score

- 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`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

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

## Sources

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

---

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