CVE-2021-20186

Description

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.

Severity
MEDIUM
CVSS v3
5.4
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N · source nvd
Exploit chance (EPSS)
0.763%
chance of exploitation in the next 30 days
higher than 56% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2021-01-28Published by the CNA18:38 UTC
  2. 2022-05-24GitHub advisory published (GHSA-h8m4-h385-qhqv)481 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-h8m4-h385-qhqv, affected packages:

PackageVulnerable versionsFixed in
Packagist moodle/moodlefrom 3.10 before 3.10.13.10.1
Packagist moodle/moodlefrom 3.5 before 3.5.163.5.16
Packagist moodle/moodlefrom 3.8 before 3.8.73.8.7
Packagist moodle/moodlefrom 3.9 before 3.9.43.9.4

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
moodle moodlefrom 3.10.0 before 3.10.1fixed in 3.10.1before 3.5.16fixed in 3.5.16from 3.8.0 before 3.8.7fixed in 3.8.7from 3.9.0 before 3.9.4fixed in 3.9.43.10.13.5.163.8.73.9.4

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources