What’s Vulnerable › Vulnerabilities
CVE-2021-20186
- Severity: medium (CVSS 5.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-01-28 · updated 2026-06-17
- Weakness: CWE-79
Description
It was found in Moodle before version 3.10.1, 3.9.4, 3.8.7 and 3.5.16 that if the TeX notation filter was enabled, additional sanitizing of TeX content was required to prevent the risk of stored XSS.
Affected products
- Moodle: before 3.5.16; from 3.8.0 before 3.8.7; from 3.9.0 before 3.9.4; from 3.10.0 before 3.10.1 — fixed in 3.10.1, 3.5.16, 3.8.7, 3.9.4
How to fix
Upgrade to a fixed version: Moodle 3.10.1, 3.5.16, 3.8.7, 3.9.4. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2021-20186 or the next vulnerability affects your stack