What’s Vulnerable › Vulnerabilities

CVE-2026-102586: Moodle: xss via password reset link due to insufficient username escaping

Description

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.

Affected products

How to fix

Upgrade to a fixed version: Moodle 4.5.13, 5.0.9, 5.1.6, 5.2.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-102586 or the next vulnerability affects your stack