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

CVE-2021-36399: Moodle Cross-site Scripting vulnerability

March 7, 2023 (updated March 7, 2025)

In Moodle, ID numbers displayed in the quiz override screens required additional sanitizing to prevent a stored XSS risk.

References

  • github.com/advisories/GHSA-79jp-m64f-pgrc
  • github.com/moodle/moodle
  • moodle.org/mod/forum/discuss.php?d=424805
  • nvd.nist.gov/vuln/detail/CVE-2021-36399

Code Behaviors & Features

Detect and mitigate CVE-2021-36399 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.9.8, all versions starting from 3.10.0-beta before 3.10.5, all versions starting from 3.11.0-beta before 3.11.1

Fixed versions

  • 3.11.1
  • 3.10.5
  • 3.9.8

Solution

Upgrade to versions 3.10.5, 3.11.1, 3.9.8 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/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-2021-36399.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 17 Feb 2026 00:19:53 +0000.