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

CVE-2025-67849: Moodle Cross-site Scripting (XSS) vulnerability

February 3, 2026

A flaw was found in Moodle. This Cross-site Scripting (XSS) vulnerability, caused by improper sanitization of AI prompt responses, allows attackers to inject malicious HTML or script into web pages. When other users view these compromised pages, their sessions could be stolen, or the user interface could be manipulated.

References

  • access.redhat.com/security/cve/CVE-2025-67849
  • bugzilla.redhat.com/show_bug.cgi?id=2423835
  • github.com/advisories/GHSA-mhf6-pp52-8wqj
  • github.com/moodle/moodle
  • github.com/moodle/moodle/commit/a3063dcaa44dbe66e60a37cadb33bfadfe4feb03
  • moodle.org/mod/forum/discuss.php?d=471299
  • nvd.nist.gov/vuln/detail/CVE-2025-67849

Code Behaviors & Features

Detect and mitigate CVE-2025-67849 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 4.1.22, all versions starting from 4.4.0-beta before 4.4.12, all versions starting from 4.5.0-beta before 4.5.8, all versions starting from 5.0.0-beta before 5.0.4, all versions starting from 5.1.0-beta before 5.1.1

Fixed versions

  • 4.1.22
  • 4.4.12
  • 4.5.8
  • 5.0.4
  • 5.1.1

Solution

Upgrade to versions 4.1.22, 4.4.12, 4.5.8, 5.0.4, 5.1.1 or above.

Impact 7.3 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/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-2025-67849.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 17 Feb 2026 12:19:40 +0000.