# CVE-2020-25631: Moodle Cross-site Scripting (XSS)

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.93%, higher than 61% of CVEs (2026-12-01)
- Published: 2020-12-08T00:10:13.000Z
- Modified: 2026-09-08T08:48:14.526Z
- Also known as: GHSA-4w4j-9533-82qg, BIT-MOODLE-2020-25631
- Weaknesses: CWE-79
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- Moodle: 3.9 to 3.9.1, 3.8 to 3.8.4 and 3.7 to 3.7.7
- moodle/moodle (Packagist): from 3.9 before 3.9.2; from 3.8 before 3.8.5; from 3.7 before 3.7.8
- moodle moodle: from 3.7.0 before 3.7.8; from 3.8.0 before 3.8.5; from 3.9.0 before 3.9.2
- moodle (Bitnami): from 3.7.0 before 3.7.8; from 3.8.0 before 3.8.5; from 3.9.0 before 3.9.2

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://moodle.org/mod/forum/discuss.php?d=410843> (advisory, patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-25631> (advisory, web)
- <https://github.com/moodle/moodle> (package)

## Sources

- CVE List: [CVE-2020-25631](https://www.cve.org/CVERecord?id=CVE-2020-25631), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-4w4j-9533-82qg](https://github.com/advisories/GHSA-4w4j-9533-82qg), CC-BY-4.0, modified 2024-04-24
- NVD: [CVE-2020-25631](https://nvd.nist.gov/vuln/detail/CVE-2020-25631), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MOODLE-2020-25631](https://osv.dev/vulnerability/BIT-MOODLE-2020-25631), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-25631 · Whole record: https://cve.day/CVE-2020-25631.json · Rebuilt by cve.day 2026-11-25T22:57:56.052Z
