VDB

CVE-2021-20186

CVE-2021-20186 PUBLISHED

Moodle Cross-site Scripting

Reported by redhat · Published January 28, 2021

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
moodleBitnami3.10.1, 3.9.4, 3.8.7, 3.5.16

Affected products

VendorProductVersions
n/amoodlemoodle 3.10.1, moodle 3.9.4, moodle 3.8.7, moodle 3.5.16
n/amoodlemoodle 3.10.1, moodle 3.9.4, moodle 3.8.7, moodle 3.5.16

Timeline

  • Jan 26, 2021 CVE Published
  • Jan 28, 2021 PoC Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 17, 2026 Security Advisory
  • Jun 17, 2026 CVE Updated
  • Aug 27, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-20186
vulnetix vdb fixes CVE-2021-20186

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-20186/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

  • x_refsource_MISC
Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›