What’s Vulnerable › Vulnerabilities
CVE-2020-25631
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.9% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2020-12-08 · updated 2026-06-17
- Weakness: CWE-79
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.
Affected products
- 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 — fixed in 3.7.8, 3.8.5, 3.9.2
How to fix
Upgrade to a fixed version: Moodle 3.7.8, 3.8.5, 3.9.2. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2020-25631 or the next vulnerability affects your stack