{"id":"CVE-2023-23921","state":"PUBLISHED","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.","publishedAt":"2023-02-17T00:00:00.000Z","updatedAt":"2024-08-02T10:42:27.105Z","severity":null,"assigner":"fedora","products":["moodle"],"affected":[{"packageName":"moodle","defaultStatus":"unaffected","versions":[{"version":"4.1.0","status":"affected","lessThan":"4.1.1","versionType":"semver"},{"version":"4.0.0","status":"affected","lessThan":"4.0.6","versionType":"semver"},{"version":"3.11.0","status":"affected","lessThan":"3.11.12","versionType":"semver"},{"version":"0","status":"affected","lessThan":"3.9.19","versionType":"semver"}],"collectionURL":"https://git.moodle.org"}],"references":["http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-76810","https://bugzilla.redhat.com/show_bug.cgi?id=2162526","https://moodle.org/mod/forum/discuss.php?d=443272#p1782021"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:05:43.909Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/23xxx/CVE-2023-23921.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-23921","state":"PUBLISHED","datePublished":"2023-02-17T00:00:00.000Z","dateUpdated":"2024-08-02T10:42:27.105Z","assignerShortName":"fedora","assignerOrgId":"92fb86c3-55a5-4fb5-9c3f-4757b9e96dc5","dateReserved":"2023-01-19T00:00:00.000Z"},"containers":{"cna":{"title":"Moodle: reflected xss risk in some returnurl parameters","descriptions":[{"lang":"en","value":"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."}],"affected":[{"packageName":"moodle","defaultStatus":"unaffected","versions":[{"version":"4.1.0","status":"affected","lessThan":"4.1.1","versionType":"semver"},{"version":"4.0.0","status":"affected","lessThan":"4.0.6","versionType":"semver"},{"version":"3.11.0","status":"affected","lessThan":"3.11.12","versionType":"semver"},{"version":"0","status":"affected","lessThan":"3.9.19","versionType":"semver"}],"collectionURL":"https://git.moodle.org"}],"references":[{"url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-76810"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2162526"},{"url":"https://moodle.org/mod/forum/discuss.php?d=443272#p1782021"}],"metrics":[{"other":{"content":{"value":"Important","namespace":"https://access.redhat.com/security/updates/classification/"},"type":"Red Hat severity rating"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","description":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"fedora","orgId":"92fb86c3-55a5-4fb5-9c3f-4757b9e96dc5","dateUpdated":"2024-04-19T13:37:11.024Z"},"datePublic":"2023-01-23T04:00:00.000Z","x_redhatCweChain":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","timeline":[{"lang":"en","time":"2023-01-19T00:00:00.000Z","value":"Reported to Red Hat."},{"lang":"en","time":"2023-01-23T04:00:00.000Z","value":"Made public."}],"credits":[{"lang":"en","value":"Upstream acknowledges DegrangeM as the original reporter."}]},"adp":[{"title":"CVE Program Container","references":[{"url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-76810","tags":["x_transferred"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2162526","tags":["x_transferred"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=443272#p1782021","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T10:42:27.105Z"}}]}}}