CVE-2022-45151Moodle
Medium 5.4
Follow: this CVE · Moodle · Moodle We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Moodle.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| moodle | moodle | ≥ 3.11.0 < 3.11.11 |
| moodle | moodle | ≥ 4.0.0 < 4.0.5 |
| fedoraproject | fedora | 35 |
| fedoraproject | fedora | 36 |
| fedoraproject | fedora | 37 |
Official sources
References
Links published by the sources. Open them with care.