{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-20186","id":"CVE-2021-20186","title":"Moodle Cross-site Scripting","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.","descriptionLong":"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.","published":"2021-01-28T18:38:03.000Z","updated":"2026-10-24T10:30:51.907046519Z","reserved":"2020-12-17T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"redhat","metric":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"},{"version":"2.0","score":2.1,"vector":"AV:N/AC:H/Au:S/C:P/I:N/A:N","rating":"low","source":"NVD"}],"rating":"medium","products":["moodle"],"affectedProducts":[{"vendor":"n/a","product":"moodle","defaultStatus":null,"versions":[{"status":"affected","version":"moodle 3.10.1, moodle 3.9.4, moodle 3.8.7, moodle 3.5.16"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"moodle/moodle","purl":"pkg:composer/moodle/moodle","ranges":[">=3.10 <3.10.1",">=3.9 <3.9.4",">=3.8 <3.8.7",">=3.5 <3.5.16"],"fixed":["3.10.1","3.9.4","3.8.7","3.5.16"],"advisory":"GHSA-h8m4-h385-qhqv"}],"cwes":["CWE-79"],"aliases":["BIT-moodle-2021-20186","GHSA-h8m4-h385-qhqv"],"references":[{"url":"https://moodle.org/mod/forum/discuss.php?d=417170","tags":["x_refsource_MISC","x_transferred","Patch","Vendor Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20186","tags":["advisory"]},{"url":"https://github.com/moodle/moodle","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00763,"epssPercentile":0.56104,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-20186","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20186","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-20186","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-h8m4-h385-qhqv","ok":true,"note":"GHSA-h8m4-h385-qhqv"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-20186","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}