{"id":"CVE-2026-102586","state":"PUBLISHED","title":"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.","publishedAt":"2026-09-30T08:36:19.341Z","updatedAt":"2026-09-30T15:28:08.409Z","severity":{"score":4.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","source":"fedora"},"assigner":"fedora","products":["moodle"],"affected":[{"packageName":"moodle","defaultStatus":"unaffected","versions":[{"version":"5.2.0","status":"affected","lessThan":"5.2.2","versionType":"semver"},{"version":"5.1.0","status":"affected","lessThan":"5.1.6","versionType":"semver"},{"version":"5.0.0","status":"affected","lessThan":"5.0.9","versionType":"semver"},{"version":"0","status":"affected","lessThan":"4.5.13","versionType":"semver"}],"collectionURL":"https://git.moodle.org"}],"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"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:10:13.529Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/102xxx/CVE-2026-102586.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-102586","state":"PUBLISHED","datePublished":"2026-09-30T08:36:19.341Z","dateUpdated":"2026-09-30T15:28:08.409Z","assignerShortName":"fedora","assignerOrgId":"92fb86c3-55a5-4fb5-9c3f-4757b9e96dc5","dateReserved":"2026-09-29T14:03:38.494Z"},"containers":{"cna":{"title":"Moodle: xss via password reset link due to insufficient username escaping","descriptions":[{"lang":"en","value":"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":[{"packageName":"moodle","defaultStatus":"unaffected","versions":[{"version":"5.2.0","status":"affected","lessThan":"5.2.2","versionType":"semver"},{"version":"5.1.0","status":"affected","lessThan":"5.1.6","versionType":"semver"},{"version":"5.0.0","status":"affected","lessThan":"5.0.9","versionType":"semver"},{"version":"0","status":"affected","lessThan":"4.5.13","versionType":"semver"}],"collectionURL":"https://git.moodle.org"}],"references":[{"url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-88335"},{"url":"https://access.redhat.com/security/cve/CVE-2026-102586","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2543641","name":"RHBZ#2543641","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=482504"}],"metrics":[{"other":{"content":{"value":"Moderate","namespace":"https://access.redhat.com/security/updates/classification/"},"type":"Red Hat severity rating"}},{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":4.3,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","version":"3.1"},"format":"CVSS"}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","description":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"fedora","orgId":"92fb86c3-55a5-4fb5-9c3f-4757b9e96dc5","dateUpdated":"2026-09-30T08:36:19.341Z"},"datePublic":"2026-09-29T20:17:12.000Z","x_redhatCweChain":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","timeline":[{"lang":"en","time":"2026-09-09T13:08:58.000Z","value":"Reported to Red Hat."},{"lang":"en","time":"2026-09-29T20:17:12.000Z","value":"Made public."}],"credits":[{"lang":"en","value":"Upstream acknowledges Henk van den Toorn as the original reporter."}],"x_generator":{"engine":"cvelib 1.8.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-102586","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-09-30T13:56:33.265497Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-30T15:28:08.409Z"}}]}}}