Live threats

All CVEs / Moodle

CVE-2022-45151Moodle

Medium 5.4

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

What happens

The stored-XSS vulnerability was discovered in Moodle which exists due to insufficient sanitization of user-supplied data in several "social" user profile fields. An attacker could inject and execute arbitrary HTML and script code in user's browser in context of vulnerable website.

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.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-xv72-6pgh-cjj8). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
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.