{"id":"CVE-2020-25631","aliases":["CVE-2020-25631","GHSA-4w4j-9533-82qg","BIT-MOODLE-2020-25631"],"related":[],"kind":"vulnerability","state":"published","title":"Moodle Cross-site Scripting (XSS)","summary":"A vulnerability was found in Moodle 3.9 to 3.9.1, 3.8 to 3.8.4 and 3.7 to 3.7.7 where it was possible to include JavaScript in a book's chapter title, which was not escaped on the \"Add new chapter\" page. This is fixed in 3.9.2, 3.8.5 and 3.7.8.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A vulnerability was found in Moodle 3.9 to 3.9.1, 3.8 to 3.8.4 and 3.7 to 3.7.7 where it was possible to include JavaScript in a book's chapter title, which was not escaped on the \"Add new chapter\" page. This is fixed in 3.9.2, 3.8.5 and 3.7.8.","source":"cvelist"},{"lang":"es","text":"Se encontró una vulnerabilidad en Moodle versiones 3.9 hasta 3.9.1, 3.8 hasta 3.8.4 y 3.7 hasta 3.7.7, donde era posible incluir JavaScript en el título del capítulo de un libro, que no era escapado en la página \"Add new chapter\". Esto es corregido en las versiones 3.9.2, 3.8.5 y 3.7.8","source":"nvd"}],"published":"2020-12-08T00:10:13.000Z","modified":"2026-09-08T08:48:14.526Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"3.9 to 3.9.1, 3.8 to 3.8.4 and 3.7 to 3.7.7","status":"affected"}],"product":"Moodle","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.9","status":"affected","fixed":"3.9.2"}],"ecosystem":"Packagist","package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.8","status":"affected","fixed":"3.8.5"}],"ecosystem":"Packagist","package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.7","status":"affected","fixed":"3.7.8"}],"ecosystem":"Packagist","package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"3.7.0","fixed":"3.7.8"},{"status":"affected","introduced":"3.8.0","fixed":"3.8.5"},{"status":"affected","introduced":"3.9.0","fixed":"3.9.2"}],"vendor":"moodle","product":"moodle","cpe":"cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"3.7.0","status":"affected","fixed":"3.7.8"},{"type":"semver","introduced":"3.8.0","status":"affected","fixed":"3.8.5"},{"type":"semver","introduced":"3.9.0","status":"affected","fixed":"3.9.2"}],"ecosystem":"Bitnami","package":"moodle","purl":"pkg:bitnami/moodle","source":"bitnami"}],"references":[{"url":"https://moodle.org/mod/forum/discuss.php?d=410843","tags":["advisory","patch","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25631","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-2020-25631","url":"https://www.cve.org/CVERecord?id=CVE-2020-25631","licence":"CVE Terms of Use","modified":"2024-08-04T15:40:35.426Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4w4j-9533-82qg","url":"https://github.com/advisories/GHSA-4w4j-9533-82qg","licence":"CC-BY-4.0","modified":"2024-04-24T00:11:43.009Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-25631","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25631","licence":"Public domain","modified":"2026-06-17T03:07:00.890Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-MOODLE-2020-25631","url":"https://osv.dev/vulnerability/BIT-MOODLE-2020-25631","licence":"Apache-2.0","modified":"2026-09-08T08:48:14.526Z"}],"updatedAt":"2026-11-25T22:57:56.052Z","epss":{"score":0.00934,"percentile":0.61779,"date":"2026-12-01T12:00:22.000Z"}}