CVE-2025-60507 Cross-site scripting in n/a

High 8.9 Published Updated

Authenticated teachers can inject JavaScript via PDFs, leading to code execution in other users' browsers when they access the unsanitized link.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-60507?

CVE-2025-60507 is a high-severity cross-site scripting vulnerability in n/a, published on 21 Oct 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

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

Weakness: CWE-79

Which versions are affected by CVE-2025-60507?

How do I fix CVE-2025-60507?

No fix has been published for CVE-2025-60507 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-60507 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-60507 exists.

Sources

Also known as GHSA-7f63-wvmx-66p2.

Is CVE-2025-60507 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free