Skip to content
OpenAdvisories
High · 7.3 CVE-2025-67849 BIT-moodle-2025-67849EUVD-2025-206737GHSA-mhf6-pp52-8wqj

Moodle: moodle: cross-site scripting (xss) via improper sanitization of ai prompt responses

Published Feb 3, 2026 · Updated Feb 26, 2026 · Assigned by fedora

Description

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.

Affected products

VendorProductAffectedFixed
— moodle 4.5.0 – < 4.5.8, 5.0.0 – < 5.0.4, 5.1.0 – < 5.1.1 4.5.8

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS moodle No fix yet —
Ubuntu Pro 16.04 LTS moodle No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist moodle/moodle < 4.1.22 4.1.22 GHSA-mhf6-pp52-8wqj
Packagist moodle/moodle >= 4.4.0-beta, < 4.4.12 4.4.12 GHSA-mhf6-pp52-8wqj
Packagist moodle/moodle >= 4.5.0-beta, < 4.5.8 4.5.8 GHSA-mhf6-pp52-8wqj
Packagist moodle/moodle >= 5.0.0-beta, < 5.0.4 5.0.4 GHSA-mhf6-pp52-8wqj
Packagist moodle/moodle >= 5.1.0-beta, < 5.1.1 5.1.1 GHSA-mhf6-pp52-8wqj

Advisories 1

References