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

Medium 5.4 Published Updated

Stored XSS in Moodle PDF Annotator allows low-privileged users to inject JavaScript, leading to session hijacking or credential theft for other users.

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-60506?

CVE-2025-60506 is a medium-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

Moodle PDF Annotator plugin v1.5 release 9 allows stored cross-site scripting (XSS) via the Public Comments feature. An attacker with a low-privileged account (e.g., Student) can inject arbitrary JavaScript payloads into a comment. When any other user (Student, Teacher, or Admin) views the annotated PDF, the payload is executed in their browser, leading to session hijacking, credential theft, or other attacker-controlled actions.

Weakness: CWE-79

Which versions are affected by CVE-2025-60506?

How do I fix CVE-2025-60506?

No fix has been published for CVE-2025-60506 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-60506 being exploited?

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

Sources

Also known as GHSA-c4f8-29gw-fp3q.

Is CVE-2025-60506 in your software?

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

Check your SBOMs for free