Advisory

GHSA-mhf6-pp52-8wqj

Also known as: BIT-moodle-2025-67849, CVE-2025-67849

Summary

Moodle Cross-site Scripting (XSS) vulnerability

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-02-03 12:30 UTC
Modified
2026-02-22 23:25 UTC

Affected packages and fixes

moodle/moodle

Packagist · All systems

Affected

  • introduced 0, fixed 4.1.22 (ecosystem)

Fixed versions

4.1.22

Fix

The export has no generic command for this ecosystem.

moodle/moodle

Packagist · All systems

Affected

  • introduced 4.4.0-beta, fixed 4.4.12 (ecosystem)

Fixed versions

4.4.12

Fix

The export has no generic command for this ecosystem.

moodle/moodle

Packagist · All systems

Affected

  • introduced 4.5.0-beta, fixed 4.5.8 (ecosystem)

Fixed versions

4.5.8

Fix

The export has no generic command for this ecosystem.

moodle/moodle

Packagist · All systems

Affected

  • introduced 5.0.0-beta, fixed 5.0.4 (ecosystem)

Fixed versions

5.0.4

Fix

The export has no generic command for this ecosystem.

moodle/moodle

Packagist · All systems

Affected

  • introduced 5.1.0-beta, fixed 5.1.1 (ecosystem)

Fixed versions

5.1.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences