Live threats

All CVEs / Moodle

CVE-2021-36568Moodle

Medium 5.4

Priority
33
CVSS 3.1
5.4
EPSS
1.1%
probability of exploitation in 30 days · percentile 67
Auth required
Yes
Published
Sep 13, 2022
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

In certain Moodle products after creating a course, it is possible to add in a arbitrary "Topic" a resource, in this case a "Database" with the type "Text" where its values "Field name" and "Field description" are vulnerable to Cross Site Scripting Stored(XSS). This affects Moodle 3.11 and Moodle 3.10.4 and Moodle 3.9.7.

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.9.7 no fixed version —
Packagist moodle/moodle ≥ 3.10.0 ≤ 3.10.4 no fixed version —
Packagist moodle/moodle ≥ 3.11.0 < 3.11.10 3.11.10 composer require "moodle/moodle:^3.11.10"

Per OSV / GitHub Advisories (GHSA-fm6m-fg23-67jq). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
moodlemoodle3.9.7
moodlemoodle3.10.4
moodlemoodle3.11.0
fedoraprojectfedora35
fedoraprojectfedora36

Official sources

References

Links published by the sources. Open them with care.