{"id":"CVE-2023-23921","published":"2023-02-17T00:00:00Z","modified":"2024-08-02T10:42:27Z","title":"Moodle: reflected xss risk in some returnurl parameters","vendor":null,"product":null,"tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00815,"percentile":0.57953,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-76810","tags":[]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2162526","tags":[]},{"url":"https://moodle.org/mod/forum/discuss.php?d=443272#p1782021","tags":[]}],"priority":{"score":11.6,"factors":[{"name":"EPSS percentile","points":11.59}]},"affectedVersions":[{"vendor":null,"product":null,"versions":[">= 4.1.0, < 4.1.1",">= 4.0.0, < 4.0.6",">= 3.11.0, < 3.11.12","< 3.9.19"]}],"affected":[{"ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":["<3.9.19",">=3.10.0, <3.11.12",">=4.0.0-beta, <4.0.6",">=4.1.0-beta, <4.1.1"],"patched":["3.9.19","3.11.12","4.0.6","4.1.1"],"from":["GHSA-97qf-pq7x-964m"],"provenance":"source"}],"summary":{"text":"The flaw is a reflected cross-site scripting issue in Moodle, arising from insufficient sanitisation of user-supplied data in some returnurl parameters. An attacker can exploit it by getting a victim to follow a specially crafted link, which then executes arbitrary HTML and script in the victim's browser in the context of the vulnerable site, with user interaction (following the link) being the required condition.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:05:43Z"},"euvd":{"id":"EUVD-2023-0673","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-45150","published":"2022-11-23","fixed":"4.0.5","kev":false},{"cve":"CVE-2022-45151","published":"2022-11-23","fixed":"4.0.5","kev":false},{"cve":"CVE-2022-45152","published":"2022-11-25","fixed":"4.0.5","kev":false,"link":{"from":"CVE-2022-45152","to":"CVE-2023-23921","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:moodle/moodle","fromFixed":"3.9.18","toFixed":"3.9.19","daysApart":84}]}},{"cve":"CVE-2023-23921","published":"2023-02-17","fixed":"4.1.1","kev":false},{"cve":"CVE-2023-23922","published":"2023-02-17","fixed":"4.1.1","kev":false},{"cve":"CVE-2023-23923","published":"2023-02-17","fixed":"4.1.1","kev":false},{"cve":"CVE-2023-1402","published":"2023-03-23","fixed":"4.1.2","kev":false}],"package":"Packagist:moodle/moodle"}}