Moodle has a stored XSS in ddimageortext question type

Description

The drag-and-drop onto image (ddimageortext) question type required additional sanitizing to prevent a stored XSS risk.

Basic information

Type
reviewed
Severity
low
Advisory on GitHub
Open advisory ↗
Repository advisory
Source code
Browse source ↗
Published (advisory)
2025-02-24 21:31:44 UTC
Updated
2025-02-24 22:08:24 UTC
GitHub reviewed
2025-02-24 22:08:21 UTC
NVD published
2025-02-24

EPSS Score

Score Percentile
0.71% 72.12%

CVSS Scores

Base score Version Severity Vector
3.4 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.

Identifiers

CWEs

CWE id Name
CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Affected packages (4)

Vulnerable version ranges and first patched releases as published by GitHub.

Ecosystem Package Vulnerable range First patched Vulnerable functions
composer moodle/moodle >= 4.5.0-beta, < 4.5.2 4.5.2
composer moodle/moodle >= 4.4.0-beta, < 4.4.6 4.4.6
composer moodle/moodle >= 4.3.0-beta, < 4.3.10 4.3.10
composer moodle/moodle < 4.1.16 4.1.16

References

cvelogic Threat Intelligence