Live threats

All CVEs / Moodle

CVE-2022-45150Moodle

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
0.9%
probability of exploitation in 30 days · percentile 57
Auth required
No
Published
Nov 23, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

A reflected cross-site scripting vulnerability was discovered in Moodle. This flaw exists due to insufficient sanitization of user-supplied data in policy tool. An attacker can trick the victim to open a specially crafted link that executes an arbitrary HTML and script code in user's browser in context of vulnerable website. This vulnerability may allow an attacker to perform cross-site scripting (XSS) attacks to gain access potentially sensitive information and modification of web pages.

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.9 < 3.9.18 3.9.18 composer require "moodle/moodle:^3.9.18"
Packagist moodle/moodle ≥ 3.11 < 3.11.11 3.11.11 composer require "moodle/moodle:^3.11.11"
Packagist moodle/moodle ≥ 4.0 < 4.0.5 4.0.5 composer require "moodle/moodle:^4.0.5"

Per OSV / GitHub Advisories (GHSA-6gx2-g773-hv9h). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
moodlemoodle≥ 3.9.0 < 3.9.18
moodlemoodle≥ 3.11.0 < 3.11.11
moodlemoodle≥ 4.0.0 < 4.0.5
fedoraprojectfedora35
fedoraprojectfedora36
fedoraprojectfedora37

Official sources

References

Links published by the sources. Open them with care.