CVE-2022-35651Moodle
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
- 1.0% probability of exploitation in 30 days · percentile 61
- Auth required
- No
- Published
- Jul 25, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
A stored XSS and blind SSRF vulnerability was found in Moodle, occurs due to insufficient sanitization of user-supplied data in the SCORM track details. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in user's browser in context of vulnerable website to steal potentially sensitive information, change appearance of the web page, can perform phishing and drive-by-download attacks.
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.15 |
3.9.15 |
composer require "moodle/moodle:^3.9.15" |
| Packagist | moodle/moodle |
≥ 3.11 < 3.11.8 |
3.11.8 |
composer require "moodle/moodle:^3.11.8" |
| Packagist | moodle/moodle |
≥ 4.0 < 4.0.2 |
4.0.2 |
composer require "moodle/moodle:^4.0.2" |
Per OSV / GitHub Advisories (GHSA-wwv7-h477-wrv7). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| moodle | moodle | ≥ 3.9.0 < 3.9.15 |
| moodle | moodle | ≥ 3.11.0 < 3.11.8 |
| moodle | moodle | 4.0.0 |
| moodle | moodle | 4.0.0 |
| moodle | moodle | 4.0.0 |
| moodle | moodle | 4.0.0 |
| moodle | moodle | 4.0.0 |
| moodle | moodle | 4.0.0 |
| moodle | moodle | 4.0.1 |
| redhat | enterprise_linux | 8.0 |
| fedoraproject | fedora | 35 |
| fedoraproject | fedora | 36 |
Official sources
References
Links published by the sources. Open them with care.
- git.moodle.org Patch Vendor Advisory
- bugzilla.redhat.com Issue Tracking Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- moodle.org Vendor Advisory