{"id":"GHSA-xhfx-rm8q-c3xv","summary":"Moodle Vulnerable to Reflected Cross-site Scripting","details":"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.","aliases":["BIT-moodle-2021-20183","CVE-2021-20183"],"modified":"2026-08-24T00:35:08.339653721Z","published":"2022-05-24T17:40:31Z","database_specific":{"cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2023-07-10T22:23:56Z","nvd_published_at":"2021-01-28T19:15:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20183"},{"type":"WEB","url":"https://github.com/moodle/moodle/commit/dc9de7b0d487b73c23c221dc0b8b6e01654921f3"},{"type":"WEB","url":"https://moodle.org/mod/forum/discuss.php?d=417166"}],"affected":[{"package":{"name":"moodle/moodle","ecosystem":"Packagist","purl":"pkg:composer/moodle/moodle"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.10"},{"fixed":"4.0.0-beta"}]}],"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"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-xhfx-rm8q-c3xv/GHSA-xhfx-rm8q-c3xv.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"}]}