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

- Severity: Medium 4.3 (CVSS:3.1, scored by fedora) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2026-09-30T08:36:19.341Z
- Modified: 2026-10-05T14:30:07.632Z
- Also known as: BIT-MOODLE-2026-102586
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: fedora

## 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.

(As written by CVE List.)

## Affected

- moodle: from 5.2.0 before 5.2.2; from 5.1.0 before 5.1.6; from 5.0.0 before 5.0.9; before 4.5.13
- moodle moodle: before 4.5.13; from 5.0.0 before 5.0.9; from 5.1.0 before 5.1.6; from 5.2.0 before 5.2.2
- moodle (Bitnami): before 4.5.13; from 5.0.0 before 5.0.9; from 5.1.0 before 5.1.6; from 5.2.0 before 5.2.2

## Every score

- fedora: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-88335> (fix, patch)
- <https://access.redhat.com/security/cve/CVE-2026-102586> (advisory, third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2543641> (advisory, issue-tracking, third-party-advisory)
- <https://moodle.org/mod/forum/discuss.php?d=482504> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-102586> (web)

## Sources

- CVE List: [CVE-2026-102586](https://www.cve.org/CVERecord?id=CVE-2026-102586), CVE Terms of Use, modified 2026-09-30
- NVD: [CVE-2026-102586](https://nvd.nist.gov/vuln/detail/CVE-2026-102586), Public domain, modified 2026-10-01
- Bitnami Vulnerability Database: [BIT-MOODLE-2026-102586](https://osv.dev/vulnerability/BIT-MOODLE-2026-102586), Apache-2.0, modified 2026-10-05

---

Page: https://cve.day/CVE-2026-102586 · Whole record: https://cve.day/CVE-2026-102586.json · Rebuilt by cve.day 2026-11-25T22:59:41.623Z
