Skip to main content
VulnerabilityPublished

CVE-2025-60507: moodle_genai_plugin_xss · Cross-site Scripting

Affects moodle_genai_plugin_xssSource CVE Database V5

0

Not known to be exploited · CVSS 8.9 High.

Data as of 26 Oct 2026, 11:07 UTC

CVSS 3.1 base score
8.9High
How severe the flaw is on the 0–10 CVSS scale.
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:R

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 Oct 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
GitHubonurcangnc/moodle_genai_plugin_xsspkg:github/onurcangnc/moodle_genai_plugin_xssOther threatsAffected
  • =2.3.6
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

Community reviews

Loading reviews…