Skip to main content

Moodle GeniAI CVE-2025-60507

HIGH
Cross-site Scripting (XSS) (CWE-79)
2025-10-21 cve@mitre.org
8.9
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as Teacher-role user
  2. Delivery
    Upload PDF with embedded JavaScript
  3. Exploit
    Assistant emits unsanitized HTML link to file
  4. Execution
    Victim (Student/Admin) clicks the link
  5. Impact
    Payload 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (mitre) PRIMARY 8.9 HIGH
AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L
vuln.today AI 8.7 HIGH

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).

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
Low

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 76% exploitable
Prevalence
Low
niche third-party Moodle AI plugin, limited real-world deployment
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in Moodle

View all
CVE-2013-3630 MEDIUM POC
4.6 Nov 01

Moodle through 2.5.2 allows remote authenticated administrators to execute arbitrary programs by configuring the aspell

CVE-2021-21809 CRITICAL POC
9.1 Jun 23

A command execution vulnerability exists in the default legacy spellchecker plugin in Moodle 3.10. Rated critical severi

CVE-2024-43425 HIGH POC
8.1 Nov 07

A flaw was found in Moodle. Rated high severity (CVSS 8.1), this vulnerability is remotely exploitable, no authenticatio

CVE-2017-2641 CRITICAL POC
9.8 Mar 26

In Moodle 2.x and 3.x, SQL injection can occur via user preferences. Rated critical severity (CVSS 9.8), this vulnerabil

CVE-2025-34031 HIGH POC
7.5 Jun 24

The Moodle LMS Jmol plugin version 6.1 and earlier contains a path traversal vulnerability in jsmol.php. The query param

CVE-2013-4341 MEDIUM POC
4.3 Sep 16

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

CVE-2016-9187 HIGH POC
8.8 Nov 04

Unrestricted file upload vulnerability in the double extension support in the "image" module in Moodle 3.1.2 allows remo

CVE-2016-9186 HIGH POC
8.8 Nov 04

Unrestricted file upload vulnerability in the "legacy course files" and "file manager" modules in Moodle 3.1.2 allows re

CVE-2018-14630 HIGH POC
8.8 Sep 17

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

CVE-2018-1133 HIGH POC
8.8 May 25

An issue was discovered in Moodle 3.x. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, low a

CVE-2026-123655 HIGH POC
7.5 Nov 06

Unauthenticated information disclosure in Moodle's H5P handling lets remote attackers read restricted content-bank mater

CVE-2016-7919 HIGH POC
7.5 Oct 28

Moodle 3.1.2 allows remote attackers to obtain sensitive information via unspecified vectors, related to a "SQL Injectio

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy