{"id":"CVE-2022-45150","published":"2022-11-23T00:00:00Z","modified":"2025-04-25T19:29:24Z","title":"A reflected cross-site scripting vulnerability was discovered in Moodle","vendor":null,"product":null,"tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00857,"percentile":0.59297,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2142773","tags":[]},{"url":"https://moodle.org/mod/forum/discuss.php?d=440770","tags":[]},{"url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-76091","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/74SXNGA5RIWM7QNX7H3G7SYIQLP4UUGV/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NLRJB5JNKK3VVBLV3NH3RI7COEDAXSAB/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2DHYIIAUXUBHMBEDYU7TYNZXEN2W2SA2/","tags":["vendor-advisory"]}],"priority":{"score":16.1,"factors":[{"name":"EPSS percentile","points":11.86},{"name":"CVSS severity","points":4.27}]},"affectedVersions":[{"vendor":"n/a","product":"Moodle","versions":["Fixed in moodle 4.0.5, moodle 3.11.11, moodle 3.9.18"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-25T19:29:16.583877Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":[">=3.9, <3.9.18",">=3.11, <3.11.11",">=4.0, <4.0.5"],"patched":["3.9.18","3.11.11","4.0.5"],"from":["GHSA-6gx2-g773-hv9h"],"provenance":"source"}],"summary":{"text":"A reflected cross-site scripting flaw in the policy tool of Moodle arises from insufficient sanitization of user-supplied data. An attacker who tricks a victim into opening a specially crafted link can run arbitrary HTML and script in the victim's browser within the context of the vulnerable site, requiring no privileges but user interaction, and potentially exposing sensitive information or modifying web pages.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:46Z"},"euvd":{"id":"EUVD-2022-7258","exploited":false,"provenance":"source"}}