Moodle: Stored XSS in ddimageortext question type (CVE-2025-26528)
A stored cross-site scripting (XSS) vulnerability exists in the drag-and-drop onto image (ddimageortext) question type in Moodle. This issue arises due to insufficient sanitization of input, allowing malicious scripts to be stored and potentially executed when the content is viewed. The vulnerability affects multiple Moodle versions prior to their respective patches. A fix has been made available to address this sanitization deficiency.
AI Analysis
Technical Summary
The drag-and-drop onto image (ddimageortext) question type in Moodle versions 4.1.0 through before 4.1.16, 4.3.0 through before 4.3.10, 4.4.0 through before 4.4.6, and 4.5.0 through before 4.5.2 contains a stored XSS vulnerability. This occurs because the input is not sufficiently sanitized, allowing malicious scripts to be stored and later executed in users' browsers. The vulnerability has been assigned CVE-2025-26528 and is rated medium severity. A patch is available and referenced in the Moodle Git repository under commit MDL-82896.
Potential Impact
Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts that are stored on the server and executed in the context of users viewing the affected question type. This could lead to session hijacking, defacement, or other client-side attacks. However, there are no known exploits in the wild at this time.
Mitigation Recommendations
A patch addressing this stored XSS vulnerability is available and should be applied. The affected Moodle versions are those prior to 4.1.16, 4.3.10, 4.4.6, and 4.5.2 respectively. Administrators should upgrade to these fixed versions or later to remediate the issue.
Moodle: Stored XSS in ddimageortext question type (CVE-2025-26528)
Description
A stored cross-site scripting (XSS) vulnerability exists in the drag-and-drop onto image (ddimageortext) question type in Moodle. This issue arises due to insufficient sanitization of input, allowing malicious scripts to be stored and potentially executed when the content is viewed. The vulnerability affects multiple Moodle versions prior to their respective patches. A fix has been made available to address this sanitization deficiency.
Affected software
pkg:bitnami/moodleRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The drag-and-drop onto image (ddimageortext) question type in Moodle versions 4.1.0 through before 4.1.16, 4.3.0 through before 4.3.10, 4.4.0 through before 4.4.6, and 4.5.0 through before 4.5.2 contains a stored XSS vulnerability. This occurs because the input is not sufficiently sanitized, allowing malicious scripts to be stored and later executed in users' browsers. The vulnerability has been assigned CVE-2025-26528 and is rated medium severity. A patch is available and referenced in the Moodle Git repository under commit MDL-82896.
Potential Impact
Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts that are stored on the server and executed in the context of users viewing the affected question type. This could lead to session hijacking, defacement, or other client-side attacks. However, there are no known exploits in the wild at this time.
Mitigation Recommendations
A patch addressing this stored XSS vulnerability is available and should be applied. The affected Moodle versions are those prior to 4.1.16, 4.3.10, 4.4.6, and 4.5.2 respectively. Administrators should upgrade to these fixed versions or later to remediate the issue.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BIT-moodle-2025-26528
- Osv Schema Version
- 1.6.2
- Aliases
- ["CVE-2025-26528"]
- Ecosystems
- ["Bitnami"]
- Database Specific Severity
- Medium
Patch Information
Threat ID: 6aa00612acd9273b49ab73b3
Added to database: 09/08/2026, 12:56:50 UTC
Last enriched: 09/08/2026, 13:41:46 UTC
Last updated: 09/10/2026, 19:36:49 UTC
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.