{"id":"CVE-2023-23921","aliases":["CVE-2023-23921","GHSA-97qf-pq7x-964m","BIT-MOODLE-2023-23921"],"related":[],"kind":"vulnerability","state":"published","title":"Moodle: reflected xss risk in some returnurl parameters","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2023-02-17T00:00:00.000Z","modified":"2026-09-08T08:48:14.930Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"4.1.0","fixed":"4.1.1","status":"affected"},{"type":"semver","introduced":"4.0.0","fixed":"4.0.6","status":"affected"},{"type":"semver","introduced":"3.11.0","fixed":"3.11.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.9.19","status":"affected"}],"package":"moodle","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.9.19"}],"ecosystem":"Packagist","package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.10.0","status":"affected","fixed":"3.11.12"}],"ecosystem":"Packagist","package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0-beta","status":"affected","fixed":"4.0.6"}],"ecosystem":"Packagist","package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.1.0-beta","status":"affected","fixed":"4.1.1"}],"ecosystem":"Packagist","package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"3.9.0","fixed":"3.9.19"},{"status":"affected","introduced":"3.11.0","fixed":"3.11.12"},{"status":"affected","introduced":"4.0.0","fixed":"4.0.6"},{"status":"affected","version":"4.1.0"}],"vendor":"moodle","product":"moodle","cpe":"cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"3.9.0","status":"affected","fixed":"3.9.19"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.12"},{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.0.6"},{"type":"semver","introduced":"4.1.0","status":"affected","fixed":"4.1.1"}],"ecosystem":"Bitnami","package":"moodle","purl":"pkg:bitnami/moodle","source":"bitnami"}],"references":[{"url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-76810","tags":["fix","patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2162526","tags":["advisory","issue-tracking","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=443272#p1782021","tags":["advisory","patch","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-23921","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/moodle/moodle","tags":["package"],"sources":["ghsa"]}],"credits":["Upstream acknowledges DegrangeM as the original reporter."],"assigner":"fedora","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-23921","url":"https://www.cve.org/CVERecord?id=CVE-2023-23921","licence":"CVE Terms of Use","modified":"2024-08-02T10:42:27.105Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-97qf-pq7x-964m","url":"https://github.com/advisories/GHSA-97qf-pq7x-964m","licence":"CC-BY-4.0","modified":"2023-12-06T01:02:51.456Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-23921","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-23921","licence":"Public domain","modified":"2026-06-17T05:38:17.480Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-MOODLE-2023-23921","url":"https://osv.dev/vulnerability/BIT-MOODLE-2023-23921","licence":"Apache-2.0","modified":"2026-09-08T08:48:14.930Z"}],"updatedAt":"2026-11-25T22:58:22.063Z","epss":{"score":0.00908,"percentile":0.58029,"date":"2026-11-30T12:00:22.000Z"}}