{"id":"CVE-2022-45150","details":"A reflected cross-site scripting vulnerability was discovered in Moodle. This flaw exists due to insufficient sanitization of user-supplied data in policy tool. An attacker can trick the victim to open a specially crafted link that executes an arbitrary HTML and script code in user's browser in context of vulnerable website. This vulnerability may allow an attacker to perform cross-site scripting (XSS) attacks to gain access potentially sensitive information and modification of web pages.","aliases":["BIT-moodle-2022-45150","GHSA-6gx2-g773-hv9h"],"modified":"2026-08-12T03:51:41.795784484Z","published":"2022-11-23T00:00:00Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/45xxx/CVE-2022-45150.json","unresolved_ranges":[{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"Fixed in moodle 4.0.5, moodle 3.11.11, moodle 3.9.18"},{"last_affected":"Fixed in moodle 4.0.5, moodle 3.11.11, moodle 3.9.18"}]}],"cna_assigner":"fedora","cwe_ids":["CWE-79"]},"references":[{"type":"WEB","url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-76091"},{"type":"WEB","url":"https://moodle.org/mod/forum/discuss.php?d=440770"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/45xxx/CVE-2022-45150.json"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2DHYIIAUXUBHMBEDYU7TYNZXEN2W2SA2/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/74SXNGA5RIWM7QNX7H3G7SYIQLP4UUGV/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NLRJB5JNKK3VVBLV3NH3RI7COEDAXSAB/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45150"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2142773"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/moodle/moodle","events":[{"introduced":"500c131eb49771e36f68d151dfa37fef5a9bc2df"},{"fixed":"f89a47eff86c2d9e27ca18959be23e4350765160"},{"introduced":"94f2d3fc4b974c5c7d500988c56b7ca15f58d7ec"},{"fixed":"becbdd847ddac6ebaf8c9327ba523e5db95bb64c"},{"introduced":"8b359ad7a63cf219110bca80552fe3d4ea2a635d"},{"fixed":"fdbcfa1b153ee8b3cf863044f7b28f8b3b7a9500"}],"database_specific":{"cpe":"cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"3.9.0"},{"fixed":"3.9.18"},{"introduced":"3.11.0"},{"fixed":"3.11.11"},{"introduced":"4.0.0"},{"fixed":"4.0.5"}],"source":"CPE_RANGE"}}],"versions":["v3.11.10","v3.9.17","v4.0.4","v3.9.16","v3.11.9","v4.0.3","v4.0.2","v3.11.8","v3.9.15","v3.9.14","v4.0.1","v3.11.7","v4.0.0","v3.11.6","v3.9.13","v3.11.5","v3.9.12","v3.11.4","v3.9.11","v3.11.3","v3.9.10","v3.11.1","v3.11.2","v3.9.9","v3.9.8","v3.11.0","v3.9.7","v3.9.6","v3.9.5","v3.9.4","v3.9.3","v3.9.2","v3.9.1","v3.9.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-45150.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"}]}