# CVE-2021-32478: Moodle reflected XSS

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/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): 1.31%, higher than 71% of CVEs (2026-12-01)
- Published: 2022-03-11T00:00:00.000Z
- Modified: 2026-09-08T08:48:14.668Z
- Also known as: GHSA-78fm-qhh8-8858, BIT-MOODLE-2021-32478
- Weaknesses: CWE-79, CWE-601
- Assigned by: redhat

## Description

The redirect URI in the LTI authorization endpoint required extra sanitizing to prevent reflected XSS and open redirect risks. Moodle versions 3.10 to 3.10.3, 3.9 to 3.9.6, 3.8 to 3.8.8 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
- moodle/moodle (Packagist): from 3.10 before 3.10.4; from 3.9 before 3.9.7; from 3.8 before 3.8.9
- moodle moodle: before 3.8.9; from 3.9.0 before 3.9.7; from 3.10.0 before 3.10.4
- moodle (Bitnami): 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 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/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=422314> (advisory, patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32478> (advisory, web)
- <https://github.com/moodle/moodle/commit/752ad3d8eb4f9ac22dbf1461aa69d6e0baee503e> (web)

## Sources

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

---

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