Moodle GeniAI
CVE-2025-60507
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as Teacher-role user
-
DeliveryUpload PDF with embedded JavaScript
-
ExploitAssistant emits unsanitized HTML link to file
-
ExecutionVictim (Student/Admin) clicks the link
-
ImpactPayload executes in victim's browser session
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires the Moodle GeniAI plugin (local_geniai) version 2.3.6 to be installed, an authenticated account with the Teacher role to upload a PDF containing embedded JavaScript (PR:L), and the GeniAI assistant feature that renders a direct, unsanitized HTML link to the uploaded file. Execution additionally requires a second victim user (Student or Administrator) to click that rendered link (UI:R) - the payload does not fire without this interaction. Limiting factors: exploitation is gated by Teacher-level privilege, by presence of this specific plugin at the vulnerable version, and by the required victim click, which together rule out unauthenticated or fully-automated exploitation. |
| Impact | The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L, score 8.9) describes a network-reachable, low-complexity stored XSS that requires an authenticated low-privilege account (PR:L - a Teacher role, per the description) plus victim interaction (UI:R, the target must click the link), with a scope change (S:C) reflecting execution in a separate security context (the victim's browser/session). The vuln.today decision label is this_week, indicating prompt but not emergency remediation. No CISA KEV listing is present in the input and no EPSS score is provided, so there is no signal of active exploitation or statistically-derived exploitation probability - these key signals are MISSING and cannot be asserted either way. A public PoC reference exists (GitHub repo and a researcher blog post), but the input does not mark it as confirmed working exploit code. The dependence on a privileged (Teacher) account AND victim click interaction meaningfully constrains real-world mass exploitation, pointing toward a targeted, insider-or-compromised-account scenario rather than opportunistic internet-wide attacks. Net: a genuine, credible stored-XSS priority for Moodle instances running this specific plugin, but tempered by the authentication and user-interaction prerequisites and by the absence of KEV/EPSS corroboration. |
| Exploit ScenarioDerived | An authenticated user holding the Teacher role uploads a PDF carrying embedded JavaScript, and the GeniAI assistant renders an unsanitized direct HTML link to that file. When a Student or Administrator later clicks the link, the embedded payload executes in their browser session, enabling session/cookie theft or actions in the admin's context. A public PoC reference exists (researcher GitHub repo and blog write-up); it is not verified as working exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 05, 2026
Stored cross-site scripting in the Moodle GeniAI plugin (local_geniai) 2.3.6 lets an authenticated Teacher upload a PDF carrying embedded JavaScript; the assistant then renders an unsanitized direct HTML link to that file, and the payload executes in the browser of any Student or Administrator who clicks it. The CVSS 3.1 score is 8.9, with scope change because the script runs in the victim's session context. A public PoC reference exists, but it is not verified as working exploit code; no CISA KEV listing is present in the supplied data.
RemediationAI
No vendor-released patch version is specified in the supplied data; verify the current local_geniai release and Moodle security advisory before upgrading, and do not assume 2.3.6 is fixed. If a fixed release is not confirmed, disable or uninstall the GeniAI plugin (local_geniai) on affected Moodle sites-this removes the assistant feature and the unsanitized link rendering but also removes GeniAI functionality. As interim controls, restrict Teacher-role assignments and PDF uploads through the plugin to trusted staff only, and review/remove uploaded PDFs that contain embedded JavaScript; these reduce exposure but do not fix the underlying output-sanitization flaw. Consult https://moodle.org/plugins/local_geniai and https://moodle.org/security/ for vendor updates, and the GitHub reference https://github.com/onurcangnc/moodle_genai_plugin_xss for reproduction details.
Affected ProductsAI
Moodle GeniAI plugin (local_geniai) version 2.3.6 is the affected product identified in the supplied data; no CPE strings or broader version ranges were provided. Moodle core is not identified as affected. Vendor/plugin information is at https://moodle.org/plugins/local_geniai, with Moodle security advisories at https://moodle.org/security/ and a public GitHub reference at https://github.com/onurcangnc/moodle_genai_plugin_xss.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The issue is CWE-79 cross-site scripting in a Moodle local plugin, not Moodle core. local_geniai 2.3.6 accepts PDF uploads from users with the Teacher role and its assistant produces a direct HTML link to the uploaded file without sanitization; because the PDF can carry embedded JavaScript, clicking the generated link executes the payload in the victim's browser. The CVSS vector indicates network reachability, low attack complexity, low privileges (PR:L), required user interaction (UI:R), and scope change (S:C), meaning the injected script crosses from the uploader's content context into the victim's Moodle session. No CPE strings or additional vulnerable version ranges were supplied.
Know when Moodle gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L
Teacher account needed (PR:L), victim must click (UI:R), code runs in the victim's browser context (S:C); admin session compromise yields C:H/I:H, with no availability impact (A:N).
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
DescriptionCVE.org
Cross site scripting vulnerability in Moodle GeniAI plugin (local_geniai) 2.3.6. An authenticated user with Teacher role can upload a PDF containing embedded JavaScript. The assistant outputs a direct HTML link to the uploaded file without sanitization. When other users (including Students or Administrators) click the link, the payload executes in their browser.
Executive ViewAI
A high-severity vulnerability in the Moodle GeniAI plugin (local_geniai) allows authenticated teachers to upload malicious PDFs that execute scripts in the browsers of students and administrators who click on them, potentially leading to session hijacking or data theft. This affects the integrity of the learning platform and could compromise sensitive user accounts, including those with administrative privileges. Leadership should prioritize remediation to prevent unauthorized access and protect institutional data.
Disable or remove the GeniAI plugin until a patch is available; restrict teacher upload permissions; implement a web application firewall to filter malicious PDF content; monitor for suspicious user activity and educate users about phishing risks.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Moodle through 2.5.2 allows remote authenticated administrators to execute arbitrary programs by configuring the aspell
A command execution vulnerability exists in the default legacy spellchecker plugin in Moodle 3.10. Rated critical severi
A flaw was found in Moodle. Rated high severity (CVSS 8.1), this vulnerability is remotely exploitable, no authenticatio
In Moodle 2.x and 3.x, SQL injection can occur via user preferences. Rated critical severity (CVSS 9.8), this vulnerabil
The Moodle LMS Jmol plugin version 6.1 and earlier contains a path traversal vulnerability in jsmol.php. The query param
Multiple cross-site scripting (XSS) vulnerabilities in Moodle through 2.2.11, 2.3.x before 2.3.9, 2.4.x before 2.4.6, an
Unrestricted file upload vulnerability in the double extension support in the "image" module in Moodle 3.1.2 allows remo
Unrestricted file upload vulnerability in the "legacy course files" and "file manager" modules in Moodle 3.1.2 allows re
moodle before versions 3.5.2, 3.4.5, 3.3.8, 3.1.14 is vulnerable to an XML import of ddwtos could lead to intentional re
An issue was discovered in Moodle 3.x. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, low a
Unauthenticated information disclosure in Moodle's H5P handling lets remote attackers read restricted content-bank mater
Moodle 3.1.2 allows remote attackers to obtain sensitive information via unspecified vectors, related to a "SQL Injectio
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB