{"id":"GHSA-xhfx-rm8q-c3xv","aliases":["BIT-moodle-2021-20183","CVE-2021-20183"],"title":"Moodle Vulnerable to Reflected Cross-site Scripting","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"MODERATE","description":"It was found in Moodle before version 4.0.0-beta that some search inputs were vulnerable to reflected Cross-site Scripting (XSS) due to insufficient escaping of search queries.","severity":"medium","score":5.4,"published":"2022-05-24T17:40:31.000Z","modified":"2024-02-16T08:10:08.244Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-xhfx-rm8q-c3xv","url":"https://osv.dev/vulnerability/GHSA-xhfx-rm8q-c3xv"}],"ranges":[{"events":[{"introduced":"3.10"},{"fixed":"4.0.0-beta"}],"type":"ECOSYSTEM"}],"versions":["v3.10.0","v3.10.0-beta","v3.10.0-rc1","v3.10.0-rc2","v3.10.1","v3.10.10","v3.10.11","v3.10.2","v3.10.3","v3.10.4","v3.10.5","v3.10.6","v3.10.7","v3.10.8","v3.10.9","v3.11.0","v3.11.0-beta","v3.11.0-rc1","v3.11.0-rc2","v3.11.1","v3.11.10","v3.11.11","v3.11.12","v3.11.13","v3.11.14","v3.11.15","v3.11.16","v3.11.17","v3.11.18","v3.11.2","v3.11.3","v3.11.4","v3.11.5","v3.11.6","v3.11.7","v3.11.8","v3.11.9"],"fixed":["4.0.0-beta"]}],"sourceAffected":[],"references":["https://nvd.nist.gov/vuln/detail/CVE-2021-20183","https://github.com/moodle/moodle/commit/dc9de7b0d487b73c23c221dc0b8b6e01654921f3","https://moodle.org/mod/forum/discuss.php?d=417166"],"sources":[{"name":"OSV","id":"GHSA-xhfx-rm8q-c3xv","modified":"2024-02-16T08:10:08.244980Z","url":"https://osv.dev/vulnerability/GHSA-xhfx-rm8q-c3xv"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-28T19:20:37.165Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}