{"id":"GHSA-h7h6-fwpv-ggvx","summary":"Moodle contains Stored XSS via ID number user profile field","details":"The ID number user profile field required additional sanitizing to prevent a stored XSS risk in moodle before 3.10.2, 3.9.5, 3.8.8, 3.5.17.","aliases":["BIT-moodle-2021-20279","CVE-2021-20279"],"modified":"2024-02-14T05:50:43.984097Z","published":"2022-05-24T17:44:37Z","database_specific":{"nvd_published_at":"2021-03-15T22:15:00Z","cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2023-07-13T17:04:27Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20279"},{"type":"WEB","url":"https://github.com/moodle/moodle/commit/a7e0ba1e71205ccb0a73dedee414f1a167ee2ed7"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1939033"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AFSNJ7XHVTC52RSRX2GBQFF3VEEAY2MS"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UFH5DDMU5TZ3JT4Q52WMRAHACA5MHIMT"},{"type":"WEB","url":"https://moodle.org/mod/forum/discuss.php?d=419650"}],"affected":[{"package":{"name":"moodle/moodle","ecosystem":"Packagist","purl":"pkg:composer/moodle/moodle"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.10"},{"fixed":"3.10.2"}]}],"versions":["v3.10.0","v3.10.0-beta","v3.10.0-rc1","v3.10.0-rc2","v3.10.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-h7h6-fwpv-ggvx/GHSA-h7h6-fwpv-ggvx.json","last_known_affected_version_range":"\u003c= 3.10.1"}},{"package":{"name":"moodle/moodle","ecosystem":"Packagist","purl":"pkg:composer/moodle/moodle"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.9"},{"fixed":"3.9.5"}]}],"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","v3.9.4"],"database_specific":{"last_known_affected_version_range":"\u003c= 3.9.4","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-h7h6-fwpv-ggvx/GHSA-h7h6-fwpv-ggvx.json"}},{"package":{"name":"moodle/moodle","ecosystem":"Packagist","purl":"pkg:composer/moodle/moodle"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.8"},{"fixed":"3.8.8"}]}],"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","v3.8.7"],"database_specific":{"last_known_affected_version_range":"\u003c= 3.8.7","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-h7h6-fwpv-ggvx/GHSA-h7h6-fwpv-ggvx.json"}},{"package":{"name":"moodle/moodle","ecosystem":"Packagist","purl":"pkg:composer/moodle/moodle"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.5"},{"fixed":"3.5.17"}]}],"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.16","v3.5.2","v3.5.3","v3.5.4","v3.5.5","v3.5.6","v3.5.7","v3.5.8","v3.5.9"],"database_specific":{"last_known_affected_version_range":"\u003c= 3.5.16","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-h7h6-fwpv-ggvx/GHSA-h7h6-fwpv-ggvx.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"}]}