Live threats

All CVEs / Moodle

CVE-2021-20186Moodle

Medium 5.4

Priority
32
CVSS 3.1
5.4
EPSS
0.8%
probability of exploitation in 30 days · percentile 57
Auth required
Yes
Published
Jan 28, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

What happens

It was found in Moodle before version 3.10.1, 3.9.4, 3.8.7 and 3.5.16 that if the TeX notation filter was enabled, additional sanitizing of TeX content was required to prevent the risk of stored XSS.

Original NVD text.

What to do

  1. Apply the vendor's security update for Moodle.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist moodle/moodle ≥ 3.10 < 3.10.1 3.10.1 composer require "moodle/moodle:^3.10.1"
Packagist moodle/moodle ≥ 3.9 < 3.9.4 3.9.4 composer require "moodle/moodle:^3.9.4"
Packagist moodle/moodle ≥ 3.8 < 3.8.7 3.8.7 composer require "moodle/moodle:^3.8.7"
Packagist moodle/moodle ≥ 3.5 < 3.5.16 3.5.16 composer require "moodle/moodle:^3.5.16"

Per OSV / GitHub Advisories (GHSA-h8m4-h385-qhqv). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
moodlemoodle< 3.5.16
moodlemoodle≥ 3.8.0 < 3.8.7
moodlemoodle≥ 3.9.0 < 3.9.4
moodlemoodle≥ 3.10.0 < 3.10.1

Official sources

References

Links published by the sources. Open them with care.