{"id":"GHSA-h8m4-h385-qhqv","aliases":["BIT-moodle-2021-20186","CVE-2021-20186"],"title":"Moodle Cross-site Scripting","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"MODERATE","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.","severity":"medium","score":5.4,"published":"2022-05-24T17:40:31.000Z","modified":"2024-04-23T23:58:25.368Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-h8m4-h385-qhqv","url":"https://osv.dev/vulnerability/GHSA-h8m4-h385-qhqv"}],"ranges":[{"events":[{"introduced":"3.10"},{"fixed":"3.10.1"}],"type":"ECOSYSTEM"}],"versions":["v3.10.0","v3.10.0-beta","v3.10.0-rc1","v3.10.0-rc2"],"fixed":["3.10.1"]},{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-h8m4-h385-qhqv","url":"https://osv.dev/vulnerability/GHSA-h8m4-h385-qhqv"}],"ranges":[{"events":[{"introduced":"3.9"},{"fixed":"3.9.4"}],"type":"ECOSYSTEM"}],"versions":["v3.9.0","v3.9.0-beta","v3.9.0-rc1","v3.9.0-rc2","v3.9.0-rc3","v3.9.1","v3.9.2","v3.9.3"],"fixed":["3.9.4"]},{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-h8m4-h385-qhqv","url":"https://osv.dev/vulnerability/GHSA-h8m4-h385-qhqv"}],"ranges":[{"events":[{"introduced":"3.8"},{"fixed":"3.8.7"}],"type":"ECOSYSTEM"}],"versions":["v3.8.0","v3.8.0-beta","v3.8.0-rc1","v3.8.1","v3.8.2","v3.8.3","v3.8.4","v3.8.5","v3.8.6"],"fixed":["3.8.7"]},{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-h8m4-h385-qhqv","url":"https://osv.dev/vulnerability/GHSA-h8m4-h385-qhqv"}],"ranges":[{"events":[{"introduced":"3.5"},{"fixed":"3.5.16"}],"type":"ECOSYSTEM"}],"versions":["v3.5.0","v3.5.0-beta","v3.5.0-rc1","v3.5.1","v3.5.10","v3.5.11","v3.5.12","v3.5.13","v3.5.14","v3.5.15","v3.5.2","v3.5.3","v3.5.4","v3.5.5","v3.5.6","v3.5.7","v3.5.8","v3.5.9"],"fixed":["3.5.16"]}],"sourceAffected":[],"references":["https://nvd.nist.gov/vuln/detail/CVE-2021-20186","https://github.com/moodle/moodle","https://moodle.org/mod/forum/discuss.php?d=417170"],"sources":[{"name":"OSV","id":"GHSA-h8m4-h385-qhqv","modified":"2024-04-23T23:58:25.368696Z","url":"https://osv.dev/vulnerability/GHSA-h8m4-h385-qhqv"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-28T22:15:33.378Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}