Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. moodle/moodle
  4. ›
  5. CVE-2022-45150

CVE-2022-45150: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

November 23, 2022 (updated November 7, 2023)

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.

References

  • git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-76091
  • bugzilla.redhat.com/show_bug.cgi?id=2142773
  • moodle.org/mod/forum/discuss.php?d=440770
  • nvd.nist.gov/vuln/detail/CVE-2022-45150

Code Behaviors & Features

Detect and mitigate CVE-2022-45150 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 3.9.0 before 3.9.18, all versions starting from 3.11.0 before 3.11.11, all versions starting from 4.0.0 before 4.0.5

Fixed versions

  • 3.9.18
  • 3.11.11
  • 4.0.5

Solution

Upgrade to versions 3.9.18, 3.11.11, 4.0.5 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/moodle/moodle/CVE-2022-45150.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 16 Nov 2026 12:17:01 +0000.