{"id":"CVE-2021-32475","aliases":["CVE-2021-32475","GHSA-5wjh-v7c8-wrhx","BIT-MOODLE-2021-32475"],"related":[],"kind":"vulnerability","state":"published","title":"Moodle stored Cross-site Scripting","summary":"ID numbers displayed in the quiz grading report required additional sanitizing to prevent a stored XSS risk. Moodle 3.10 to 3.10.3, 3.9 to 3.9.6, 3.8 to 3.8.8, 3.5 to 3.5.17 and earlier unsupported versions are affected.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"ID numbers displayed in the quiz grading report required additional sanitizing to prevent a stored XSS risk. Moodle 3.10 to 3.10.3, 3.9 to 3.9.6, 3.8 to 3.8.8, 3.5 to 3.5.17 and earlier unsupported versions are affected.","source":"cvelist"},{"lang":"es","text":"Los números de identificación mostrados en el informe de calificación de los cuestionarios requerían un saneo adicional para evitar un riesgo de tipo XSS almacenado. Moodle versiones 3.10 a 3.10.3, 3.9 a 3.9.6, 3.8 a 3.8.8, 3.5 a 3.5.17 y versiones anteriores no soportadas están afectadas","source":"nvd"}],"published":"2022-03-11T17:54:24.000Z","modified":"2026-09-08T08:48:14.600Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","score":3.5,"rating":"LOW"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-78","CWE-79"],"affected":[{"ranges":[{"version":"3.10 to 3.10.3, 3.9 to 3.9.6, 3.8 to 3.8.8, 3.5 to 3.5.17","status":"affected"}],"product":"moodle","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.5","status":"affected","fixed":"3.5.18"}],"ecosystem":"Packagist","package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.8","status":"affected","fixed":"3.8.9"}],"ecosystem":"Packagist","package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.9","status":"affected","fixed":"3.9.7"}],"ecosystem":"Packagist","package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.10","status":"affected","fixed":"3.10.4"}],"ecosystem":"Packagist","package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.5.18"},{"status":"affected","introduced":"3.8.0","fixed":"3.8.9"},{"status":"affected","introduced":"3.9.0","fixed":"3.9.7"},{"status":"affected","introduced":"3.10.0","fixed":"3.10.4"}],"vendor":"moodle","product":"moodle","cpe":"cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.5.18"},{"type":"semver","introduced":"3.8.0","status":"affected","fixed":"3.8.9"},{"type":"semver","introduced":"3.9.0","status":"affected","fixed":"3.9.7"},{"type":"semver","introduced":"3.10.0","status":"affected","fixed":"3.10.4"}],"ecosystem":"Bitnami","package":"moodle","purl":"pkg:bitnami/moodle","source":"bitnami"}],"references":[{"url":"https://moodle.org/mod/forum/discuss.php?d=422309","tags":["advisory","patch","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32475","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/moodle/moodle","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-32475","url":"https://www.cve.org/CVERecord?id=CVE-2021-32475","licence":"CVE Terms of Use","modified":"2024-08-03T23:17:29.577Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5wjh-v7c8-wrhx","url":"https://github.com/advisories/GHSA-5wjh-v7c8-wrhx","licence":"CC-BY-4.0","modified":"2024-04-23T23:58:40.208Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-32475","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32475","licence":"Public domain","modified":"2026-06-17T03:53:01.843Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-MOODLE-2021-32475","url":"https://osv.dev/vulnerability/BIT-MOODLE-2021-32475","licence":"Apache-2.0","modified":"2026-09-08T08:48:14.600Z"}],"updatedAt":"2026-11-25T22:58:07.177Z","epss":{"score":0.00592,"percentile":0.49672,"date":"2026-12-01T12:00:22.000Z"}}