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

- Severity: High 7.3 (CVSS:3.1, scored by fedora) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2026-02-03T10:52:01.127Z
- Modified: 2026-09-10T16:01:43.796Z
- Also known as: GHSA-mhf6-pp52-8wqj, BIT-MOODLE-2025-67849
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- moodle: from 4.5.0 before 4.5.8; from 5.0.0 before 5.0.4; from 5.1.0 before 5.1.1
- moodle/moodle (Packagist): before 4.1.22; from 4.4.0-beta before 4.4.12; from 4.5.0-beta before 4.5.8; from 5.0.0-beta before 5.0.4; from 5.1.0-beta before 5.1.1
- moodle moodle: from 4.5.0 before 4.5.8; from 5.0.0 before 5.0.4; 5.1.0
- moodle (Bitnami): from 4.5.0 before 4.5.8; from 5.0.0 before 5.0.4; from 5.1.0 before 5.1.1

## Every score

- fedora: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://access.redhat.com/security/cve/CVE-2025-67849> (advisory, third-party-advisory, vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2423835> (advisory, issue-tracking, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-67849> (advisory, web)
- <https://github.com/moodle/moodle/commit/a3063dcaa44dbe66e60a37cadb33bfadfe4feb03> (web)
- <https://github.com/moodle/moodle> (package)
- <https://moodle.org/mod/forum/discuss.php?d=471299> (web)

## Sources

- CVE List: [CVE-2025-67849](https://www.cve.org/CVERecord?id=CVE-2025-67849), CVE Terms of Use, modified 2026-02-26
- GitHub Advisory Database: [GHSA-mhf6-pp52-8wqj](https://github.com/advisories/GHSA-mhf6-pp52-8wqj), CC-BY-4.0, modified 2026-02-22
- NVD: [CVE-2025-67849](https://nvd.nist.gov/vuln/detail/CVE-2025-67849), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MOODLE-2025-67849](https://osv.dev/vulnerability/BIT-MOODLE-2025-67849), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2025-67849 · Whole record: https://cve.day/CVE-2025-67849.json · Rebuilt by cve.day 2026-11-25T22:59:11.007Z
