{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2020-25631","id":"CVE-2020-25631","title":"Moodle Cross-site Scripting (XSS)","description":"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.","descriptionLong":"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.","published":"2020-12-08T00:10:13.000Z","updated":"2026-10-24T10:30:56.329747002Z","reserved":"2020-09-16T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"redhat","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":["Moodle"],"affectedProducts":[{"vendor":"n/a","product":"Moodle","defaultStatus":null,"versions":[{"status":"affected","version":"3.9 to 3.9.1, 3.8 to 3.8.4 and 3.7 to 3.7.7"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"moodle/moodle","purl":"pkg:composer/moodle/moodle","ranges":[">=3.9 <3.9.2",">=3.8 <3.8.5",">=3.7 <3.7.8"],"fixed":["3.9.2","3.8.5","3.7.8"],"advisory":"GHSA-4w4j-9533-82qg"}],"cwes":["CWE-79"],"aliases":["BIT-moodle-2020-25631","GHSA-4w4j-9533-82qg"],"references":[{"url":"https://moodle.org/mod/forum/discuss.php?d=410843","tags":["x_refsource_CONFIRM","x_transferred","Patch","Vendor Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25631","tags":["advisory"]},{"url":"https://github.com/moodle/moodle","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00934,"epssPercentile":0.61506,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2020-25631","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25631","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2020-25631","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4w4j-9533-82qg","ok":true,"note":"GHSA-4w4j-9533-82qg"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2020-25631","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}