# CVE-2026-102586: Moodle cross-site scripting in password reset

Source: https://junglewise.ai/threats/cve-2026-102586-a-flaw-was-found-in-moodle-insufficient-sanitization-of-username  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-30. Updated: 2026-09-30  
License: CC BY 4.0 with a link back

CVE-2026-102586 · Severity: medium · CVSS 4.3 · Published 2026-09-30

Moodle is a learning management platform used by educational institutions to deliver courses and manage student data. A flaw in the password reset page allows attackers to inject malicious scripts that execute in users' browsers when they click a crafted link, potentially stealing session tokens or login credentials.

Technologies: [Moodle](https://junglewise.ai/threats/technologies/moodle). Vendors: [Moodle](https://junglewise.ai/threats/vendors/moodle).

## Quick answers

**Is CVE-2026-102586 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-102586 being exploited in the wild.

**How severe is CVE-2026-102586?** Medium severity, with a CVSS score of 4.3, published 30 September 2026.

**Which products and versions are affected?** Moodle Moodle.

**Is there a fix for CVE-2026-102586?** A patch was published on 2026-06-16: Fix applied in commit bf28cca addressing username sanitization in password reset Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-102586 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-102586?** Check whether you run Moodle. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

Insufficient sanitization of the username input field on the password reset page permits stored XSS injection. An unauthenticated attacker can craft a password reset URL containing malicious JavaScript in the username parameter, which is reflected without proper encoding when the page loads. Exploitation requires social engineering to trick a user into clicking the link, but no authentication is needed.

## Affected products

- Moodle Moodle

## Timeline

- 2026-09-30: disclosed: CVE-2026-102586 published
- 2026-06-16: patched: Fix applied in commit bf28cca addressing username sanitization in password reset

## References

- [https://git.moodle.org/](https://git.moodle.org/)
- [http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-88335](http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-88335)

## Related threats

- [Moodle insufficient access control in H5P content files](https://junglewise.ai/threats/cve-2026-123655-a-flaw-was-found-in-moodle-insufficient-access-control-checks-on)
- [Moodle missing capability check in core_grades_get_gradeitems](https://junglewise.ai/threats/cve-2026-119556-moodle-4-2-0-through-4-5-15-5-0-0-through-5-0-11-5-1-0-through-5)
- [Moodle core_grades_get_feedback information disclosure](https://junglewise.ai/threats/cve-2026-119555-moodle-4-2-0-through-4-5-15-5-0-0-through-5-0-11-5-1-0-through-5)
- [Moodle SQL injection in External database enrolment plugin](https://junglewise.ai/threats/cve-2026-119554-moodle-5-3-0-5-2-0-through-5-2-4-5-1-0-through-5-1-8-5-0-0)
- [Moodle path traversal in Blackboard question import](https://junglewise.ai/threats/cve-2026-119553-moodle-5-3-0-5-2-0-through-5-2-4-5-1-0-through-5-1-8-5-0-0)
