CVE-2025-60507

Cross site scripting vulnerability in Moodle GeniAI plugin (local_geniai) 2.3.6

High · published October 21, 2025

CVSS v3.1
8.9
EPSS
0%
Percentile
22.5
In the wild
Unconfirmed
What it is

⚡ A crafty PDF could turn your Moodle GeniAI plugin into a playground for malicious scripts! 🌐 Think of this as a student sneaking in a questionable book to class, only for the teacher to unknowingly pass it around. When the classmates read it, they end up with some pretty bad ideas because nobody checked the content first! An attacker with a Teacher role could upload a PDF containing malicious JavaScript, which would execute whenever unsuspecting users—like Students or even Administrators—click the link. This could allow the attacker to steal sensitive information, hijack user sessions, or spread further attacks across the platform. Yikes!

Put simply

Think of this as a student sneaking in a questionable book to class, only for the teacher to unknowingly pass it around. When the classmates read it, they end up with some pretty bad ideas because nobody checked the content first! This vulnerability in version 2.3.6 of the Moodle GeniAI plugin enables authenticated users to upload a PDF with embedded JavaScript, which then executes in the browsers of users who click the link provided without any sanitization.

What to do

An attacker with a Teacher role could upload a PDF containing malicious JavaScript, which would execute whenever unsuspecting users—like Students or even Administrators—click the link. This could allow the attacker to steal sensitive information, hijack user sessions, or spread further attacks across the platform. Yikes! To protect your users, immediately update the Moodle GeniAI plugin to the latest version. Implement thorough input sanitization for uploaded files and review user roles to limit the ability of teachers to upload potentially harmful files. 🌟 You've got this! With a few simple updates, you can secure your Moodle environment in no time! 🛡️

The record
Technical detail
CVSS v3.1
8.9 · HIGH
Vector
CVSS:3.1/AC:L/AV:N/A:L/C:H/I:H/PR:L/S:C/UI:R
CVSS v4.0
Not supplied
EPSS
0.00309 · 22.5th percentile
Published
2025-10-21T00:00Z
EPSS history
Timeline
  • 21 OCT 00:00Z
    Cross site scripting vulnerability in Moodle GeniAI plugin (local_geniai) 2.3.6
    cvelistv5