Live threats

All CVEs / Moodle

CVE-2021-20183Moodle

Medium 5.4 No auth needed

Priority
47
CVSS 3.1
5.4
EPSS
0.8%
probability of exploitation in 30 days · percentile 59
Auth required
No
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:N/UI:R/S:U/C:L/I:L/A:N

What happens

It was found in Moodle before version 3.10.1 that some search inputs were vulnerable to reflected XSS due to insufficient escaping of search queries.

Original NVD text.

What to do

  1. Apply the vendor's security update for Moodle.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist moodle/moodle ≥ 3.10 < 4.0.0-beta 4.0.0-beta composer require "moodle/moodle:^4.0.0-beta"

Per OSV / GitHub Advisories (GHSA-xhfx-rm8q-c3xv). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
moodlemoodle< 3.10.1

Official sources

References

Links published by the sources. Open them with care.