{"id":"CVE-2023-5541","summary":"Moodle: xss risk when using csv grade import method","details":"The CSV grade import method contained an XSS risk for users importing the spreadsheet, if it contained unsafe content.","aliases":["BIT-moodle-2023-5541","GHSA-28gc-4qq5-8q26"],"modified":"2026-05-28T04:09:45.752830508Z","published":"2023-11-09T19:18:22.119Z","database_specific":{"cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/5xxx/CVE-2023-5541.json","unresolved_ranges":[{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"4.2.0"},{"fixed":"4.2.3"},{"introduced":"4.1.0"},{"fixed":"4.1.6"},{"introduced":"4.0.0"},{"fixed":"4.0.11"},{"introduced":"3.11.0"},{"fixed":"3.11.17"},{"fixed":"3.9.24"}]}],"cna_assigner":"fedora"},"references":[{"type":"WEB","url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-79426"},{"type":"WEB","url":"https://git.moodle.org"},{"type":"WEB","url":"https://moodle.org/mod/forum/discuss.php?d=451582"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/5xxx/CVE-2023-5541.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-5541"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2243437"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/moodle/moodle","events":[{"introduced":"500c131eb49771e36f68d151dfa37fef5a9bc2df"},{"fixed":"71b514944365362ceaac1018bf7970c2b080c0f2"},{"introduced":"94f2d3fc4b974c5c7d500988c56b7ca15f58d7ec"},{"fixed":"a11ca2d1ff661ed37abb499e1fa37ab51324ca5a"},{"introduced":"8b359ad7a63cf219110bca80552fe3d4ea2a635d"},{"fixed":"b72ce02928c561588861d24330b2c3619f76d116"},{"introduced":"0ea3d45e04c3d54a3a472ddcb11606b30e227c50"},{"fixed":"b0a7bc3f42a0db2a0bf66b93623534f5f9af3294"},{"introduced":"ae4efa96ee8169a848c141ad21690165ea791552"},{"fixed":"97130393545528109fb8ce9d9e45e3f84fed3880"}],"database_specific":{"cpe":"cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"3.9.0"},{"fixed":"3.9.24"},{"introduced":"3.11.0"},{"fixed":"3.11.17"},{"introduced":"4.0.0"},{"fixed":"4.0.11"},{"introduced":"4.1.0"},{"fixed":"4.1.6"},{"introduced":"4.2.0"},{"fixed":"4.2.3"}],"source":"CPE_RANGE"}}],"versions":["v4.1.5","v4.2.2","v3.9.23","v3.11.16","v4.0.10","v4.0.9","v4.2.1","v3.9.22","v3.11.15","v4.1.4","v3.11.14","v3.9.21","v4.2.0","v4.0.8","v4.1.3","v4.0.7","v4.1.2","v3.11.13","v3.9.20","v4.0.6","v4.1.1","v3.9.19","v3.11.12","v4.1.0","v3.9.18","v3.11.11","v4.0.5","v3.11.10","v3.9.17","v4.0.4","v3.9.16","v3.11.9","v4.0.3","v4.0.2","v3.11.8","v3.9.15","v3.9.14","v4.0.1","v3.11.7","v4.0.0","v3.11.6","v3.9.13","v3.11.5","v3.9.12","v3.11.4","v3.9.11","v3.11.3","v3.9.10","v3.11.1","v3.11.2","v3.9.9","v3.9.8","v3.11.0","v3.9.7","v3.9.6","v3.9.5","v3.9.4","v3.9.3","v3.9.2","v3.9.1","v3.9.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-5541.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"}]}