# CVE-2022-45150: Moodle reflected cross-site scripting vulnerability in policy tool

- Severity: Medium 6.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.86%, higher than 59% of CVEs (2026-12-02)
- Published: 2022-11-23T00:00:00.000Z
- Modified: 2026-06-17T05:09:28.597Z
- Also known as: GHSA-6gx2-g773-hv9h, BIT-MOODLE-2022-45150
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: fedora

## Description

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.

(As written by CVE List.)

## Affected

- Moodle: Fixed in moodle 4.0.5, moodle 3.11.11, moodle 3.9.18
- moodle/moodle (Packagist): from 3.9 before 3.9.18; from 3.11 before 3.11.11; from 4.0 before 4.0.5
- moodle moodle: from 3.9.0 before 3.9.18; from 3.11.0 before 3.11.11; from 4.0.0 before 4.0.5
- fedoraproject fedora: 35; 36; 37
- moodle (Bitnami): from 3.9.0 before 3.9.18; from 3.11.0 before 3.11.11; from 4.0.0 before 4.0.5

## Every score

- CISA-ADP: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2142773> (web)
- <https://moodle.org/mod/forum/discuss.php?d=440770> (web)
- <http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-76091> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/74SXNGA5RIWM7QNX7H3G7SYIQLP4UUGV/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NLRJB5JNKK3VVBLV3NH3RI7COEDAXSAB/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2DHYIIAUXUBHMBEDYU7TYNZXEN2W2SA2/> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-45150> (advisory, web)
- <https://github.com/moodle/moodle> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2DHYIIAUXUBHMBEDYU7TYNZXEN2W2SA2> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/74SXNGA5RIWM7QNX7H3G7SYIQLP4UUGV> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NLRJB5JNKK3VVBLV3NH3RI7COEDAXSAB> (web)

## Sources

- CVE List: [CVE-2022-45150](https://www.cve.org/CVERecord?id=CVE-2022-45150), CVE Terms of Use, modified 2025-04-25
- GitHub Advisory Database: [GHSA-6gx2-g773-hv9h](https://github.com/advisories/GHSA-6gx2-g773-hv9h), CC-BY-4.0, modified 2024-04-23
- NVD: [CVE-2022-45150](https://nvd.nist.gov/vuln/detail/CVE-2022-45150), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MOODLE-2022-45150](https://osv.dev/vulnerability/BIT-MOODLE-2022-45150), Apache-2.0, modified 2025-04-03

---

Page: https://cve.day/CVE-2022-45150 · Whole record: https://cve.day/CVE-2022-45150.json · Rebuilt by cve.day 2026-11-25T22:58:16.851Z
