{"id":"CVE-2022-45150","aliases":["CVE-2022-45150","GHSA-6gx2-g773-hv9h","BIT-MOODLE-2022-45150"],"related":[],"kind":"vulnerability","state":"published","title":"Moodle reflected cross-site scripting vulnerability in policy tool","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Se descubrió una vulnerabilidad de Cross-Site Scripting (XSS) Reflejada en Moodle. Esta falla existe debido a una sanitización insuficiente de los datos proporcionados por los usuarios en la herramienta de políticas. Un atacante puede engañar a la víctima para que abra un enlace especialmente manipulado que ejecute un código HTML y script arbitrario en el navegador del usuario en el contexto de un sitio web vulnerable. Esta vulnerabilidad puede permitir a un atacante realizar ataques de Cross-Site Scripting (XSS) para obtener acceso a información potencialmente confidencial y modificación de páginas web.","source":"nvd"}],"published":"2022-11-23T00:00:00.000Z","modified":"2026-06-17T05:09:28.597Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"Fixed in moodle 4.0.5, moodle 3.11.11, moodle 3.9.18","status":"affected"}],"product":"Moodle","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.9","status":"affected","fixed":"3.9.18"}],"ecosystem":"Packagist","package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.11","status":"affected","fixed":"3.11.11"}],"ecosystem":"Packagist","package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.0","status":"affected","fixed":"4.0.5"}],"ecosystem":"Packagist","package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"3.9.0","fixed":"3.9.18"},{"status":"affected","introduced":"3.11.0","fixed":"3.11.11"},{"status":"affected","introduced":"4.0.0","fixed":"4.0.5"}],"vendor":"moodle","product":"moodle","cpe":"cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"35"},{"status":"affected","version":"36"},{"status":"affected","version":"37"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"3.9.0","status":"affected","fixed":"3.9.18"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.11"},{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.0.5"}],"ecosystem":"Bitnami","package":"moodle","purl":"pkg:bitnami/moodle","source":"bitnami"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2142773","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=440770","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-76091","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/74SXNGA5RIWM7QNX7H3G7SYIQLP4UUGV/","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NLRJB5JNKK3VVBLV3NH3RI7COEDAXSAB/","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2DHYIIAUXUBHMBEDYU7TYNZXEN2W2SA2/","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45150","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/moodle/moodle","tags":["package"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2DHYIIAUXUBHMBEDYU7TYNZXEN2W2SA2","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/74SXNGA5RIWM7QNX7H3G7SYIQLP4UUGV","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NLRJB5JNKK3VVBLV3NH3RI7COEDAXSAB","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"fedora","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-25T19:29:16.583Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-45150","url":"https://www.cve.org/CVERecord?id=CVE-2022-45150","licence":"CVE Terms of Use","modified":"2025-04-25T19:29:24.937Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6gx2-g773-hv9h","url":"https://github.com/advisories/GHSA-6gx2-g773-hv9h","licence":"CC-BY-4.0","modified":"2024-04-23T23:58:27.759Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-45150","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45150","licence":"Public domain","modified":"2026-06-17T05:09:28.597Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-MOODLE-2022-45150","url":"https://osv.dev/vulnerability/BIT-MOODLE-2022-45150","licence":"Apache-2.0","modified":"2025-04-03T14:40:37.652Z"}],"updatedAt":"2026-11-25T22:58:16.851Z","epss":{"score":0.00857,"percentile":0.59537,"date":"2026-12-02T12:00:21.000Z"}}