# CVE-2023-5546: Moodle: stored xss in quiz grading report via user id number

- Severity: Medium 4.3 (CVSS:3.1, scored by fedora) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.31%, higher than 71% of CVEs (2026-12-02)
- Published: 2023-11-09T19:34:21.895Z
- Modified: 2026-09-10T03:49:58.920Z
- Also known as: GHSA-9724-h8p7-r3jv, BIT-MOODLE-2023-5546
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: fedora

## Description

ID numbers displayed in the quiz grading report required additional sanitizing to prevent a stored XSS risk.

(As written by CVE List.)

## Affected

- moodle: from 4.2.0 before 4.2.3; from 4.1.0 before 4.1.6; from 4.0.0 before 4.0.11
- moodle moodle: from 4.2.0 before 4.2.3; from 4.1.0 before 4.1.6; from 4.0.0 before 4.0.11
- moodle/moodle (Packagist): before 4.3.0-rc2
- redhat enterprise_linux: 7.0
- fedoraproject fedora: 37; 38; 39
- moodle (Bitnami): from 4.0.0 before 4.0.11; from 4.1.0 before 4.1.6; from 4.2.0 before 4.2.3

## Every score

- fedora: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-78971> (fix, patch, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2243445> (issue-tracking, report, web)
- <https://moodle.org/mod/forum/discuss.php?d=451587> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-5546> (advisory, web)
- <https://github.com/moodle/moodle/commit/aa8ab48521fe4a57c3ec923e6e82a5ac1202e9de> (web)
- <https://github.com/moodle/moodle> (package)

## Sources

- CVE List: [CVE-2023-5546](https://www.cve.org/CVERecord?id=CVE-2023-5546), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-9724-h8p7-r3jv](https://github.com/advisories/GHSA-9724-h8p7-r3jv), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-5546](https://nvd.nist.gov/vuln/detail/CVE-2023-5546), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MOODLE-2023-5546](https://osv.dev/vulnerability/BIT-MOODLE-2023-5546), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-5546 · Whole record: https://cve.day/CVE-2023-5546.json · Rebuilt by cve.day 2026-11-25T22:58:30.286Z
