{"id":"CVE-2023-23922","summary":"Moodle: reflected xss risk in blog search","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","GHSA-grmj-gpwm-98ww"],"modified":"2026-08-12T03:51:30.676366598Z","published":"2023-02-17T00:00:00Z","database_specific":{"cna_assigner":"fedora","cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/23xxx/CVE-2023-23922.json","unresolved_ranges":[{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"4.1.0"},{"fixed":"4.1.1"},{"introduced":"4.0.0"},{"fixed":"4.0.6"}]}]},"references":[{"type":"WEB","url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-76861"},{"type":"WEB","url":"https://git.moodle.org"},{"type":"WEB","url":"https://moodle.org/mod/forum/discuss.php?d=443273#p1782022"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/23xxx/CVE-2023-23922.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-23922"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2162547"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/moodle/moodle","events":[{"introduced":"8b359ad7a63cf219110bca80552fe3d4ea2a635d"},{"fixed":"b864c78a31e0b2c245e2cf4ff6a566be435fec3a"},{"introduced":"0ea3d45e04c3d54a3a472ddcb11606b30e227c50"},{"last_affected":"0ea3d45e04c3d54a3a472ddcb11606b30e227c50"}],"database_specific":{"cpe":["cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*","cpe:2.3:a:moodle:moodle:4.1.0:-:*:*:*:*:*:*"],"extracted_events":[{"introduced":"4.0.0"},{"fixed":"4.0.6"},{"introduced":"4.1.0-NA"},{"last_affected":"4.1.0-NA"}],"source":["CPE_RANGE","CPE_STRING"]}}],"versions":["4.1.0-NA","v4.1.0","v4.0.5","v4.0.4","v4.0.3","v4.0.2","v4.0.1","v4.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-23922.json"}}],"schema_version":"1.9.0"}