Original description
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.
Affected software
- Moodle ≥ 4.0.0 < 4.0.5≥ 3.11.0 < 3.11.11 Fixed in: 4.0.5, 3.11.11 exact match
Details
- Published
- 2022-11-23
- Last modified
- 2026-06-17
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N- CWE
- CWE-79
- EPSS (30-day exploit probability)
- 0.71% (percentile 54)
References
- cve.org/CVE-2022-45151
- nvd.nist.gov/vuln/detail/CVE-2022-45151
- git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-76131
- bugzilla.redhat.com/show_bug.cgi?id=2142774
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N...
- moodle.org/mod/forum/discuss.php?d=440771
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.