Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
4.3

CVE-2026-102586: Moodle password reset link can run unwanted script

CVE-2026-102586 · published 1 month ago
Summary

Moodle's password reset page does not properly clean the username that appears in the link. An attacker could send a specially crafted reset link to a user, causing the user's browser to run any code the attacker chooses. Update Moodle to the latest version or apply the provided patch to fix the issue.

What to do
  • Update moodle to version 5.2.2.
Affected software
Ecosystem VendorProductAffected versions
Ubuntu:Pro:16.04:LTS canonical moodle All versions
– moodle moodle < 4.5.13
>= 5.0.0, < 5.0.9
>= 5.1.0, < 5.1.6
>= 5.2.0, < 5.2.2
cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*
Bitnami – moodle >= 5.2.0, < 5.2.2
Fix: upgrade to 5.2.2
Original advisory text
Moodle: xss via password reset link due to insufficient username escaping
A flaw was found in Moodle. Insufficient sanitization of username input on the password reset page allows a remote attacker to conduct a cross-site scripting (XSS) attack. By convincing an unauthenticated user to access a specially crafted password reset link, an attacker could execute arbitrary script in the victim's browser.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit (estimated)
  • Gives an attacker partial control (estimated)
Severity
4.3 Medium
Exploitation
<1% chance of attack within 30 days
Type
CWE-79Cross-site Scripting (XSS)
Timeline
Published30 Sep 2026
Updated3 Nov 2026
First seen30 Sep 2026
Track software like this
Free during beta