CVE-2025-60507: moodle_genai_plugin_xss · n/a
Affects moodle_genai_plugin_xssSource CVE Database V5
Not known to be exploited · CVSS 8.9 High.
Data as of 26 Oct 2026, 08:30 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 23% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AC:L/AV:N/A:L/C:H/I:H/PR:L/S:C/UI:RExploitation evidence
Disclosed: evidence found.
CVE published 21 Oct 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubonurcangnc/moodle_genai_plugin_xsspkg:github/onurcangnc/moodle_genai_plugin_xssOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
1. Immediately restrict upload permissions to trusted users only and review the roles allowed to upload files, especially PDFs. 2. Implement input validation and output encoding on the plugin to sanitize any links generated to uploaded files, preventing execution of embedded scripts. 3. Disable or limit the use of the GeniAI plugin until a patch or update is available. 4. Educate teachers and users about the risks of uploading untrusted files and clicking on suspicious links within the Moodle environment. 5. Monitor Moodle logs for unusual upload activity or access patterns to detect potential exploitation attempts. 6. Employ Content Security Policy (CSP) headers to restrict the execution of inline scripts and reduce the impact of XSS attacks. 7. Regularly update Moodle and its plugins to the latest versions once patches addressing this vulnerability are released. 8. Consider network segmentation and access controls to limit the spread of any compromise resulting from exploitation.
Description
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.
References
- moodle.org/security/ (opens in a new tab)
- onurcangenc.com.tr/posts/moodle-genia%C4%B1-plugin-vulnerability-stored-reflected-xss-via-pdf-upload-and-chatbot-%C4%B1nput/ (opens in a new tab)
- github.com/onurcangnc/moodle_genai_plugin_xss (opens in a new tab)
- moodle.org/plugins/local_geniai (opens in a new tab)