{"id":"GHSA-grmj-gpwm-98ww","summary":"Moodle Cross-site Scripting vulnerability","details":"The vulnerability was found Moodle which exists due to insufficient sanitization of user-supplied data in blog search. 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.","aliases":["BIT-moodle-2023-23922","CVE-2023-23922"],"modified":"2023-12-06T01:02:51.520224Z","published":"2023-02-17T21:30:41Z","database_specific":{"cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2023-03-02T19:29:09Z","nvd_published_at":"2023-02-17T20:15:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-23922"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2162547"},{"type":"PACKAGE","url":"https://github.com/moodle/moodle"},{"type":"WEB","url":"https://moodle.org/mod/forum/discuss.php?d=443273#p1782022"},{"type":"WEB","url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-76861"}],"affected":[{"package":{"name":"moodle/moodle","ecosystem":"Packagist","purl":"pkg:composer/moodle/moodle"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0-beta"},{"fixed":"4.0.6"}]}],"versions":["v4.0.0","v4.0.0-beta","v4.0.0-rc1","v4.0.0-rc2","v4.0.0-rc3","v4.0.0-rc4","v4.0.1","v4.0.2","v4.0.3","v4.0.4","v4.0.5"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/02/GHSA-grmj-gpwm-98ww/GHSA-grmj-gpwm-98ww.json"}},{"package":{"name":"moodle/moodle","ecosystem":"Packagist","purl":"pkg:composer/moodle/moodle"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.1.0-beta"},{"fixed":"4.1.1"}]}],"versions":["v4.1.0","v4.1.0-beta","v4.1.0-rc1","v4.1.0-rc2","v4.1.0-rc3"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/02/GHSA-grmj-gpwm-98ww/GHSA-grmj-gpwm-98ww.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}