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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-30 · Modified: 2026-09-30
- Aliases: UBUNTU-CVE-2026-102586
- Record: https://cvemate.com/vulnerability/CVE-2026-102586 · JSON: https://cvemate.com/vulnerability/CVE-2026-102586/json

## Description

```text
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.
```

## Signals

- CVSS: 6.1 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.276%, percentile 21.44%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- ubuntu moodle (Ubuntu): All versions (No fix recorded)
- moodle moodle: \< 4.5.13 \| ≥ 5.0.0, \< 5.0.9 \| ≥ 5.1.0, \< 5.1.6 \| ≥ 5.2.0, \< 5.2.2

## References

- <http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-88335>
- <https://access.redhat.com/security/cve/CVE-2026-102586>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2543641>
- <https://moodle.org/mod/forum/discuss.php?d=482504>
- <https://ubuntu.com/security/CVE-2026-102586>
- <https://www.cve.org/CVERecord?id=CVE-2026-102586>

---

Data as of 2026-12-05T03:21:21.093Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
