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

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

September 30, 2022 (updated December 21, 2022)

Recursive rendering of Mustache template helpers containing user input could, in some cases, result in an XSS risk or a page failing to load.

References

  • bugzilla.redhat.com/show_bug.cgi?id=2128146
  • moodle.org/mod/forum/discuss.php?d=438392
  • nvd.nist.gov/vuln/detail/CVE-2022-40313

Code Behaviors & Features

Detect and mitigate CVE-2022-40313 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 starting from 3.9.0 before 3.9.17, all versions starting from 3.11.0 before 3.11.10, all versions starting from 4.0.0 before 4.0.4

Fixed versions

  • 3.9.17
  • 3.11.10
  • 4.0.4

Solution

Upgrade to versions 3.9.17, 3.11.10, 4.0.4 or above.

Impact 7.1 HIGH

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

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-40313.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:33 +0000.