{"id":"GHSA-jqgr-gh62-jf53","aliases":["BIT-moodle-2022-40313","CVE-2022-40313"],"title":"Moodle Stored Cross-site Scripting and page denial of service","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"HIGH","description":"Recursive rendering of Mustache template helpers containing user input could, in some cases, result in an Cross-site Scripting risk or a page failing to load.","severity":"high","score":7.1,"published":"2022-10-01T00:00:20.000Z","modified":"2024-04-23T23:58:40.931Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-jqgr-gh62-jf53","url":"https://osv.dev/vulnerability/GHSA-jqgr-gh62-jf53"}],"ranges":[{"events":[{"introduced":"3.9"},{"fixed":"3.9.17"}],"type":"ECOSYSTEM"}],"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.10","v3.9.11","v3.9.12","v3.9.13","v3.9.14","v3.9.15","v3.9.16","v3.9.2","v3.9.3","v3.9.4","v3.9.5","v3.9.6","v3.9.7","v3.9.8","v3.9.9"],"fixed":["3.9.17"]},{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-jqgr-gh62-jf53","url":"https://osv.dev/vulnerability/GHSA-jqgr-gh62-jf53"}],"ranges":[{"events":[{"introduced":"3.11"},{"fixed":"3.11.10"}],"type":"ECOSYSTEM"}],"versions":["v3.11.0","v3.11.0-beta","v3.11.0-rc1","v3.11.0-rc2","v3.11.1","v3.11.2","v3.11.3","v3.11.4","v3.11.5","v3.11.6","v3.11.7","v3.11.8","v3.11.9"],"fixed":["3.11.10"]},{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-jqgr-gh62-jf53","url":"https://osv.dev/vulnerability/GHSA-jqgr-gh62-jf53"}],"ranges":[{"events":[{"introduced":"4.0"},{"fixed":"4.0.4"}],"type":"ECOSYSTEM"}],"versions":["v4.0.0","v4.0.0-beta","v4.0.0-rc1","v4.0.0-rc2","v4.0.0-rc3","v4.0.0-rc4","v4.0.1","v4.0.2","v4.0.3"],"fixed":["4.0.4"]}],"sourceAffected":[],"references":["https://nvd.nist.gov/vuln/detail/CVE-2022-40313","https://bugzilla.redhat.com/show_bug.cgi?id=2128146","https://github.com/moodle/moodle","https://moodle.org/mod/forum/discuss.php?d=438392"],"sources":[{"name":"OSV","id":"GHSA-jqgr-gh62-jf53","modified":"2024-04-23T23:58:40.931558Z","url":"https://osv.dev/vulnerability/GHSA-jqgr-gh62-jf53"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L","score":7.1}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-28T21:55:33.923Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}