CVE-2020-25631: XSS

Published Dec 8, 2020
·
Updated

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 Software

6 affected componentsFixes available
composer/moodle/moodle>=3.7<3.7.8
3.7.8
composer/moodle/moodle>=3.8<3.8.5
3.8.5
composer/moodle/moodle>=3.9<3.9.2
3.9.2
Moodle moodle>=3.7.0<3.7.8
Moodle moodle>=3.8.0<3.8.5
Moodle moodle>=3.9.0<3.9.2

Event History

Dec 8, 2020
CVE Published
via MITRE·12:10 AM
Data Sourced
via MITRE·12:10 AM
DescriptionWeakness
May 24, 2022
Advisory Published
via GitHub·05:35 PM

Frequently Asked Questions

1

What is the severity of CVE-2020-25631?

CVE-2020-25631 is classified with a moderate severity level due to the potential for cross-site scripting (XSS).

2

How do I fix CVE-2020-25631?

To fix CVE-2020-25631, you should upgrade your Moodle installation to version 3.9.2, 3.8.5, or 3.7.8.

3

What versions of Moodle are affected by CVE-2020-25631?

CVE-2020-25631 affects Moodle versions 3.9 to 3.9.1, 3.8 to 3.8.4, and 3.7 to 3.7.7.

4

What kind of vulnerability is CVE-2020-25631?

CVE-2020-25631 is a cross-site scripting (XSS) vulnerability that allows JavaScript injection in book chapter titles.

5

How can I verify if my Moodle version is vulnerable to CVE-2020-25631?

You can verify your Moodle version by checking the version number in your site's admin settings and comparing it with the affected versions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203