{"id":"GHSA-p7v9-gjrh-563x","aliases":["CVE-2018-10891"],"title":"Moodle XSS Vulnerability","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"HIGH","description":"A flaw was found in moodle before versions 3.5.1, 3.4.4, 3.3.7, 3.1.13. When a quiz question bank is imported, it was possible for the question preview that is displayed to execute JavaScript that is written into the question bank.\n","severity":"high","score":7.3,"published":"2022-05-13T01:14:06.000Z","modified":"2024-02-16T08:08:45.769Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-p7v9-gjrh-563x","url":"https://osv.dev/vulnerability/GHSA-p7v9-gjrh-563x"}],"ranges":[{"events":[{"introduced":"3.5.0"},{"fixed":"3.5.1"}],"type":"ECOSYSTEM"}],"versions":["v3.5.0"],"fixed":["3.5.1"]},{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-p7v9-gjrh-563x","url":"https://osv.dev/vulnerability/GHSA-p7v9-gjrh-563x"}],"ranges":[{"events":[{"introduced":"3.4.0"},{"fixed":"3.4.4"}],"type":"ECOSYSTEM"}],"versions":["v3.4.0","v3.4.1","v3.4.2","v3.4.3"],"fixed":["3.4.4"]},{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-p7v9-gjrh-563x","url":"https://osv.dev/vulnerability/GHSA-p7v9-gjrh-563x"}],"ranges":[{"events":[{"introduced":"3.3.0"},{"fixed":"3.3.7"}],"type":"ECOSYSTEM"}],"versions":["v3.3.0","v3.3.1","v3.3.2","v3.3.3","v3.3.4","v3.3.5","v3.3.6"],"fixed":["3.3.7"]},{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-p7v9-gjrh-563x","url":"https://osv.dev/vulnerability/GHSA-p7v9-gjrh-563x"}],"ranges":[{"events":[{"introduced":"3.2.0"},{"fixed":"3.2.10"}],"type":"ECOSYSTEM"}],"versions":["v3.2.0","v3.2.1","v3.2.2","v3.2.3","v3.2.4","v3.2.5","v3.2.6","v3.2.7","v3.2.8","v3.2.9"],"fixed":["3.2.10"]},{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-p7v9-gjrh-563x","url":"https://osv.dev/vulnerability/GHSA-p7v9-gjrh-563x"}],"ranges":[{"events":[{"introduced":"3.1.0"},{"fixed":"3.1.13"}],"type":"ECOSYSTEM"}],"versions":["v3.1.0","v3.1.1","v3.1.10","v3.1.11","v3.1.12","v3.1.2","v3.1.3","v3.1.4","v3.1.5","v3.1.6","v3.1.7","v3.1.8","v3.1.9"],"fixed":["3.1.13"]}],"sourceAffected":[],"references":["https://nvd.nist.gov/vuln/detail/CVE-2018-10891","https://github.com/moodle/moodle/commit/0b18d0c960c27994dd9870d286f2da3fa5868c06","https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10891","https://github.com/moodle/moodle","https://moodle.org/mod/forum/discuss.php?d=373371","https://web.archive.org/web/20210124185945/https://www.securityfocus.com/bid/104739"],"sources":[{"name":"OSV","id":"GHSA-p7v9-gjrh-563x","modified":"2024-02-16T08:08:45.769892Z","url":"https://osv.dev/vulnerability/GHSA-p7v9-gjrh-563x"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-28T18:15:34.797Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}