CVE-2023-28331
MEDIUM 6.1CVSS 3.1Moodle vulnerable to Cross-site Scripting
Content output by the database auto-linking filter required additional sanitizing to prevent an XSS risk.
- Published
- 23 Mar 2023
- Last modified
- 17 Jun 2026
- Assigned by
- patrick@puiterwijk.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- BIT-moodle-2023-28331GHSA-77jm-f3vj-xvx2
- Sources
- NVDJSONOSV GHSA-77jm-f3vj-xvx2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
> 3.9.0, < 3.9.20 | 3.9.20 |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
> 3.11.0, < 3.11.13 | 3.11.13 |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
> 4.0.0, < 4.0.7 | 4.0.7 |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:3.9.0:-:*:*:*:*:*:* |
= 3.9.0 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:3.11.0:-:*:*:*:*:*:* |
= 3.11.0 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:4.0.0:-:*:*:*:*:*:* |
= 4.0.0 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:4.1.0:-:*:*:*:*:*:* |
= 4.1.0 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:4.1.1:*:*:*:*:*:*:* |
= 4.1.1 | |
| OSV | Packagist | moodle/moodle | >= 4.1.0, < 4.1.2 | 4.1.2 |
| OSV | Packagist | moodle/moodle | >= 4.0.0, < 4.0.7 | 4.0.7 |
| OSV | Packagist | moodle/moodle | >= 3.11.0, < 3.11.13 | 3.11.13 |
| OSV | Packagist | moodle/moodle | < 3.9.20 | 3.9.20 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2179418 · WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3QZN34VSF4HTCW3C3ZP2OZYSLYUKADPF/ · WEB
- https://moodle.org/mod/forum/discuss.php?d=445063 · Patch, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-28331 · ADVISORY
- https://github.com/moodle/moodle/commit/1899e0397350c4c2bb3e73773981f66f16f8f2fc · WEB
- https://git.moodle.org/gw?p=moodle.git;a=commitdiff;h=1899e0397350c4c2bb3e73773981f66f16f8f2fc · WEB
- https://github.com/moodle/moodle · PACKAGE
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3QZN34VSF4HTCW3C3ZP2OZYSLYUKADPF · WEB
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 23 Mar 2023)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 23 Mar 2023)