# CVE-2023-5541: Moodle: xss risk when using csv grade import method

- Severity: Low 3.3 (CVSS:3.1, scored by fedora) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/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): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2023-11-09T19:18:22.119Z
- Modified: 2026-09-10T03:49:58.732Z
- Also known as: GHSA-28gc-4qq5-8q26, BIT-MOODLE-2023-5541
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: fedora

## Description

The CSV grade import method contained an XSS risk for users importing the spreadsheet, if it contained unsafe content.

(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; from 3.11.0 before 3.11.17; before 3.9.24
- moodle/moodle (Packagist): before 4.3.0-rc2
- moodle moodle: from 3.9.0 before 3.9.24; from 3.11.0 before 3.11.17; from 4.0.0 before 4.0.11; from 4.1.0 before 4.1.6; from 4.2.0 before 4.2.3
- moodle (Bitnami): from 3.9.0 before 3.9.24; from 3.11.0 before 3.11.17; 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 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/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-79426> (fix, patch, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2243437> (issue-tracking, report, web)
- <https://moodle.org/mod/forum/discuss.php?d=451582> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-5541> (advisory, web)
- <https://github.com/moodle/moodle/commit/f5f6ce375e37da902afb043c6b506129fc433233> (web)
- <https://github.com/moodle/moodle> (package)

## Sources

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

---

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