moodle: stored XSS via calendar's event title when deleting the event (CVE-2024-38274)
A stored cross-site scripting (XSS) vulnerability exists in Moodle's calendar feature due to insufficient escaping of event titles in the event deletion prompt. This vulnerability affects multiple Moodle versions prior to their respective patches. Exploiting this flaw could allow an attacker to inject malicious scripts that execute in the context of a user's browser when they interact with the event deletion prompt.
AI Analysis
Technical Summary
CVE-2024-38274 is a stored XSS vulnerability in Moodle caused by improper escaping of calendar event titles when deleting events. This flaw allows malicious scripts embedded in event titles to execute in users' browsers during the deletion confirmation, potentially leading to session hijacking or other script-based attacks. The vulnerability affects Moodle versions 4.1.0 through before 4.1.11, 4.2.0 through before 4.2.8, 4.3.0 through before 4.3.5, and 4.4.0 before 4.4.1. A patch is available to address this issue.
Potential Impact
The vulnerability enables stored XSS attacks via calendar event titles in Moodle, which could allow attackers to execute arbitrary scripts in the context of authenticated users interacting with the event deletion prompt. This may lead to unauthorized actions such as session hijacking or data theft within the affected Moodle instance. There are no known exploits in the wild at this time.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade to Moodle versions 4.1.11 or later, 4.2.8 or later, 4.3.5 or later, or 4.4.1 or later to remediate the issue. Applying the official fixes will prevent exploitation of the stored XSS vulnerability in calendar event titles.
moodle: stored XSS via calendar's event title when deleting the event (CVE-2024-38274)
Description
A stored cross-site scripting (XSS) vulnerability exists in Moodle's calendar feature due to insufficient escaping of event titles in the event deletion prompt. This vulnerability affects multiple Moodle versions prior to their respective patches. Exploiting this flaw could allow an attacker to inject malicious scripts that execute in the context of a user's browser when they interact with the event deletion prompt.
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
CVE-2024-38274 is a stored XSS vulnerability in Moodle caused by improper escaping of calendar event titles when deleting events. This flaw allows malicious scripts embedded in event titles to execute in users' browsers during the deletion confirmation, potentially leading to session hijacking or other script-based attacks. The vulnerability affects Moodle versions 4.1.0 through before 4.1.11, 4.2.0 through before 4.2.8, 4.3.0 through before 4.3.5, and 4.4.0 before 4.4.1. A patch is available to address this issue.
Potential Impact
The vulnerability enables stored XSS attacks via calendar event titles in Moodle, which could allow attackers to execute arbitrary scripts in the context of authenticated users interacting with the event deletion prompt. This may lead to unauthorized actions such as session hijacking or data theft within the affected Moodle instance. There are no known exploits in the wild at this time.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade to Moodle versions 4.1.11 or later, 4.2.8 or later, 4.3.5 or later, or 4.4.1 or later to remediate the issue. Applying the official fixes will prevent exploitation of the stored XSS vulnerability in calendar event titles.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BIT-moodle-2024-38274
- Osv Schema Version
- 1.6.2
- Aliases
- ["CVE-2024-38274"]
- Ecosystems
- ["Bitnami"]
- Database Specific Severity
- Medium
Threat ID: 6aa00617acd9273b49ab7785
Added to database: 09/08/2026, 12:56:55 UTC
Last enriched: 09/08/2026, 13:43:26 UTC
Last updated: 09/10/2026, 19:36:48 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.