{"id":"CVE-2026-102586","aliases":["CVE-2026-102586","BIT-MOODLE-2026-102586"],"related":[],"kind":"vulnerability","state":"published","title":"Moodle: xss via password reset link due to insufficient username escaping","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-09-30T08:36:19.341Z","modified":"2026-10-05T14:30:07.632Z","severity":{"scorer":"fedora","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"fedora","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"5.2.0","fixed":"5.2.2","status":"affected"},{"type":"semver","introduced":"5.1.0","fixed":"5.1.6","status":"affected"},{"type":"semver","introduced":"5.0.0","fixed":"5.0.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.5.13","status":"affected"}],"package":"moodle","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.5.13"},{"status":"affected","introduced":"5.0.0","fixed":"5.0.9"},{"status":"affected","introduced":"5.1.0","fixed":"5.1.6"},{"status":"affected","introduced":"5.2.0","fixed":"5.2.2"}],"vendor":"moodle","product":"moodle","cpe":"cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.5.13"},{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.0.9"},{"type":"semver","introduced":"5.1.0","status":"affected","fixed":"5.1.6"},{"type":"semver","introduced":"5.2.0","status":"affected","fixed":"5.2.2"}],"ecosystem":"Bitnami","package":"moodle","purl":"pkg:bitnami/moodle","source":"bitnami"}],"references":[{"url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-88335","tags":["fix","patch"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-102586","tags":["advisory","third-party-advisory","vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2543641","tags":["advisory","issue-tracking","third-party-advisory","x-refsource-redhat"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=482504","tags":["advisory","vendor-advisory"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102586","tags":["web"],"sources":["bitnami"]}],"credits":["Upstream acknowledges Henk van den Toorn as the original reporter."],"assigner":"fedora","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-30T13:56:33.265Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-102586","url":"https://www.cve.org/CVERecord?id=CVE-2026-102586","licence":"CVE Terms of Use","modified":"2026-09-30T15:28:08.409Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-102586","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102586","licence":"Public domain","modified":"2026-10-01T15:48:31.997Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-MOODLE-2026-102586","url":"https://osv.dev/vulnerability/BIT-MOODLE-2026-102586","licence":"Apache-2.0","modified":"2026-10-05T14:30:07.632Z"}],"updatedAt":"2026-11-25T22:59:41.623Z","epss":{"score":0.00276,"percentile":0.21494,"date":"2026-12-01T12:00:22.000Z"}}