{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-23921","id":"CVE-2023-23921","title":"Moodle: reflected xss risk in some returnurl parameters","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.","descriptionLong":"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.","published":"2023-02-17T00:00:00.000Z","updated":"2026-10-28T02:30:50.811742441Z","reserved":"2023-01-19T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"fedora","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["moodle"],"affectedProducts":[{"vendor":"","product":"moodle","defaultStatus":"unaffected","versions":[{"status":"affected","version":"4.1.0","lessThan":"4.1.1","versionType":"semver"},{"status":"affected","version":"4.0.0","lessThan":"4.0.6","versionType":"semver"},{"status":"affected","version":"3.11.0","lessThan":"3.11.12","versionType":"semver"},{"status":"affected","version":"0","lessThan":"3.9.19","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"moodle/moodle","purl":"pkg:composer/moodle/moodle","ranges":["<3.9.19",">=3.10.0 <3.11.12",">=4.0.0-beta <4.0.6",">=4.1.0-beta <4.1.1"],"fixed":["3.9.19","3.11.12","4.0.6","4.1.1"],"advisory":"GHSA-97qf-pq7x-964m"}],"cwes":["CWE-79"],"aliases":["BIT-moodle-2023-23921","GHSA-97qf-pq7x-964m"],"references":[{"url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-76810","tags":["x_transferred","Patch","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2162526","tags":["x_transferred","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=443272#p1782021","tags":["x_transferred","Patch","Vendor Advisory","web"]},{"url":"https://git.moodle.org","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/23xxx/CVE-2023-23921.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-23921","tags":["advisory"]},{"url":"https://github.com/moodle/moodle","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00815,"epssPercentile":0.57824,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-23921","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-23921","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-23921","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-97qf-pq7x-964m","ok":true,"note":"GHSA-97qf-pq7x-964m"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-23921","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}