CVE-2023-28331Moodle
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.8% probability of exploitation in 30 days · percentile 52
- Auth required
- No
- Published
- Mar 23, 2023
- 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
Content output by the database auto-linking filter required additional sanitizing to prevent an XSS risk.
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 |
≥ 4.1.0 < 4.1.2 |
4.1.2 |
composer require "moodle/moodle:^4.1.2" |
| Packagist | moodle/moodle |
≥ 4.0.0 < 4.0.7 |
4.0.7 |
composer require "moodle/moodle:^4.0.7" |
| Packagist | moodle/moodle |
≥ 3.11.0 < 3.11.13 |
3.11.13 |
composer require "moodle/moodle:^3.11.13" |
| Packagist | moodle/moodle |
< 3.9.20 |
3.9.20 |
composer require "moodle/moodle:^3.9.20" |
Per OSV / GitHub Advisories (GHSA-77jm-f3vj-xvx2). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| moodle | moodle | > 3.9.0 < 3.9.20 |
| moodle | moodle | > 3.11.0 < 3.11.13 |
| moodle | moodle | > 4.0.0 < 4.0.7 |
| moodle | moodle | 3.9.0 |
| moodle | moodle | 3.11.0 |
| moodle | moodle | 4.0.0 |
| moodle | moodle | 4.1.0 |
| moodle | moodle | 4.1.1 |
Official sources
References
Links published by the sources. Open them with care.
- bugzilla.redhat.com
- lists.fedoraproject.org
- moodle.org Patch Vendor Advisory