# CVE-2023-23921: Moodle: reflected xss risk in some returnurl parameters

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/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.84%, higher than 58% of CVEs (2026-12-01)
- Published: 2023-02-17T00:00:00.000Z
- Modified: 2026-09-08T08:48:14.930Z
- Also known as: GHSA-97qf-pq7x-964m, BIT-MOODLE-2023-23921
- Weaknesses: CWE-79
- Assigned by: fedora

## Description

The vulnerability was found Moodle which exists due to insufficient sanitization of user-supplied data in some returnurl parameters. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in user's browser in context of vulnerable website. This flaw allows a remote attacker to perform cross-site scripting (XSS) attacks.

(As written by CVE List.)

## Affected

- moodle: from 4.1.0 before 4.1.1; from 4.0.0 before 4.0.6; from 3.11.0 before 3.11.12; before 3.9.19
- moodle/moodle (Packagist): before 3.9.19; from 3.10.0 before 3.11.12; from 4.0.0-beta before 4.0.6; from 4.1.0-beta before 4.1.1
- moodle moodle: from 3.9.0 before 3.9.19; from 3.11.0 before 3.11.12; from 4.0.0 before 4.0.6; 4.1.0
- moodle (Bitnami): from 3.9.0 before 3.9.19; from 3.11.0 before 3.11.12; from 4.0.0 before 4.0.6; from 4.1.0 before 4.1.1

## Every score

- 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-76810> (fix, patch, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2162526> (advisory, issue-tracking, third-party-advisory, web)
- <https://moodle.org/mod/forum/discuss.php?d=443272#p1782021> (advisory, patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-23921> (advisory, web)
- <https://github.com/moodle/moodle> (package)

## Sources

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

---

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