CVE-2022-45150Moodle
Medium 6.1 No auth needed
Follow: this CVE · Moodle · Moodle We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Moodle.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| moodle | moodle | ≥ 3.9.0 < 3.9.18 |
| 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.