# CVE-2021-43558: Cross-site Scripting in moodle

- 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): 0.87%, higher than 57% of CVEs (2026-11-30)
- Published: 2021-11-22T15:59:46.000Z
- Modified: 2026-09-08T08:48:14.903Z
- Also known as: GHSA-wpfp-q843-v772, BIT-MOODLE-2021-43558
- Weaknesses: CWE-79
- Assigned by: fedora

## Description

A flaw was found in Moodle in versions 3.11 to 3.11.3, 3.10 to 3.10.7, 3.9 to 3.9.10 and earlier unsupported versions. A URL parameter in the filetype site administrator tool required extra sanitizing to prevent a reflected XSS risk.

(As written by CVE List.)

## Affected

- moodle: moodle 3.11.4, moodle 3.10.8 and moodle 3.9.11
- moodle/moodle (Packagist): from 3.11.0 before 3.11.4; from 3.10.0 before 3.10.8; from 3.9.0 before 3.9.11
- moodle moodle: up to 3.8.8; from 3.9.0 before 3.9.11; from 3.10.0 before 3.10.8; from 3.11.0 before 3.11.4
- fedoraproject extra_packages_for_enterprise_linux: 7.0
- fedoraproject fedora: 35
- moodle (Bitnami): before 3.8.9; from 3.9.0 before 3.9.11; from 3.10.0 before 3.10.8; from 3.11.0 before 3.11.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://bugzilla.redhat.com/show_bug.cgi?id=2021515> (advisory, issue-tracking, third-party-advisory, web)
- <https://moodle.org/mod/forum/discuss.php?d=429097> (advisory, patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-43558> (advisory, web)
- <https://github.com/moodle/moodle> (package)

## Sources

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

---

Page: https://cve.day/CVE-2021-43558 · Whole record: https://cve.day/CVE-2021-43558.json · Rebuilt by cve.day 2026-11-25T22:24:36.090Z
